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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0
Browser:
Chrome 144
Operating system:
Windows
Device Platform:
Desktop
Date tested:
7 months ago
Benchmark engine:
Benchmark.js
Object
146.7M/s
Proxy
6.9M/s
Proxy setter
3.8M/s
View exact numbers
Test name
Executions per second
✓
Object
146,742,560 Ops/sec
Proxy
6,904,570 Ops/sec
Proxy setter
3,835,695 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