Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are jsPerf.com Chrome results reliable for node.js Benchmark?

I was wondering what you would think about using jsperf.com Chrome test results as a benchmark for node.js performance since they are both using V8 engine.

like image 835
Sonia Avatar asked Feb 15 '12 16:02

Sonia


People also ask

What happened to JSPerf?

JSPerf shut down by owner due to spam clogging the database and slowing the server.

Does node js work on Chrome?

The V8 engine is what powers Node. js and it is an open-source engine on which even Chrome works. It parses and runs your JavaScript inside a Node environment.

Is Node JS good for performance?

Thanks to Node. js, customer service experience and satisfaction can be increased efficiently, easily, and at a considerably low cost. Interestingly, this runtime environment can be used on both the web server and browser sides, with many open-source modules available, which makes it even more useful and beneficial.

What is benchmark in NodeJS?

Benchmark framework for NodeJS for measure the execution time of JS codes.


2 Answers

You can use Benchmark.js instead. It's what powers jsPerf and works in Node.js as well.

like image 86
John-David Dalton Avatar answered Oct 13 '22 12:10

John-David Dalton


I have created a tool that helps me to fetch and run tests from jsperf.com: https://github.com/OrKoN/jsperf

For example:

jsperf get replace-vs-split-join-vs-replaceall 67
jsperf run replace-vs-split-join-vs-replaceall 67

67 is the revision number here. The result is like this:

enter image description here

like image 35
Oleksii Rudenko Avatar answered Oct 13 '22 12:10

Oleksii Rudenko