Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
function(a,b,c) vs function({a,b,c})
Check how much slower the processing becomes
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/142.0.0.0 Safari/537.36
Browser:
Chrome 142
Operating system:
Windows
Device Platform:
Desktop
Date tested:
5 months ago
Test name
Executions per second
function(a,b,c)
397.4 Ops/sec
function({a,b,c})
407.6 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
function testA ( a = 0, b = 0, c = 0 ) { return a + b + c; } function testB ( {a = 0,b = 0,c = 0} ) { return a + b + c; }
Tests:
function(a,b,c)
for(i = 0; i < 0x10000; i++){ var obj = {}; if(i % 2 == 0) obj.a = i; if(i % 3 == 0) obj.b = i * i; if(i % 5 == 0) obj.c = i * i * i; var _ = testA(obj.a, obj.b, obj.c); }
function({a,b,c})
for(i = 0; i < 0x10000; i++){ var obj = {}; if(i % 2 == 0) obj.a = i; if(i % 3 == 0) obj.b = i * i; if(i % 5 == 0) obj.c = i * i * i; var _ = testB(obj); }