Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use tinybench for benchmarks #69

Closed
wants to merge 2 commits into from

Conversation

43081j
Copy link

@43081j 43081j commented Jun 18, 2024

Switches to tinybench for benchmarking, which removes some fluff/boilerplate.

Also introduces some ES module benchmarks so we can include the likes of yoctocolors.

Such ESM-only packages have been left out of the CJS benchmarks.

Switches to tinybench for benchmarking, which removes some
fluff/boilerplate.

Also introduces some ES module benchmarks so we can include the likes of
yoctocolors.

Such ESM-only packages have been left out of the CJS benchmarks.
Copy link

@stramel stramel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good update 👍🏼

Comment on lines +19 to +25
console.log(colorette.green("colorette"))
console.log(kleur.green("kleur"))
console.log(chalk.green("chalk"))
console.log(ansi.green("ansi"))
console.log(cliColor.green("cliColor"))
console.log(picocolors.green("picocolors"))
console.log(nanocolors.green("nanocolors"))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: What is this section for?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was in the existing benchmarks. I guess so you can see that each library is actually working when running this

Co-authored-by: Michael Stramel <stramel@users.noreply.github.com>
@alexeyraspopov
Copy link
Owner

Thanks for the PR. I ended up switching to https://github.com/evanwashere/mitata as it provides extra stats, not just final ops/sec. See #86 for details.

@43081j
Copy link
Author

43081j commented Oct 10, 2024

All good! Makes sense to me 👍

@43081j 43081j deleted the benches branch October 10, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants