Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array split vs string substring - second position
(version: 0)
Comparing performance of:
Array.split vs Substring
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var s1 = "foo.bar"; var s2 = "foo.baz";
Tests:
Array.split
var n1 = s1.split(".")[1]; var n2 = s2.split(".")[1];
Substring
var n1 = s1.substring(s1.indexOf(".") + 1); var n2 = s2.substring(s2.indexOf(".") + 1);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array.split
Substring
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!
Comments
Confirm delete:
Do you really want to delete benchmark?