jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
const fib = x => (x > 1 ? fib(x - 1) + fib(x - 2) : x);
const intervals = [
{
action: () => {
fib(15);
},
interval: 5,
},
{
action: () => {
fib(15);
},
interval: 7,
},
{
action: () => {
fib(15);
},
interval: 8,
},
{
action: () => {
fib(5);
},
interval: 10,
},
{
action: () => {
fib(14);
},
interval: 9,
},
{
action: () => {
fib(4);
},
interval: 6,
},
{
action: () => {
fib(3);
},
interval: 3,
},
{
action: () => {
fib(25);
},
interval: 4,
},
{
action: () => {
fib(35);
},
interval: 5,
},
{
action: () => {
fib(15);
},
interval: 25,
},
{
action: () => {
fib(15);
},
interval: 5,
},
{
action: () => {
fib(15);
},
interval: 13,
},
];
const testDuration = 20 * 1000;
Ready to run.
Test | Ops/sec | |
---|---|---|
strategy1 |
| ready |
strategy2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.