JS Benchmarks

From this section you can access a series of tests run to assess the speed of JavaScript.

If you’ve never raised the issue of assessing what may be the quickest way to perform a given operation in Javascript this stuff is for you.

A brief explanation regarding the test:

The test structure is very simple. All tests are made by a simple script that contains two functions, f1() and f2().
The test is performed by developing two different routines designed to solve a specific task that return the same result. The code of the first routine is assigned to f1 while the second to f2.

After pressing the ‘tastone’ (big button) Benchmark this code the two functions are performed in succession (first f1 and then f2).

At the end of the test we calculate the total time of execution for both functions.
The function which is the fastest wins

If you want you can contribute to every test by using the benchmark button and posting results in the comments for your own configuration.

Just choose from the menu on the right the test you are interested in.

benchmarks