Skip to content

Commit

Permalink
Update bench
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Sep 5, 2023
1 parent ec31b18 commit 7f66970
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,35 @@ benchmark time (avg) (min … max) p75
-------------------------------------------------------------------- -----------------------------
• simple
-------------------------------------------------------------------- -----------------------------
faster-qs 221.62 ns/iter (212.21 ns … 327.51 ns) 220.76 ns 305.41 ns 325.99 ns
qs 3.12 µs/iter (3.01 µs … 4.08 µs) 3.08 µs 4.08 µs 4.08 µs
fast-querystring (no nested) 145.92 ns/iter (135.8 ns … 661.87 ns) 146.52 ns 159.14 ns 170.95 ns
faster-qs 215.12 ns/iter (190.79 ns … 326.6 ns) 231.31 ns 314.23 ns 325.66 ns
qs 3.76 µs/iter (3.53 µs … 4.2 µs) 3.85 µs 4.2 µs 4.2 µs
fast-querystring (no nested) 156.86 ns/iter (134.91 ns … 696.73 ns) 164.41 ns 292.89 ns 321.29 ns

summary for simple
faster-qs
1.52x slower than fast-querystring (no nested)
14.09x faster than qs
1.37x slower than fast-querystring (no nested)
17.48x faster than qs

• array
-------------------------------------------------------------------- -----------------------------
faster-qs 592.01 ns/iter (564.85 ns … 1.1 µs) 581.35 ns 1.1 µs 1.1 µs
qs 5.99 µs/iter (5.54 µs … 7.43 µs) 6.28 µs 7.43 µs 7.43 µs
fast-querystring (no nested) 437.56 ns/iter (403.75 ns … 876.93 ns) 434.53 ns 851.04 ns 876.93 ns
faster-qs 606.92 ns/iter (548.09 ns … 844.72 ns) 657.29 ns 844.72 ns 844.72 ns
qs 6.76 µs/iter (6.55 µs … 7.19 µs) 6.88 µs 7.19 µs 7.19 µs
fast-querystring (no nested) 477.43 ns/iter (416.57 ns … 605.23 ns) 523.46 ns 582.79 ns 605.23 ns

summary for array
faster-qs
1.35x slower than fast-querystring (no nested)
10.11x faster than qs
1.27x slower than fast-querystring (no nested)
11.13x faster than qs

• deep object
-------------------------------------------------------------------- -----------------------------
faster-qs 3.96 µs/iter (3.37 µs … 559.3 µs) 3.71 µs 7.96 µs 9.08 µs
qs 17.71 µs/iter (15.21 µs … 574.35 µs) 16.21 µs 39.41 µs 55.77 µs
fast-querystring (no nested) 1.17 µs/iter (1.12 µs … 1.45 µs) 1.17 µs 1.45 µs 1.45 µs
faster-qs 3.84 µs/iter (3.19 µs … 439.42 µs) 3.56 µs 7.8 µs 9.47 µs
qs 19.48 µs/iter (16.84 µs … 345 µs) 18 µs 36.89 µs 62.15 µs
fast-querystring (no nested) 1.25 µs/iter (1.12 µs … 1.68 µs) 1.31 µs 1.68 µs 1.68 µs

summary for deep object
faster-qs
3.39x slower than fast-querystring (no nested)
4.47x faster than qs
3.07x slower than fast-querystring (no nested)
5.07x faster than qs

```

0 comments on commit 7f66970

Please sign in to comment.