-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c45b52d
commit 7560154
Showing
3 changed files
with
58 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,62 +223,65 @@ $ npm test | |
``` | ||
$ npm run bench | ||
> cookie@0.4.2 bench | ||
> cookie@0.5.0 bench | ||
> node benchmark/index.js | ||
node@16.14.0 | ||
[email protected] | ||
[email protected].0 | ||
zlib@1.2.11 | ||
node@18.18.2 | ||
[email protected] | ||
[email protected].0 | ||
ares@1.19.1 | ||
[email protected] | ||
[email protected] | ||
modules@93 | ||
[email protected] | ||
napi@8 | ||
[email protected] | ||
[email protected]+quic | ||
[email protected] | ||
[email protected] | ||
tz@2021a3 | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
modules@108 | ||
napi@9 | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected]+quic | ||
[email protected] | ||
tz@2023c | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
> node benchmark/parse-top.js | ||
cookie.parse - top sites | ||
15 tests completed. | ||
parse accounts.google.com x 2,421,245 ops/sec ±0.80% (188 runs sampled) | ||
parse apple.com x 2,684,710 ops/sec ±0.59% (189 runs sampled) | ||
parse cloudflare.com x 2,231,418 ops/sec ±0.76% (186 runs sampled) | ||
parse docs.google.com x 2,316,357 ops/sec ±1.28% (187 runs sampled) | ||
parse drive.google.com x 2,363,543 ops/sec ±0.49% (189 runs sampled) | ||
parse en.wikipedia.org x 839,414 ops/sec ±0.53% (189 runs sampled) | ||
parse linkedin.com x 553,797 ops/sec ±0.63% (190 runs sampled) | ||
parse maps.google.com x 1,314,779 ops/sec ±0.72% (189 runs sampled) | ||
parse microsoft.com x 153,783 ops/sec ±0.53% (190 runs sampled) | ||
parse play.google.com x 2,249,574 ops/sec ±0.59% (187 runs sampled) | ||
parse plus.google.com x 2,258,682 ops/sec ±0.60% (188 runs sampled) | ||
parse sites.google.com x 2,247,069 ops/sec ±0.68% (189 runs sampled) | ||
parse support.google.com x 1,456,840 ops/sec ±0.70% (187 runs sampled) | ||
parse www.google.com x 1,046,028 ops/sec ±0.58% (188 runs sampled) | ||
parse youtu.be x 937,428 ops/sec ±1.47% (190 runs sampled) | ||
parse youtube.com x 963,878 ops/sec ±0.59% (190 runs sampled) | ||
14 tests completed. | ||
parse accounts.google.com x 2,588,913 ops/sec ±0.74% (186 runs sampled) | ||
parse apple.com x 2,370,002 ops/sec ±0.69% (186 runs sampled) | ||
parse cloudflare.com x 2,213,102 ops/sec ±0.88% (188 runs sampled) | ||
parse docs.google.com x 2,194,157 ops/sec ±1.03% (184 runs sampled) | ||
parse drive.google.com x 2,265,084 ops/sec ±0.79% (187 runs sampled) | ||
parse en.wikipedia.org x 457,099 ops/sec ±0.81% (186 runs sampled) | ||
parse linkedin.com x 504,407 ops/sec ±0.89% (186 runs sampled) | ||
parse maps.google.com x 1,230,959 ops/sec ±0.98% (186 runs sampled) | ||
parse microsoft.com x 926,294 ops/sec ±0.88% (184 runs sampled) | ||
parse play.google.com x 2,311,338 ops/sec ±0.83% (185 runs sampled) | ||
parse support.google.com x 1,508,850 ops/sec ±0.86% (186 runs sampled) | ||
parse www.google.com x 1,022,582 ops/sec ±1.32% (182 runs sampled) | ||
parse youtu.be x 332,136 ops/sec ±1.02% (185 runs sampled) | ||
parse youtube.com x 323,833 ops/sec ±0.77% (183 runs sampled) | ||
> node benchmark/parse.js | ||
cookie.parse - generic | ||
6 tests completed. | ||
simple x 2,745,604 ops/sec ±0.77% (185 runs sampled) | ||
decode x 557,287 ops/sec ±0.60% (188 runs sampled) | ||
unquote x 2,498,475 ops/sec ±0.55% (189 runs sampled) | ||
duplicates x 868,591 ops/sec ±0.89% (187 runs sampled) | ||
10 cookies x 306,745 ops/sec ±0.49% (190 runs sampled) | ||
100 cookies x 22,414 ops/sec ±2.38% (182 runs sampled) | ||
simple x 3,214,032 ops/sec ±1.61% (183 runs sampled) | ||
decode x 587,237 ops/sec ±1.16% (187 runs sampled) | ||
unquote x 2,954,618 ops/sec ±1.35% (183 runs sampled) | ||
duplicates x 857,008 ops/sec ±0.89% (187 runs sampled) | ||
10 cookies x 292,133 ops/sec ±0.89% (187 runs sampled) | ||
100 cookies x 22,610 ops/sec ±0.68% (187 runs sampled) | ||
``` | ||
|
||
## References | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
{ | ||
"accounts.google.com": "__Ulll-UUUU=0:0U0lUlllUUUl0lUl00UUUUUU0lUlll:l0ll0UlUU0l0lUUU", | ||
"accounts.google.com": "__Ulll-UUUU=0:lllllUlUUUlUU_llUU0UUUl0lU0UUl:UUlUlUl0UU0UlUlU", | ||
"apple.com": "lll=UU", | ||
"cloudflare.com": "__ll_ll=lUllUll.0Ul0Ull0UUUU.ll_U0lllUU0UlUll0lUllU-0000000000-0-UUUl+0Ulll0UUUU0U0Ullll0UUUUUlllU0UUUUlUUUlUUUUUUUlUlUUll0l0UlUlUl0Ul000UUlUU0/0l0l0UU0UllUU0U0lU/lllU0lUllU", | ||
"docs.google.com": "__Ulll-UUUU=0:Ulll0UlUUllUlUl0UUlUUlUU0UUUUU:U0U0U0llUU0-0Ul0", | ||
"drive.google.com": "__Ulll-UUUU=0:UUll0UllUUll0lUU0llUUllUllUlll:U0UllUlll-lU0lll", | ||
"en.wikipedia.org": "UUU-Ulll-Ulllll=00-Ull-0000; UUU-Ulll-Ulllll-Ulllll=00-Ull-0000; UllUU=UU:UU:Ulllllllllll:00.00:-00.00:l0", | ||
"linkedin.com": "UUUUUUUUUU=llll:0000000000000000000; llll=l=0&llll=ll-ll; lllllll=\"l=0&ll000l0l-0lll-00l0-0000-0lll0ll0ll00\"; llllllll=\"l=0&0000000000000000l0l000-0l0l-0000-0000-0l0l00l0000lUUUUUl_llU0UlUllUUlU0lUlUl00llUl\"; llll=\"l=UUUU00:l=U:l=U:l=U:l=U:l=0000:l=0:l=0:l=0000000000:l=0000000000:l=0:lll=UUUUUlUlUUUUUUllllllU0UUlUlU0lll\"", | ||
"maps.google.com": "0U_UUU=0000-00-00-00; UUU=000=UllUl00U-UU0llllUU0lUUlUl0llUl0U0lllUlUUU0l00UUUllllUlU0l0UllUUlUlU0UllUllU0UUlU00llUUUllUUlUl00lUlUUUlUUU0Ul00lllUUUUllUUl0UUlU0UllUlUUllllUllUllUll0llllllllll0lUUUlU0Ull", | ||
"microsoft.com": "llUllllUllllll=0; UUUU=0UUU00U0000000U0000U000000UU00UU; U-UU-UUUUUUUU=lll=00000l0%2200000l%22llllll000l0%22llllllllllll000%22lllllllllll%22llllllllllllllll%22llllllllllllllll%22llllllllllllllllllllll%22llllllllllllllllll%22lll-lll-lllll0l0ll%22llllllllllll%22lllllllllllllllll%2200000l0ll&lll=0ll00ll0-000l-000l-l000-l00ll0l0l00l; U-UU-Ulll=0; lllll_UllUU=0000000000~ll=00~ll=0lll000ll0l0000lll000lll0ll0000l; lllll_UllUU=0000000000~ll=00~ll=0lll000ll0l0000lll000lll0ll0000l", | ||
"play.google.com": "UUU=000=Ull0l00UlllUUUlU0UllUl0llU0l-lllUllUl0lllUU0UUU0lUlU-UUll000lUl00U0Ul_UlUU0l0lUUUUlUUl0UlUl0lU0-lll0l0l0UlUllllU0U0UU0U00UllU0l0lU0lll_0lUUU0UllUUUUll0UlUl0l0UUUUU00UUllll", | ||
"plus.google.com": "__Ulll-UUUU=0:0Ull0lUU0UUUlll0U-UllUUllllUlU:lll00_lllUUUUUUU", | ||
"sites.google.com": "__Ulll-UUUU=0:_UU0lll0UUUUlUU0lUll0UUlllllUl:UUll0lllU0UUlll0", | ||
"support.google.com": "UUU=000=llU0lUlllUUlllUUll0U0UUll0UUlUUlU-lUUllU0UllUlUUlUlU0UlUUU_U-UlUU0lUUlUllUlUlUUl00llllUl0lUUUU00Ul0UUlUll0UUUU_UUlUlllUllllU0U0lllllUlU000UllUl--UUU_ll_lllU0UllUUlllU00UlU; UUU=000=llU0lUlllUUlllUUll0U0UUll0UUlUUlU-lUUllU0UllUlUUlUlU0UlUUU_U-UlUU0lUUlUllUlUlUUl00llllUl0lUUUU00Ul0UUlUll0UUUU_UUlUlllUllllU0U0lllllUlU000UllUl--UUU_ll_lllU0UllUUlllU00UlU", | ||
"www.google.com": "0U_UUU=0000-00-00-00; UUU=UUUU_UUUlUUUUlUll_lllll0U00UUl0lllUUUUlUU_0_llUl0l0UUlU0_lU; UUU=000=lll0lUlUlllUll00U_lUlUUUUlll0lUlUU0lllUlllUllUUUll0U_U0llUU0UlU0Ull0U_l-_UUl00lUllUl0UUllUlUll0UUllUUUlU0UUlUllUlUUUlUllU-lUUlll0UlU0lUllUUUUlUUUlUlUU0llll_lU0lUlllll_UlUl", | ||
"youtu.be": "UUU=0; UUU=UUUUUUUllUU; UUUUUUU_UUUU0_UUUU=00UlUU-UUU0", | ||
"youtube.com": "UUU=0; UUU=lU0lUUUlUll; UUUUUUU_UUUU0_UUUU=0UUUlUllU0l" | ||
"cloudflare.com": "__ll_ll=llUUlU0U0UlUlUll.lllUUUUlUUUlUUlUU000UlllUl-0000000000-0-UllU00UUllllUUUllUl0l0llllUUlU0UlUUUlUUl0Ull/l0+lllllUlUlU0l0l00ll+0U0ll/l0UlU00lllllllUUll0lU00lUUUllUUlUUl", | ||
"docs.google.com": "__Ulll-UUUU=0:lUlUlU0UUlUllUUlUllUUlUUlU0U:Ul0UllUUllll0UUl", | ||
"drive.google.com": "__Ulll-UUUU=0:U0l0lUUllU0lllUlU0UU00UlllUUlU:lUUUllUlUUUllUUl", | ||
"en.wikipedia.org": "UUU-Ulll-Ulllll=00-Ull-0000; UUU-Ulll-Ulllll-Ulllll=00-Ull-0000; UUU-UU=lll; UllUU=UU:UU:Ulllllllllll:00.00:-00.00:l0; UllllllUllllUllll=0.000", | ||
"linkedin.com": "UUUUUUUUUU=llll:0000000000000000000; llll=l=0&llll=ll-ll; lllllll=\"l=0&0l0ll000-0000-00ll-0000-0l000ll00000\"; llllllll=\"l=0&00000000000000l00l0l0l-l000-00l0-00ll-l0000l000000UUUUlUlUU0llll0UlllUU0UU--UUlUlU\"; llll=\"l=UUUU00:l=U:l=U:l=U:l=U:l=0000:l=0:l=0:l=0000000000:l=0000000000:l=0:lll=UUU-UUlUlUUl0lUUlUlUllll0lllUUUU\"", | ||
"maps.google.com": "0U_UUU=0000-00-00-00; UUU=000=lU00_U0UllU-lUlUUUllUl0l0U_lUlUUUl00UUU0llllU_UUlUUU0UllUllll0l-_lUlllUU0llll0UlUUllll_UU0U0lU-llUllll00lUllUllUlUlllU_lUUUl0ll0lUUlUlllUUl0llUUl0UU0llUlllllUllUll0UUUllUU", | ||
"microsoft.com": "UUUUU=llllll0; lllll_UllUU=0000000000~ll=00~ll=0000l0l0l0lllll0l000000000l0l00l; lllll_UllUU=0000000000~ll=00~ll=0000l0l0l0lllll0l000000000l0l00l", | ||
"play.google.com": "UUU=000=UllU0l0UU0llUlU0UUU0lUUUl0lUlUUllUlUl0ll0UlUlllUlUlUUlUUllUll-UUll0llll0UllUlUU0U0lUUUUU0Ull0l0l0l0lUU0UlUU000lUUUU0lU_UUlUUlUUl0UU-lUlUU0lUlUllUUUllUUllll00lllU0U0UUU0Ull", | ||
"support.google.com": "UUU=000=l0llUUlUllU0UlllU0U0U0UlU-Ulll0lUlllU0UUllUUlUUUlllllUUUU-UUllUllU0lUU0U0U00lU0UUlUl0l0lUUlUUUUl0lUU0UUllUlUlUUlUlUUUU0ll0l0UU0lllU0lllUUUU0U0lU0U00l0Ul0UlU-U0UllU00lUUl0U; UUU=000=l0llUUlUllU0UlllU0U0U0UlU-Ulll0lUlllU0UUllUUlUUUlllllUUUU-UUllUllU0lUU0U0U00lU0UUlUl0l0lUUlUUUUl0lUU0UUllUlUlUUlUlUUUU0ll0l0UU0lllU0lllUUUU0U0lU0U00l0Ul0UlU-U0UllU00lUUl0U", | ||
"www.google.com": "0U_UUU=0000-00-00-00; UUU=Ullll0Ullll0U0llUllU00U_lllll0lUUlUl0UllUlUUl0lUlUUUl00UUl; UUU=000=lUU0U0U0U0UllUUUlUUlUUU_UlUll_l0U0UU00lUlUlUlllllUUUl00UllllUU_0ll0UllUllUUU-UUUlllU0UlUlUllUlUllUll00UllU0U00llUUl0lU00lUlUUlllUl_U00UUlU0UU0UllUlUU0lUUlUUUl00lUUlUUUU0ll", | ||
"youtu.be": "UUU=0; UUU=ll0UU-l0lUl; UUUUUUU_UUUU0_UUUU=0_llUUlUllU; UUUUUUU_UUUUUUU_UUUUUUUU=UlUUUlUUUlU%22", | ||
"youtube.com": "UUU=0; UUU=l0_UlUUUlUl; UUUUUUU_UUUU0_UUUU=UUUUlUUUlll; UUUUUUU_UUUUUUU_UUUUUUUU=UlUUUlUUUlU%22" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters