Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

jsperf-like tool for benchmarking node.js/io.js #14

Closed
mscdex opened this issue Jul 22, 2015 · 8 comments
Closed

jsperf-like tool for benchmarking node.js/io.js #14

mscdex opened this issue Jul 22, 2015 · 8 comments

Comments

@mscdex
Copy link

mscdex commented Jul 22, 2015

Background: A couple of weeks ago I was working on performance again for my js http parser, especially with the newer v8 versions that have been released (or are in the pipeline) since I first started working on the parser. Typically I would just use Chrome and jsperf.com, but I noticed that jsperf.com had been down for some time (with no public time table if/when it will be back up) and I needed an equally easy way to do benchmarking. So I took it upon myself to sit down and write something.

The repo for the tool can be found here. It allows you to run benchmarks (using a slightly modified version of benchmark.js to work better with node/io.js) against one or more versions of node.js/io.js (v0.8+) from the browser. The project still has a few items on the TODO, but it is in a mostly working state right now and I have been using it locally for the past few days. One thing that I did discover is that the "vanilla" mode, which uses the vm module to execute benchmarks, may not be as useful when comparing across different node.js/io.js versions because the numbers/trends do not always match that of results under non-"vanilla" mode. That's just something to be aware of if you're trying things out.

I'm not sure if this tool will be of much use for this WG or not, but it was suggested that I post here about it. If people are interested in it, feel free to send some PRs and create issues for bugs and feature requests. :-)

@targos
Copy link
Member

targos commented Jul 23, 2015

Do you think it is stable enough to publish to npm? I'd like to try it and the readme says npm install -g benchd

@mscdex
Copy link
Author

mscdex commented Jul 23, 2015

@targos I'd like to at least get some tests in yet and improve the frontend error handling a bit more. I don't know when exactly that will be done, but my hope is to publish the first version by sometime this weekend at the latest.

@DavidTPate
Copy link

@mscdex Any luck on getting this published?

@mscdex
Copy link
Author

mscdex commented Aug 18, 2015

@DavidTPate Unfortunately I haven't had time to work on it anymore since I last commented. I haven't forgotten about it though...

@mscdex
Copy link
Author

mscdex commented Oct 11, 2015

Alright so I just decided to publish what I already have (after fixing a couple things) for v0.0.1. WebSocket error handling still needs to be improved and tests still have to be written though.

@trevnorris
Copy link
Collaborator

Is this supposed to run benchmarks on the server then display the results in the browser?

@mscdex
Copy link
Author

mscdex commented Oct 12, 2015

@trevnorris Yes.

@mhdawson
Copy link
Member

I think this can be closed, referenced tool was updated a while back and not since then so WG is aware and will keep in consideration as we move forward.

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

No branches or pull requests

5 participants