Skip to content

Commit

Permalink
chore(bench): include ≠ symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Dec 29, 2023
1 parent bf64e71 commit 855eec2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bench/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const old = require('clsx');
function bench(name, ...args) {
console.log(`\n# ${name}`);
new Suite()
.add('classcat* ', () => classcat.apply(classcat, [args]))
.add('classcat ', () => classcat.apply(classcat, [args]))
.add('classnames ', () => classnames.apply(classnames, args))
.add('clsx (prev) ', () => old.apply(old, args))
.add('clsx ', () => clsx.apply(clsx, args))
Expand Down
14 changes: 7 additions & 7 deletions bench/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ These are the results while running this directory's benchmark suite in Node v20
```
# Strings
classcat* x 9,613,381 ops/sec ±0.16% (94 runs sampled)
classcat x 9,613,381 ops/sec ±0.16% (94 runs sampled)
classnames x 6,540,072 ops/sec ±0.11% (101 runs sampled)
clsx x 12,924,662 ops/sec ±0.15% (102 runs sampled)
# Objects
classcat* x 8,936,903 ops/sec ±0.12% (100 runs sampled)
classcat x 8,936,903 ops/sec ±0.12% (100 runs sampled)
classnames x 6,143,319 ops/sec ±0.14% (100 runs sampled)
clsx x 9,444,110 ops/sec ±0.11% (102 runs sampled)
# Arrays
classcat* x 8,247,121 ops/sec ±0.12% (98 runs sampled)
classcat x 8,247,121 ops/sec ±0.12% (98 runs sampled)
classnames x 3,451,489 ops/sec ±0.18% (99 runs sampled)
clsx x 9,401,030 ops/sec ±0.18% (101 runs sampled)
# Nested Arrays
classcat* x 6,759,204 ops/sec ±0.31% (97 runs sampled)
classcat x 6,759,204 ops/sec ±0.31% (97 runs sampled)
classnames x 2,015,566 ops/sec ±0.18% (100 runs sampled)
clsx x 7,315,032 ops/sec ±0.43% (99 runs sampled)
# Nested Arrays w/ Objects
classcat* x 6,726,315 ops/sec ±0.16% (98 runs sampled)
classcat x 6,726,315 ops/sec ±0.16% (98 runs sampled)
classnames x 3,059,235 ops/sec ±0.45% (99 runs sampled)
clsx x 7,352,761 ops/sec ±0.44% (98 runs sampled)
# Mixed
classcat* x 6,956,920 ops/sec ±0.21% (97 runs sampled)
classcat x 6,956,920 ops/sec ±0.21% (97 runs sampled)
classnames x 4,171,381 ops/sec ±0.15% (98 runs sampled)
clsx x 8,468,116 ops/sec ±0.11% (96 runs sampled)
# Mixed (Bad Data)
classcat* x 2,128,702 ops/sec ±0.13% (101 runs sampled)
classcat x 2,128,702 ops/sec ±0.13% (101 runs sampled)
classnames x 1,925,670 ops/sec ±0.19% (100 runs sampled)
clsx x 2,996,516 ops/sec ±0.07% (100 runs sampled)
```
Expand Down

0 comments on commit 855eec2

Please sign in to comment.