Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array.apply vs ... (spread)
Array.apply vs ... (spread)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Whale/4.34.340.19 Safari/537.36
Browser:
Chrome 140
Operating system:
Windows
Device Platform:
Desktop
Date tested:
5 months ago
Test name
Executions per second
makeCallApply
109158.6 Ops/sec
makeCallSpread
107327.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
function makeCallApply() { (function() { // Test case 내부에서 chunk 생성 const chunk = new Array(10000); for (let i = 0; i < 10000; i++) chunk[i] = i; (function test(a, b, c, ...rest) { // 빈 함수, 호출 오버헤드만 측정 }).apply(null, chunk); })(); } function makeCallSpread() { (function() { const chunk = new Array(10000); for (let i = 0; i < 10000; i++) chunk[i] = i; (function test(a, b, c, ...rest) { // 빈 함수 })(...chunk); })(); }
Tests:
makeCallApply
makeCallApply()
makeCallSpread
makeCallSpread()