mrdoob/three.js — pull request #2819 by bhouston (2012-12-18 13:46:02+00:00)
Title: Benchmarking framework with Float32Array access pattern tests

In order to help focus effort towards speeding up ThreeJS and ensuring it stays fast I have started a benchmarking test framework. I am creating it in the directory:

* /test/benchmarking

I have moved the unit tests into this directory:

* /test/unit

The benchmarks are currently written using benchmark.js as it can run in both NodeJS as well as browsers. The output from Benchmark.js is fairly robust but it is currently written to the JavaScript console.

I have added one suite of test to the benchmark suite that focuses on the speed of various Float32Array access patterns per @alteredq insight that the patterns matter tremendously in JavaScript.

I would like to expand this from the basic Float32Array types to the higher level ThreeJS math and then scene graph classes. We can actually created a combined Browser score using the results of benchmark.js as well, so this can serve as the basis of a public browser scoring system.