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:
3 months ago
by:
Registered User
Go 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:
3 months 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
direct call
13.2M/s
generic call
13.0M/s
View exact numbers
Test name
Executions per second
✓
direct call
13,162,926 Ops/sec
generic call
13,036,939 Ops/sec
Related benchmarks
Array.prototype.push vs Array.prototype.push.apply
Creation of new Array: Array.from vs. new Array
Array.from->map vs Array.prototype.map.call
Array isArray vs Object.prototype
Array.prototype.push vs Array.prototype.shift
Comments
Confirm delete:
Do you really want to delete benchmark?