Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
array direct vs generic call
(version: 1)
Comparing performance of:
direct call vs generic call
Created:
an hour ago
by:
Registered User
Jump to the latest result
Script Preparation code:
const values = Array.from(new Array(100), (_,i) => i);
Tests:
direct call
values.includes(95);
generic call
Array.prototype.includes.call(values, 95);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
direct call
generic call
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
an hour ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:150.0) Gecko/20100101 Firefox/150.0
Browser/OS:
Firefox 150 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
direct call
13162926.0 Ops/sec
generic call
13036939.0 Ops/sec
Related benchmarks:
Array construct vs array push
Array.prototype.push vs Array.prototype.push.apply
Array Push vs. Index Access
Creation of new Array: Array.from vs. new Array
Array.from->map vs Array.prototype.map.call
Array.from().map vs Array.prototype.map.call
new Array() vs []
Array isArray vs Object.prototype
Array.prototype.push vs Array.prototype.shift
Comments
Confirm delete:
Do you really want to delete benchmark?