Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
random1 large
(version: 0)
Comparing performance of:
test1 vs test2
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var foo = () => { let s = "S"; s = s.replace(/S/g, "SSSSSSSSSS"); s = s.replace(/S/g, "SSSSSSSSSS"); s = s.replace(/S/g, "SSSSSSSSSS"); s = s.replace(/S/g, "SSSSSSSSSS"); s = s.replace(/S/g, "SSSSSSSSSS"); s = s.replace(/S/g, "SSSSSSSSSS"); s = s.replace(/S/g, "javascript" + "\n"); return s; } var bar = () => { return new Array(1000000).fill('javascript').join('\n') }
Tests:
test1
console.log(foo());
test2
console.log(bar());
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
test1
test2
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
temptest
lodash uniq vs VanillaJS
Normalize path: JS Regex vs .endsWith vs .indexOf vs .slice
random12
Comments
Confirm delete:
Do you really want to delete benchmark?