time asdfasdf

Benchmark created on


Description

time of a function and time of a const

Preparation HTML

<script>
function getTime1() {
	return Date.now();
}
const getTime2 = () => {
	return Date.now();
}

Test runner

Ready to run.

Testing in
TestOps/sec
func
getTime1() + getTime1() + getTime1() + 
getTime1() + getTime1() + getTime1() + 
getTime1() + getTime1() + getTime1();
ready
const
getTime2() + getTime2() + getTime2() + 
getTime2() + getTime2() + getTime2() + 
getTime2() + getTime2() + getTime2();
ready
sys
Date.now() + Date.now() + Date.now() + 
Date.now() + Date.now() + Date.now() + 
Date.now() + Date.now() + Date.now();
ready

Revisions

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