Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Adding a simple benchmark runner HTML page and node script. #123

Merged
merged 1 commit into from Dec 14, 2012

Conversation

benvanik
Copy link
Contributor

This runs the benchmarks/simple.js file with benchmarkjs and outputs the
results. More benchmarks can be added manually. In the future
update-benchmarks.sh will update the listing.

@ghost ghost assigned rsturgell Dec 14, 2012
benchmark.register('simple', function() {
var scope = wtf.trace.enterScope();
var x = 0;
x++;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if it matters, but this seems to have high probability of being optimized out completely (the business with x). Maybe take a, b and return a+b or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I'm totally going to make you do a review of all this once you've got some time - I've tried to make it so that we can easily get hydrogen dumps of the runs via node's v8 opts, though I haven't tested that yet. The benchmark.js runner can do whatever it wants to the methods before they run, too, if we need to inject big comment blocks/etc.

@rsturgell
Copy link
Contributor

lgtm

This runs the benchmarks/simple.js file with benchmarkjs and outputs the
results. More benchmarks can be added manually. In the future
update-benchmarks.sh will update the listing.
benvanik added a commit that referenced this pull request Dec 14, 2012
Adding a simple benchmark runner HTML page and node script.
@benvanik benvanik merged commit 9118270 into master Dec 14, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants