Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
bind vs normal access
(version: 1)
Comparing performance of:
normal property access vs bound
Created:
6 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let a = new Set let b = a.add.bind(new Set)
Tests:
normal property access
for(let i = 100; i--;) a.add(i)
bound
for(let i = 100; i--;) b(i)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
normal property access
bound
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
6 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Browser/OS:
Chrome 141 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
normal property access
2302325.5 Ops/sec
bound
2191498.0 Ops/sec
Related benchmarks:
var vs let
assign vs set
add vs object
new Set vs set.clear()
test nulling object and overwriting vs overwriting
variable vs property (var vs this.property
variable vs property (var vs this.property) - v2
Object.defineProperty vs direct assignment
bind vs normal access 2
Comments
Confirm delete:
Do you really want to delete benchmark?