mathiasbynens / jsperf.com

jsPerf.com source code
http://jsperf.com/
Other
473 stars 56 forks source link

Export to node.js/io.js feature #213

Closed mscdex closed 9 years ago

mscdex commented 9 years ago

Many times I see a (non-DOM-related) test on jsperf.com that I would like to test on node.js/io.js, but having to manually write the code to duplicate the test for these platforms is a hassle.

It would be great to have a button on test pages that generates the script for that particular test revision that you can easily run inside node.js/io.js (e.g. you just npm install benchmark and then paste the exported script into a file and run it).

jdalton commented 9 years ago

Check out jspm.io for testing node packages in the browser. For an example of usage see http://jsperf.com/amp-indexof.

mscdex commented 9 years ago

Well I meant code that is not in a package on npm, just random jsperf tests that I can run in node/iojs.

jdalton commented 9 years ago

We don't currently have plans to write such a tool. Though would be open to providing feedback & review for someone else wanting to.

OrKoN commented 8 years ago

@mscdex I have created a simple tool to fetch and run jsperf.com tests in node: https://github.com/OrKoN/jsperf

mscdex commented 8 years ago

@OrKoN Yeah, I ended up writing benchd awhile back to satisfy my needs :-)