Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Document how to run benchmark.js #254

Open
jdmarshall opened this issue May 26, 2022 · 1 comment
Open

Document how to run benchmark.js #254

jdmarshall opened this issue May 26, 2022 · 1 comment

Comments

@jdmarshall
Copy link

jdmarshall commented May 26, 2022

The Benchmark.js home page shows how to write a test suite, but at no point does it show how to run the test suite and get results.

There is no bin, as you would get with testing frameworks, so my best guess at the correct answer was:

lib/settings/index.bench.js

But this only results in a few lines of console code from the code under test and then nothing. No statistics, no output files.

Stepping through in a debugger, the code is definitely running. It's just not accomplishing anything.

@EmilyRagan
Copy link

I definitely agree that this should be on the main page. I found this library through this article, which says to just run it with node yourBenchmarkFile.js, which works for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants