Skip to content

Commit

Permalink
Update index.bench.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Dec 8, 2024
1 parent 4b6f452 commit 2bd43c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stories/react/comparisons/index.bench.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const components: [string, typeof VirtuaList][] = [
];

const itemComponents: [string, typeof SimpleItem][] = [
["same sized items", SimpleItem],
["dynamic sized items", DynamicItem],
["fixed size", SimpleItem],
["dynamic size", DynamicItem],
["heavy DOM", HeavyDOMItem],
["heavy JS", HeavyJsItem],
];
Expand All @@ -43,7 +43,7 @@ const Viewport = ({ children }: { children: ReactNode }) => (

[1000, 100000].forEach((count) => {
itemComponents.forEach(([name, ItemComponent]) => {
describe(`mount / ${count} items / ${name}`, () => {
describe(`mount / ${count} items (${name})`, () => {
components.forEach(([name, Component]) => {
bench(name, async () => {
const screen = render(
Expand Down

0 comments on commit 2bd43c1

Please sign in to comment.