vecmath matrix library test

JavaScript performance comparison

Test case created by Bozilla

Preparation code

<script src="http://planetbuster.no-ip.org/engine/vecmath.js"></script>
<script>
  var m1 = mat4.new();
  var m2 = mat4.new();
  var m3 = mat4.new();
</script>
    

Preparation code output

<script> var m1 = mat4.new(); var m2 = mat4.new(); var m3 = mat4.new(); </script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Translate
mat4.translate(m1, [1, 1, 1]);
pending…
Rotate Axis
mat4.rotate(m2, [1, 0, 0], 1);
pending…
Multiply
mat4.mul(m3, m1, m2);
pending…
Inverse
mat4.inverse(m3, m3);
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.

0 Comments