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
Tests the difference between:
const animals = [
"Lion",
"Tiger",
"Elephant",
"Giraffe",
"Zebra",
"Kangaroo",
"Panda",
"Koala",
"Rhinoceros",
"Hippopotamus",
"Cheetah",
"Leopard",
"Gorilla",
"Chimpanzee",
"Orangutan",
"Wolf",
"Fox",
"Bear",
"Polar Bear",
"Grizzly Bear",
"Penguin",
"Dolphin",
"Whale",
"Shark",
"Octopus",
"Squid",
"Seal",
"Sea Lion",
"Walrus",
"Crocodile",
"Alligator",
"Tortoise",
"Turtle",
"Iguana",
"Komodo Dragon",
"Eagle",
"Falcon",
"Owl",
"Parrot",
"Peacock",
"Flamingo",
"Ostrich",
"Emu",
"Kangaroo Rat",
"Meerkat",
"Lemur",
"Sloth",
"Armadillo",
"Bison",
"Buffalo"
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Run regex.test on each case (match on 50th animal) |
| ready |
Just check value on switch (match on 50th animal) |
| ready |
Run regex.test on each case (match on first animal) |
| ready |
Just check value on switch (match on first animal) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.