Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
eval vs parseInt
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
Browser:
Firefox 141
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
4 months ago
Benchmark engine:
Benchmark.js
short parseInt()
1568.3M/s
long parseInt()
1559.1M/s
short eval()
4.9M/s
long eval()
3.1M/s
View exact numbers
Test name
Executions per second
✓
short parseInt()
1,568,253,824 Ops/sec
long parseInt()
1,559,123,840 Ops/sec
short eval()
4,886,515 Ops/sec
long eval()
3,102,828 Ops/sec
Tests:
long eval()
eval("99999999999999999999999999999999999999999999999999999999999999999999999999");
long parseInt()
parseInt("99999999999999999999999999999999999999999999999999999999999999999999999999");
short eval()
eval("999");
short parseInt()
parseInt("999");