statement vs expression

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
statement
function a() {
	return 0;
}

function b() {
	return 1;
}

function main() {
	a()
	return b()
}

`${main()}`
ready
expression
const a = () => 0
const b = () => 1

const main = () => (a(), b())

`${main()}`
ready

Revisions

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