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

feat: add querystring stringify #11

Merged
merged 9 commits into from
Sep 6, 2022
Merged

feat: add querystring stringify #11

merged 9 commits into from
Sep 6, 2022

Conversation

anonrig
Copy link
Owner

@anonrig anonrig commented Sep 6, 2022

Benchmarks for stringify

➜  fast-querystring git:(feat/stringify) ✗ npm run benchmark:stringify

> fast-querystring@0.4.0 benchmark:stringify
> node benchmark/stringify.mjs

╔══════════════════╤═════════╤═══════════════════╤═══════════╤══════════════════════════╗
║ Slower tests     │ Samples │            Result │ Tolerance │ Difference with previous ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ query-string     │   10000 │  295574.51 op/sec │  ± 1.18 % │                          ║
║ qs               │   10000 │  349191.83 op/sec │  ± 1.42 % │ + 18.14 %                ║
║ URLSearchParams  │    1000 │  605856.45 op/sec │  ± 0.77 % │ + 73.50 %                ║
║ node:querystring │   10000 │ 1829015.91 op/sec │  ± 5.07 % │ + 201.89 %               ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ Fastest test     │ Samples │            Result │ Tolerance │ Difference with previous ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ fast-querystring │   10000 │ 1976753.77 op/sec │  ± 3.43 % │ + 8.08 %                 ║
╚══════════════════╧═════════╧═══════════════════╧═══════════╧══════════════════════════╝

@anonrig anonrig merged commit b9bc57e into main Sep 6, 2022
@anonrig anonrig deleted the feat/stringify branch September 6, 2022 18:36
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.

None yet

1 participant