Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Proxy vs Object vs Object.setPrototypeOf vs Object.create
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Basic
78862568.0 Ops/sec
Proxy
10050812.0 Ops/sec
Proto
109049048.0 Ops/sec
Object.create
100598160.0 Ops/sec
Script Preparation code:
window.basic = {a : 1, b: 2}; window.proxy = new Proxy({a : 1, b: 2}, {get : (t, p) => t[p]}) window.proto = Object.setPrototypeOf({}, {a : 1, b: 2}) window.create = Object.assign(Object.create(Object.getPrototypeOf({})), {a : 1, b: 2})
Tests:
Basic
let a = basic.a; let b = basic.b;
Proxy
let a = proxy.a; let b = proxy.b;
Proto
let a = proto.a; let b = proto.b;
Object.create
let a = create.a; let b = create.b;