Glmatrix Theejs vec3 transform

Benchmark created by objects vs arrays transform vec3 on


Preparation HTML

<script src="//glmatrix.googlecode.com/hg/glMatrix.js"></script>
<script src="//mrdoob.github.com/three.js/build/Three.js"></script>
<script>
  var a_objects = new THREE.Matrix4();
  var b_objects = new THREE.Vector3();
  
  var a_arrays = mat4.identity([]);
  var b_arrays = [1, 1, 1];
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
arrays
var c = mat4.multiplyVec3(a_arrays, b_arrays);
ready
objects
var c = a_objects.transform(b_objects);
ready

Revisions

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

  • Revision 1: published by objects vs arrays transform vec3 on
  • Revision 2: published on