Direct property usage vs reaching it via function

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Direct property
const a = 'test';

console.log(a);
ready
Function
const a = 'test';

console.log((() => a)());
ready

Revisions

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