Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
replace vs splitjoin
(version: 0)
Comparing performance of:
a vs b
Created:
8 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var str='Стэн против сил зла (2 сезон 1-8 серия из 8) (2017) WEB-DL 720p | Newstudio [AVC]'; var e = function (str) { if (str) return String(str). replace(/&/g, '&'). replace(/</g, '<'). replace(/>/g, '>'). replace(/"/g, '"'). replace(/'/g, '''); return ''; }; var e2 = function (str) { if (str) return String(str) .split('&').join('&') .split('<').join('<') .split('>').join('>') .split('"').join('"') .split("'").join('''); return ''; };
Tests:
a
e(str);
b
e2(str);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
a
b
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:
replace vs splitjoin
replace vs splitjoin
replace vs splitjoin
Character removal
Comments
Confirm delete:
Do you really want to delete benchmark?