isNaN - date vs date.valueOf

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
with valueOf
const date = new Date();
isNaN(date?.valueOf());
ready
just date
const date = new Date();
isNaN(date);
ready

Revisions

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