Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
split vs memoize
Test String.match with regex against String.split with string. We are splitting a string at the spaces.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Browser:
Firefox 121
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Access
1827.4M/s
String.split
17.8M/s
View exact numbers
Test name
Executions per second
✓
Access
1,827,363,072 Ops/sec
String.split
17,782,372 Ops/sec
Script Preparation code:
string = "vessel.type"; splited = ['vessel', 'type'];
Tests:
String.split
const test = string.split("."); test[0]
Access
splited[0]