Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Regex vs Split and pop node name
(version: 0)
Comparing performance of:
Regex vs Split and pop
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var str = 'anything/nodeName/validName';
Tests:
Regex
str.replace(new RegExp(`.*/nodeName`, "u"), "");
Split and pop
str.split('/nodeName').pop();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Regex
Split and pop
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:
str.match vs str.split.pop
regex vs split/pop
Split vs regexp
regex vs split+pop
Comments
Confirm delete:
Do you really want to delete benchmark?