Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Destructure from Object.seal vs Object.freeze vs normal(special edition)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0
Browser:
Firefox 152
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one month ago
normal
370.3M/s
freeze
24.0M/s
seal
22.0M/s
View exact numbers
Test name
Executions per second
✓
normal
370,336,768 Ops/sec
freeze
24,005,656 Ops/sec
seal
21,987,498 Ops/sec
Script Preparation code:
var a = () => { return Object.seal({ x: 321, y: 123 }); }; var b = () => { return { x: 321, y: 123 }; } var c = () => { return Object.freeze({ x: 321, y: 123}); };
Tests:
seal
const {x,y} = a()
normal
const {x,y} = b()
freeze
const {x,y} = c()