Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Freezing objects and arrays
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0
Browser:
Chrome 138
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
9 months ago
Test name
Executions per second
Freeze arrays
30344254.0 Ops/sec
Arrays
88782408.0 Ops/sec
Freeze objects
30461158.0 Ops/sec
Objects
88484192.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); } const store = { _: null }; function do_not_optimize(v) { store._ = v; }
Tests:
Freeze arrays
let x = Object.freeze([1, 2, 3, 4, 5]); do_not_optimize(x);
Arrays
let x = [1, 2, 3, 4, 5]; do_not_optimize(x);
Freeze objects
let x = Object.freeze({ x: 1, y: 2, z: 3, a: 4, b: 5 }); do_not_optimize(x);
Objects
let x = { x: 1, y: 2, z: 3, a: 4, b: 5 }; do_not_optimize(x);