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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser:
Chrome 137
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
epoch parse
2.4M/s
string parse
110K/s
View exact numbers
Test name
Executions per second
✓
epoch parse
2,369,331 Ops/sec
string parse
109,795 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);