Skip to content

@bem-react/[email protected]

Compare
Choose a tag to compare
@yarastqt yarastqt released this 30 Aug 11:28
· 259 commits to master since this release

Performance Improvements

  • core: cache all invariants (1ea5053)
  • core: improve code performance (9798fda)

Result benchmarks:

withBemMod()::before x 62,362,328 ops/sec ±1.44% (84 runs sampled)
withBemMod()::after x 51,807,779 ops/sec ±1.80% (82 runs sampled)

withBemMod()()::before x 18,712,829 ops/sec ±1.75% (86 runs sampled)
withBemMod()()::after x 746,465 ops/sec ±0.96% (88 runs sampled)

withBemMod()()()::before x 98,460 ops/sec ±1.14% (87 runs sampled)
withBemMod()()()::after x 119,919 ops/sec ±1.11% (85 runs sampled)

BemMod matching mod::before x 104,261 ops/sec ±1.01% (85 runs sampled)
BemMod matching mod::after x 226,921 ops/sec ±2.80% (84 runs sampled)

BemMod mismatching mod::before x 207,367 ops/sec ±1.63% (81 runs sampled)
BemMod mismatching mod::after x 583,093 ops/sec ±0.99% (86 runs sampled)