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:
one year ago
direct call
1.4M/s
getter overhead
1.4M/s
View exact numbers
Test name
Executions per second
✓
direct call
1,439,279 Ops/sec
getter overhead
1,417,870 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)