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
This compares various methods of creating a string out of an array of values to determine which is faster.
var testArray = [
"quickfish", "lazytree", "brightrun", "darkbook", "smalljump",
"largecat", "fastswim", "slowpen", "hotcup", "coldbox",
"newkey", "oldball", "highbird", "lowrock", "bigleaf",
"tinystar", "loudmoon", "quietsun", "smoothrain", "roughwind",
"catfly", "dogwalk", "cartalk", "treesing", "bookdance",
"penread", "cupwrite", "boxplay", "keywork", "ballsleep",
"fisheat", "birddrink", "rocklaugh", "leafcry", "starthink",
"moonlearn", "sunteach", "rainrun", "windjump", "firefly",
"quickswim", "lazywalk", "brighttalk", "darksing", "smalldance",
"largeread", "fastwrite", "slowplay", "hotwork", "coldsleep",
"neweat", "olddrink", "highlaugh", "lowcry", "bigthink",
"tinylearn", "loudteach", "quietrun", "smoothjump", "roughfly",
"fishquick", "birdlazy", "rockbright", "leafdark", "starsmall",
"moonlarge", "sunfast", "rainslow", "windhot", "firecold",
"catnew", "dogold", "carhigh", "treelow", "bookbig",
"pentiny", "cuploud", "boxquiet", "keysmooth", "ballrough",
"swimcat", "walkdog", "talkcar", "singtree", "dancebook",
"readpen", "writecup", "playbox", "workkey", "sleepball",
"eatfish", "drinkbird", "laughrock", "cryleaf", "thinkstar",
"learnmoon", "teachsun", "runrain", "jumpwind", "flyfire",
"hotquick", "coldlazy", "newbright", "olddark", "highsmall"
];Ready to run.
| Test | Ops/sec | |
|---|---|---|
| If inside loop | | ready |
| Substring after concatenating | | ready |
| Conditional statement | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.