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
Proto
109.0M/s
Object.create
100.6M/s
Basic
78.9M/s
Proxy
10.1M/s
View exact numbers
Test name
Executions per second
✓
Proto
109,049,048 Ops/sec
Object.create
100,598,160 Ops/sec
Basic
78,862,568 Ops/sec
Proxy
10,050,812 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;