Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
sample normal vs Object.freeze vs Object.seal performance
(version: 1)
Comparing performance of:
normal vs freeze vs seal
Created:
one year ago
by:
Guest
Jump to the latest result
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(); }
Tests:
normal
var normal = { A: "aa", B: "bb", C: "cc", D: "dd", E: "ee", F: "ff", G: "gg", H: "hh", I: "ii", J: "jj", K: "kk", L: "ll" };
freeze
var freeze = Object.freeze({ A: "aa", B: "bb", C: "cc", D: "dd", E: "ee", F: "ff", G: "gg", H: "hh", I: "ii", J: "jj", K: "kk", L: "ll" });
seal
var seal = Object.seal({ A: "aa", B: "bb", C: "cc", D: "dd", E: "ee", F: "ff", G: "gg", H: "hh", I: "ii", J: "jj", K: "kk", L: "ll" });
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
normal
freeze
seal
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Chrome OS 14541.0.0
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
normal
63445984.0 Ops/sec
freeze
9618287.0 Ops/sec
seal
9965352.0 Ops/sec
Related benchmarks:
Object.freeze vs Object.seal - Access only
Test array concat
Nullish vs If
js mul vs pow
test early return
set vs uniq
Test direct and destructuring performances
createElement vs DOMParser
Dinusha's normal vs Object.freeze vs Object.seal performance
Comments
Confirm delete:
Do you really want to delete benchmark?