Closed
Description
Discussed in #252
Originally posted by tordans June 15, 2023
It would be awesome to have the performance test that clsx uses run for twMerge
and twJoin
and have a page in the repo that shows the results.
- Benchmark results by clsx https://github.com/lukeed/clsx/tree/master/bench
- Benchmark linked by clsx and classnames https://github.com/JedWatson/classnames/tree/main/benchmarks
I found existing references to performance, but in the end they do not really tell me how the libraries compare.
- twMerge performance compared to clsx #243 says "349 calls to twMerge with a total of 5.1 ms execution time." but how does this compare the the clsx/classnames benchmar?
- React Performance question #164 explains very well why it is fast, but not how fast
- https://github.com/dcastil/tailwind-merge/blob/main/docs/features.md#performance does the same (and probably should reference twJoin as well)