Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
slice vs substring with specified start and end
(version: 0)
Comparing performance of:
slice vs substring
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var example = '2020-03-19T00:00:00'
Tests:
slice
var result = example.slice(0,6)
substring
var result = example.substring(0,6)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
slice
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!
Related benchmarks:
slice vs substring remove last char
Array split vs string substring for dates
Slice vs Split time benchmark
Performance Test: substring vs substr vs slice vs split for date
Comments
Confirm delete:
Do you really want to delete benchmark?