Comparison Matrix and Vector library

JavaScript performance comparison

Revision 10 of this test case created

Preparation code

<script src="https://raw.github.com/mrdoob/three.js/master/build/three.js"></script>
<script src="https://raw.github.com/1Pupik1989/N3D/master/source/N3D.min.js"></script>
<script type="text/javascript">
N3D.require("Math.Matrix4","Math.Vector4");
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
N3D
var v = new $V4(1,2,3,1);
var m = new $M4(
 1,2,3,4,
 0,5,6,7,
 0,0,8,9,
 0,0,0,10
);

m.inverse();
m.multiply(m);
v.add(v);
m.multiplyVector4(v);
pending…
Three.js
var v = new THREE.Vector4(1,2,3,1);
var m = new THREE.Matrix4(
 1,2,3,4,
 0,5,6,7,
 0,0,8,9,
 0,0,0,10
);

m.getInverse(m);
m.multiplyMatrices(m,m);
v.add(v);
v.applyMatrix4(m);
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment