Skip to content

Conversation

@MrFoxPro
Copy link
Contributor

JavaScript benchamrks.

Run:

nix develop . --impure
pnpm i
./node_modules/.bin/tsx ./src/index.ts

Results

┌─────────┬───────────────────────────────┬─────────────┬────────────────────┬──────────┬─────────┐
│ (index) │ Task Name                     │ ops/sec     │ Average Time (ns)  │ Margin   │ Samples │
├─────────┼───────────────────────────────┼─────────────┼────────────────────┼──────────┼─────────┤
│ 0       │ 'JSON:encode'                 │ '818,455'   │ 1221.8140604397472 │ '±0.08%' │ 4092276 │
│ 1       │ 'protobuf-js-ts-proto:encode' │ '825,741'   │ 1211.0328013030787 │ '±0.18%' │ 4128708 │
│ 2       │ 'serdegen-bincode:encode'     │ '154,729'   │ 6462.880889137842  │ '±0.50%' │ 773649  │
│ 3       │ 'JSON:decode'                 │ '616,082'   │ 1623.1602305653864 │ '±0.09%' │ 3080411 │
│ 4       │ 'protobuf-js-ts-proto:decode' │ '1,235,026' │ 809.6989756493713  │ '±0.04%' │ 6175135 │
│ 5       │ 'serdegen-bincode:decode'     │ '39,897'    │ 25064.009654615096 │ '±0.32%' │ 199490  │
└─────────┴───────────────────────────────┴─────────────┴────────────────────┴──────────┴─────────┘

@MrFoxPro MrFoxPro requested a review from ma2bd as a code owner September 10, 2024 19:06
@MrFoxPro MrFoxPro changed the title Add js benchmarks Add JS benchmarks Sep 10, 2024
@MrFoxPro
Copy link
Contributor Author

Turns out runtime has poor performance

@MrFoxPro
Copy link
Contributor Author

Close in favour of #46

@MrFoxPro MrFoxPro closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant