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 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0
Browser:
Firefox 141
Operating system:
Linux
Device Platform:
Desktop
Date tested:
9 months ago
Test name
Executions per second
Freeze arrays
10493053.0 Ops/sec
Arrays
93661200.0 Ops/sec
Freeze objects
11498658.0 Ops/sec
Objects
104888312.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);