Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Moment.unix vs moment
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0
Browser:
Firefox 130
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
epoch parse
1.6M/s
string parse
216K/s
View exact numbers
Test name
Executions per second
✓
epoch parse
1,604,882 Ops/sec
string parse
215,851 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.19.3/moment.min.js'></script>
Script Preparation code:
var string = "2020-05-16T07:00:00Z"; var unix = 1589612400;
Tests:
string parse
return moment(string);
epoch parse
return moment.unix(unix);