const data = { x: -43432, y: 321, rotation: .43, scaleX:0.9, scaleY: 1.1, skewX: 1.2, skewY: 0.101321 };
function useClone(clone) {
for (let i=0; i<10; i++) {
const { x, y, rotation, scaleX, scaleY, skewX, skewY } = clone;
const sum = x + y + rotation + scaleX + scaleY + skewX + skewY;
}
}
Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| structuredClone | | ready |
| spread destruct | | ready |
| manual 1 | | ready |
| manual 2 | | ready |
| manual 3 | | ready |
| Object.assign 1 | | ready |
| Object.assign 2 | | ready |
| Object.create | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.