Skip to content

Commit

Permalink
chore: update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
flozero committed Aug 30, 2024
1 parent a9bf4f3 commit f292bd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,4 @@ After that make sure to look at [good first issue label on github.](https://gith

## Benchmarks

TCA is our lib.

![](./packages/benchmark/benchmarks.png)
![Screenshot 2024-08-30 at 2 31 12 AM](https://github.com/user-attachments/assets/af963ec2-1e8e-49e2-898f-452b2454a303)
10 changes: 5 additions & 5 deletions packages/benchmark/benchmark.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const suite = new Benchmark.Suite();

import * as CVA from "./configs/cva.mjs";
import * as TAILWINDBUDDY from "./configs/tailwindbuddy.mjs";
import * as TAILWINDBUDDYPERFORMANCEMODE from "./configs/tailwindbuddy-performance-mode.mjs";
import * as TAILWINDBUDDYPERFORMANCEMODEOFF from "./configs/tailwindbuddy-performance-mode-off.mjs";
import * as TV from "./configs/tv.mjs";
import { twMerge } from "./configs/twMerge.config.mjs";

Expand All @@ -23,9 +23,9 @@ suite
});
})
.add(
"TAILWINDBUDDYPERFORMANCEMODE - slots false - twMerge no - compound yes",
"TAILWINDBUDDYPERFORMANCEMODEOFF - slots false - twMerge no - compound yes",
function () {
TAILWINDBUDDYPERFORMANCEMODE.noSlotsAndCompoundNoTwMergeNoResponsive.avatar.root(
TAILWINDBUDDYPERFORMANCEMODEOFF.noSlotsAndCompoundNoTwMergeNoResponsive.avatar.root(
{
size: "md",
}
Expand All @@ -48,10 +48,10 @@ suite
);
})
.add(
"TAILWINDBUDDYPERFORMANCEMODE - slots false - twMerge yes - compound yes",
"TAILWINDBUDDYPERFORMANCEMODEOFF - slots false - twMerge yes - compound yes",
function () {
twMerge(
TAILWINDBUDDYPERFORMANCEMODE.noSlotsAndCompoundNoTwMergeNoResponsive.avatar.root(
TAILWINDBUDDYPERFORMANCEMODEOFF.noSlotsAndCompoundNoTwMergeNoResponsive.avatar.root(
{
size: "md",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setupCompose } from "@busbud/tailwind-buddy";

const compose = setupCompose(["md", "lg", "xl", "2xl"], {
extraPerformanceEnabled: true,
extraPerformanceDisabled: true,
});

const options = {
Expand Down

0 comments on commit f292bd2

Please sign in to comment.