Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Getter overhead
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Browser:
Chrome 139
Operating system:
Linux
Device Platform:
Desktop
Date tested:
10 months ago
Test name
Executions per second
direct call
1439278.8 Ops/sec
getter overhead
1417869.6 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const input = new Array(1000).fill().map((v, i) => i); const r = () => 42; const a = () => r(); class B {}; Object.defineProperty(B.prototype, "read", { get: () => r() }); const b = new B();
Tests:
direct call
const result = input.map(() => a())
getter overhead
const result = input.map(() => b.read)