Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
POJO vs Functions w/ loop
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
POJO
109493.2 Ops/sec
Function w/ return
157992.2 Ops/sec
Script Preparation code:
var x = { value : 10, label : 'Codice fiscale ', valueStyle : { fontsize: 14 }, isEmpty : function() { return 0 == 0 }, isVisible : true, style : { xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5 }, otherStuff: [ { style: {color: "red", xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5} , class: "test_" }, { style: {color: "blue"}, class: "toast_" } ] };
Tests:
POJO
var y = { value : 10, pkName : "Item", pkKeys : ["Tenant", "IdFirm", "CodItem"], ref : x }; console.log(y);
Function w/ return
var y = function() { return { value : 10, pkName : "Item", pkKeys : ["Tenant", "IdFirm", "CodItem"], ref : x }; } console.log(y());