Skip to content

Commit

Permalink
chore: update benchmarks;
Browse files Browse the repository at this point in the history
- Closes #88
  • Loading branch information
lukeed committed Dec 29, 2023
1 parent 554ad31 commit 6e3b2b9
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions bench/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,45 @@
## Node

These are the results while running this directory's benchmark suite in Node v10.13.0.
These are the results while running this directory's benchmark suite in Node v20.10.0.

> **Note:** The `` denotes that the candidate has a different API and is not compatible with `classnames` usage.
```
# Strings
classcat x 8,719,816 ops/sec ±0.69% (91 runs sampled)
classnames x 3,992,284 ops/sec ±1.64% (94 runs sampled)
clsx x 12,784,134 ops/sec ±0.42% (97 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,680,509 ops/sec ±0.36% (97 runs sampled)
classnames x 3,772,978 ops/sec ±0.46% (96 runs sampled)
clsx x 9,412,010 ops/sec ±0.42% (95 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 7,589,602 ops/sec ±0.62% (95 runs sampled)
classnames x 1,665,275 ops/sec ±1.83% (93 runs sampled)
clsx x 9,141,916 ops/sec ±0.42% (95 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,411,409 ops/sec ±0.84% (93 runs sampled)
classnames x 1,164,706 ops/sec ±1.60% (95 runs sampled)
clsx x 7,165,151 ops/sec ±0.47% (91 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,447,346 ops/sec ±0.68% (92 runs sampled)
classnames x 1,597,180 ops/sec ±1.49% (93 runs sampled)
clsx x 7,651,411 ops/sec ±0.56% (95 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,595,879 ops/sec ±0.42% (96 runs sampled)
classnames x 2,129,199 ops/sec ±1.46% (94 runs sampled)
clsx x 8,119,210 ops/sec ±0.42% (93 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 1,771,920 ops/sec ±0.41% (96 runs sampled)
classnames x 1,166,577 ops/sec ±0.84% (94 runs sampled)
clsx x 2,238,939 ops/sec ±0.34% (95 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)
```

## Browsers
Expand Down

0 comments on commit 6e3b2b9

Please sign in to comment.