Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
call vs apply gert
(version: 1)
Comparing performance of:
call vs apply vs Reflect.apply vs call spread
Created:
5 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
'use strict' let args = Array.from({length:5}, i=>i) function a(...args) {return args.join('')}
Tests:
call
a.call(this,args[0],args[1],args[2],args[3],args[4])
apply
a.apply(this, args)
Reflect.apply
Reflect.apply(a, this, args)
call spread
a.call(...args)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
call
apply
Reflect.apply
call spread
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
5 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Browser/OS:
Chrome 142 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
call
11882618.0 Ops/sec
apply
8956525.0 Ops/sec
Reflect.apply
8555674.0 Ops/sec
call spread
8766937.0 Ops/sec
Related benchmarks:
arguments vs array
Invocation
call with value vs call with object
apply vs ...
spread vs apply
call self vs inline
rest parameters vs arguments (no extra args) actual test
arguments vs rest
call vs apply fix
Comments
Confirm delete:
Do you really want to delete benchmark?