Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Object vs Proxy vs Proxy setter
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 121
Operating system:
Android
Device Platform:
Mobile
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Object
7.2M/s
Proxy
2.6M/s
Proxy setter
1.1M/s
View exact numbers
Test name
Executions per second
✓
Object
7,200,662 Ops/sec
Proxy
2,550,432 Ops/sec
Proxy setter
1,084,836 Ops/sec
Script Preparation code:
object = { test: 1 } proxy = new Proxy(object, {}) proxyWithHandler = new Proxy(object, { set(target, prop, value) { target[prop] = value } })
Tests:
Object
object.test = 1
Proxy
proxy.test = 1
Proxy setter
proxyWithHandler.test = 1