split vs substring (correct version 2) (version: 0)
Compares slice, substr and substring to each other when there is only a start index, check the split vs substring benchmark for the original version.
It's also not fair since the substring split points are hardcoded
Comparing performance of: split vs substring (hard coded)
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
split
substring (hard coded)
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36