new Date().getTime() vs Date.now()

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
new Date().getTime()
const now = new Date().getTime();
ready
Date.now()
const now = Date.now();

ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.