Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
new vs not
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Browser:
Chrome 118
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
native split
20.7M/s
class split
19.5M/s
string split
9.8M/s
View exact numbers
Test name
Executions per second
✓
native split
20,673,958 Ops/sec
class split
19,480,692 Ops/sec
string split
9,840,988 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
class MyString { #value = '' constructor(value) { this.#value = value } split(char) { return this.#value.split(char) } }
Tests:
native split
'/path/to/success?is=great'.split('?')
class split
new MyString('/path/to/success?is=great').split('?')
string split
new String('/path/to/success?is=great').split('?')