Skip to content

Commit

Permalink
chore: update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
flamrdevs committed Sep 11, 2023
1 parent 9ec591b commit 9e0efaa
Showing 1 changed file with 34 additions and 47 deletions.
81 changes: 34 additions & 47 deletions docs/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,65 +10,52 @@ OS `x64 | win32 | 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz | 15.71GB`

Node.js `v20.5.1`

Testing on `Friday, 8 September 2023`.

## Class Concatenation

| No | Libs | Ops/Sec |
| --- | ----------------- | ------: |
| 1 | cxs (@klass/core) | 2178290 |
| 2 | clsx | 2023431 |
| 3 | cx (cva) | 1766052 |
| 4 | classnames | 1459468 |
Testing on `Tuesday, 12 September 2023`.

## Variants

| No | Libs | Ops/Sec |
| --- | ------------------------------------ | ------: |
| 1 | @klass/core | 1680000 |
| 2 | classname-variants | 1240583 |
| 3 | @tw-classed/core | 932435 |
| 4 | @intrnl/cv | 602536 |
| 5 | @klass/core + tailwind-merge | 541806 |
| 6 | tailwind-variants(-tailwind-merge) | 403461 |
| 7 | @vanilla-extract/recipes (impostor!) | 355837 |
| 8 | tailwind-variants(+tailwind-merge) | 337251 |
| 9 | cvu | 306081 |
| 10 | classname-manager | 275905 |
| 11 | cva | 270352 |
| 12 | cvu + tailwind-merge | 209486 |
| 13 | cva + tailwind-merge | 195374 |
| 14 | pandacss (impostor!) | 78227 |
| 1 | @klass/core | 1759378 |
| 2 | classname-variants | 816012 |
| 3 | @tw-classed/core | 694961 |
| 4 | @klass/core + tailwind-merge | 532937 |
| 5 | @intrnl/cv | 528032 |
| 6 | tailwind-variants(-tailwind-merge) | 357239 |
| 7 | @vanilla-extract/recipes (impostor!) | 308376 |
| 8 | tailwind-variants(+tailwind-merge) | 272108 |
| 9 | cvu | 267728 |
| 10 | cva | 233068 |
| 11 | classname-manager | 206604 |
| 12 | cvu + tailwind-merge | 182029 |
| 13 | cva + tailwind-merge | 166480 |
| 14 | pandacss (impostor!) | 67592 |

## Variants Compound

| No | Libs | Ops/Sec |
| --- | ------------------------------------ | ------: |
| 1 | @klass/core | 811271 |
| 2 | classname-variants | 709145 |
| 3 | @intrnl/cv | 531301 |
| 4 | @klass/core + tailwind-merge | 395466 |
| 5 | @vanilla-extract/recipes (impostor!) | 287456 |
| 6 | @tw-classed/core | 224888 |
| 7 | cva | 142738 |
| 8 | cva + tailwind-merge | 117951 |
| 9 | cvu | 87821 |
| 10 | tailwind-variants(+tailwind-merge) | 83412 |
| 11 | tailwind-variants(-tailwind-merge) | 83085 |
| 12 | cvu + tailwind-merge | 74948 |
| 13 | pandacss (impostor!) | 53689 |
| 1 | @klass/core | 562332 |
| 2 | classname-variants | 513894 |
| 3 | @intrnl/cv | 391631 |
| 4 | @klass/core + tailwind-merge | 292046 |
| 5 | @vanilla-extract/recipes (impostor!) | 230901 |
| 6 | @tw-classed/core | 123657 |
| 7 | cva | 89968 |
| 8 | cva + tailwind-merge | 73457 |
| 9 | cvu | 45127 |
| 10 | tailwind-variants(-tailwind-merge) | 41689 |
| 11 | cvu + tailwind-merge | 41412 |
| 12 | tailwind-variants(+tailwind-merge) | 40826 |
| 13 | pandacss (impostor!) | 32647 |

## Responsive Variants

<!-- responsive-variants -->

| No | Libs | Ops/Sec |
| --- | -------------------------------------- | ------: |
| 1 | @klass/core | 599293 |
| 2 | @klass/core + tailwind-merge | 408280 |
| 3 | tailwind-variants(-tailwind-merge) | 119424 |
| 4 | tailwind-variants(+tailwind-merge) | 119085 |
| 5 | @vanilla-extract/sprinkles (impostor!) | 93160 |
| 6 | pandacss (impostor!) | 44198 |

<!-- responsive-variants -->
| 1 | @klass/core | 538246 |
| 2 | @klass/core + tailwind-merge | 398425 |
| 3 | tailwind-variants(+tailwind-merge) | 105391 |
| 4 | tailwind-variants(-tailwind-merge) | 103567 |
| 5 | @vanilla-extract/sprinkles (impostor!) | 75549 |
| 6 | pandacss (impostor!) | 42979 |

0 comments on commit 9e0efaa

Please sign in to comment.