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
Different ways to concatenate strings together
<script>
var arr = ['RPKGQAREWXKVCSLNRTQKFRTXMIFQKHOCWYINZARVXCQZUCNMVDWBVQZHYEYJMNLIMUVLVNHSPXSKAGWVJTXEJWMIBLRNYDVKYRWT','EDMUBEEBKBXUUUZERMNSXFFWIBHGSDAWGMRIQWJBXGWSBVWSIKLFPRBYSJEKMFHTRZBHVKJSRGKTBHMJRXPHORFHAKRNPZGGYIOT','TXMKDXEFEQPWOFDCWJJXTBKIBROAZCUTAGEEDIKIYAFMFJPCSZZLBKUCCICCLXVLDZQHHAQGAWTGFIIYIIKJTELVMOXXLSJPSAXZ','AOGBKZIQHQPPZZZSDLNQZLOLEXBWXZVYOBAZBIQIZFYYEYQIJEYJQMUUKWQHWMGKOGJPPZYOFXMJVDRFIPOYCJTMFKUCWANLHXBW','WZKCXXLTADYJTMIVVBHBLCDICQUJNVGKVQNSNYLOCKYVWGRRIZTUBXDEOXNCSUNNKAGYZSNBCLXYSOQAOKVPHYTVVHXOBKCMLIKK','BYLDKICCXSDLCYBKWVGSCDGEOJQZRBKTAVWKEYMCRPNUOPEKKKDNOKRDTIDLKNEKJAUNZHQQWELLTQWDBZRQJITCRXOBKSLUTFHS','NXJJBVVVLRZMQQCAYWDQTRREJCYDIGWVEFFGBABMRAZIRCJPYMFSDXWNZVQIBNEFTJLUKNHCOGLFIUVHGBZKYVXYROGSBKYVUKPF','XWHLCSRLMMSTNRDLNBJEQQXSBVNWFCBDYIPBBGMOSFHFXKRLMBQCRNUTJIPOKRRJAGKBNXQFCXKAICLUDBXVOSPXAFMKWETWLEYY','CODFMOFURQPURMQGEFEEKQPHVJEGOCFQRJVDXAXORMJJZAQDFUIQLYXGHBNVETLVCHYZ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XYFSTWEPYDVDUIHLGJCXDRUUMMTKOVYLTEENA','ICYLYBFHJRNTULXLFRYSLJHGITAMXNNFQMROOXVYOJSJVPVBHUTSDBZMUZZRNMXDZPRNMNMBXEKSUFTBZNTCOSPJSOAFAYJANBNA','OABLFLEZQXAQLTTZMIIEWJKXITXWULXJLYVQKZPBXQRJKKJWSSBOCLLKFJHZUEJFDFWNFMODCFMMPVIINKWPVIAASIAMNKSQPODU','BSXDXJPNFYVTJSIEBJFTRGFEQXVGMYANQYROIHBNGXGPPPTQZZKRGPWWNRDAQEOHCFVLMXZSUGIKVCBVBLMHAIEOZHPPLDWOJSZW','PZPKFXUAZWVAHIIIQNWQUMFGPCVYVVULUJWZGRAGNWHUEPCVDZLYMREBUAAPWVBQFXQMOQSCNZWSPZNSZYQLPVNJWNZSIBIOYZAN','QSPDSMWHLJALHQXXMKHIXHBGIKVHJVUZNKDFWZNIJNTREQOQBWZZEBFMLBUUWOUKYYPVYDDHQXYUONLPKLOOMUBYVVSRKNBJMREK','UISLGRGUFSKPEYERTGPPBIGMVIVIAASVILGPCNKIFUYJTCBMJQBLYIXURSCRSVNBHTRKHBSMVQWOTXBCODNNLLHDDKUWGIYNCPXJ','QPWMGTBZRCCFFQSRBAUFKPBQXAEZQCJHSFTYYUYPXBVDRNUSOPXYFZPCATCQVLXNRRMPLKFJLAMDOHWCXTBCTQETKHKGTHUKYGZK']</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Direct concatenation |
| ready |
Individual += statements |
| ready |
Individual statements |
| ready |
Using Array#join |
| ready |
Single individual statement |
| ready |
Function based (for) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.