Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JS benchmarks #44

Closed
wants to merge 1 commit into from
Closed

Conversation

MrFoxPro
Copy link

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 changed the title Add js benchmarks Add JS benchmarks Sep 10, 2024
@MrFoxPro
Copy link
Author

Turns out runtime has poor performance

@MrFoxPro
Copy link
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