class with func defintion

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
func
class Test {
	myFunction () {}
}

for (let i = 0; i < 10000; ++i) {
	var x = new Test();
}
ready
arrow
class Test {
	myFunction = () => {}
}

for (let i = 0; i < 10000; ++i) {
	var x = new Test();
}
ready

Revisions

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