Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zbjornson/node-bswap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.2
Choose a base ref
...
head repository: zbjornson/node-bswap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.0
Choose a head ref
  • 9 commits
  • 10 files changed
  • 1 contributor

Commits on Sep 17, 2023

  1. src: refresh benchmark code

    zbjornson committed Sep 17, 2023
    Copy the full SHA
    b95513c View commit details
  2. perf: fix broken alignment loop, simplify indexing

    Before
    ```
    16 bit
    array size          Native              JS  Native:JS            node
             1      12,530,187      32,575,434       0.38      19,599,945
            10     119,036,308     219,930,014       0.54     152,194,230
           100   1,219,160,772     522,720,202       2.33     832,706,735
          1000   9,800,451,713     659,513,934      14.86   5,893,752,950
         10000  30,543,363,969     726,053,317      42.07  17,272,452,850
        100000  31,120,184,507     711,097,175      43.76  17,567,964,576
    ```
    
    After
    ```
    16 bit
    array size          Native              JS  Native:JS            node
             1      12,563,248      32,310,777       0.39      18,639,717
            10     116,253,794     192,130,624       0.61     141,379,707
           100   1,013,168,532     483,421,496       2.10     759,236,370
          1000   8,876,603,162     595,432,414      14.91   5,472,918,124
         10000  42,638,434,471     638,831,441      66.74  16,414,314,949
        100000  34,395,302,466     646,097,414      53.24  15,721,682,417
    ```
    zbjornson committed Sep 17, 2023
    Copy the full SHA
    51a0191 View commit details
  3. Copy the full SHA
    54f3047 View commit details
  4. Copy the full SHA
    73d231e View commit details
  5. bug: only use -march=native on x86

    Closes #6
    zbjornson committed Sep 17, 2023
    Copy the full SHA
    252b895 View commit details

Commits on Sep 18, 2023

  1. src: change to NAPI

    zbjornson committed Sep 18, 2023
    Copy the full SHA
    e49e947 View commit details
  2. convert to node-api

    zbjornson committed Sep 18, 2023
    Copy the full SHA
    e8223f5 View commit details
  3. spec: test in bun

    zbjornson committed Sep 18, 2023
    Copy the full SHA
    d22412b View commit details
  4. v3.0.0

    zbjornson committed Sep 18, 2023
    Copy the full SHA
    6e75fb8 View commit details
Loading