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 WORDS = [
"apple", "banana", "cherry", "date", "elderberry", "fig", "grape", "honeydew",
"kiwi", "lemon", "mango", "nectarine", "orange", "papaya", "quince", "raspberry",
"strawberry", "tangerine", "ugli", "vanilla", "watermelon", "xigua", "yellowfruit", "zucchini",
"apricot", "blueberry", "cantaloupe", "dragonfruit", "eggplant", "feijoa", "gooseberry",
"huckleberry", "imbe", "jackfruit", "kumquat", "lime", "mulberry", "nectar", "olive",
"peach", "pear", "plum", "pomegranate", "quandong", "rhubarb", "soursop", "tamarind",
"ugni", "voavanga", "watercress", "ximenia", "yam", "ziziphus", "avocado", "blackberry",
"cranberry", "durian", "elderflower", "figtree", "grapefruit", "hawthorn", "indianfig",
"jambul", "kiwifruit", "loganberry", "medlar", "nutmeg", "okra", "pineapple", "quava",
"redcurrant", "salak", "tangelo", "ugu", "vanillabean", "wolfberry", "yuzu", "zebrafish",
"almond", "butternut", "cucumber", "dewberry", "endive", "fennel", "ginkgo", "horseradish",
"ivy", "jicama", "kale", "lettuce", "mushroom", "nopale", "onion", "potato", "quinoa",
"radish", "spinach", "turnip", "ugliapple", "violet", "wheat", "yarrow", "zest"
];
const SEARCHES = [
"b*nana", // Should match "banana"
"gr*e", // Should match "grape"
"*berry", // Should match "blueberry", "raspberry", "strawberry", etc.
"ap*e", // Should match "apple"
"*fruit", // Should match "dragonfruit", "jackfruit", "grapefruit"
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Simple with Regex |
| ready |
With Indexes and Loops |
| ready |
Without substrings |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.