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; rv:147.0) Gecko/20100101 Firefox/147.0
Browser:
Firefox 147
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 months ago
Test name
Executions per second
function(a,b,c)
570.9 Ops/sec
function({a,b,c})
612.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); }