Object vs Proxy 2

Benchmark created on


Description

Showing the massive overhead of proxies even with no traps.

Setup

const obj = { x: 5 };
const proxy = new Proxy({ x: 5 }, {});

Test runner

Ready to run.

Testing in
TestOps/sec
Object Set
obj.x = 9;
ready
Proxy Set
proxy.x = 9;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.