Skip to content

Commit 752d03a

Browse files
committed
perf: update benchmarks
1 parent 62b7cd5 commit 752d03a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

test/benchmark.mjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ import queryString from "query-string";
77
await benchmark(
88
{
99
qs() {
10-
return qs.parse("hello=world&foo=bar");
10+
return qs.parse("frappucino=muffin&goat%5B%5D=scone&pond=moose");
1111
},
1212
"fast-querystring"() {
13-
return fastQueryString.parse("hello=world&foo=bar");
13+
return fastQueryString.parse("frappucino=muffin&goat%5B%5D=scone&pond=moose");
1414
},
1515
"node:querystring"() {
16-
return native.parse("hello=world&foo=bar");
16+
return native.parse("frappucino=muffin&goat%5B%5D=scone&pond=moose");
1717
},
1818
"query-string"() {
19-
return queryString.parse("hello=world&foo=bar");
19+
return queryString.parse("frappucino=muffin&goat%5B%5D=scone&pond=moose");
20+
},
21+
URLSearchParams() {
22+
return new URLSearchParams("frappucino=muffin&goat%5B%5D=scone&pond=moose");
2023
},
2124
},
2225
{ warmup: true, print: { compare: true, compareMode: "previous" } },

0 commit comments

Comments
 (0)