Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Three.js vector copy proposal benchmark
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/142.0.0.0 YaBrowser/25.12.0.0 Safari/537.36
Browser:
Yandex Browser 25
Operating system:
Windows
Device Platform:
Desktop
Date tested:
8 months ago
Benchmark engine:
Benchmark.js
Proposed copy
136.8M/s
Current copy
128.9M/s
View exact numbers
Test name
Executions per second
✓
Proposed copy
136,781,776 Ops/sec
Current copy
128,938,312 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/84/three.js" integrity="sha256-FlZMxx4ovIzb9UVKM4+xrQqIDgW2o1aEDVRXANdMpZU=" crossorigin="anonymous"></script>
Script Preparation code:
vec2 = new THREE.Vector2() vec3 = new THREE.Vector3() vec3.proposedCopy = function(v) { if ("x" in v) this.x = v.x; if ("y" in v) this.y = v.y; if ("z" in v) this.z = v.z; return this; }
Tests:
Current copy
vec3.copy(vec2)
Proposed copy
vec3.proposedCopy(vec2)