Simplex Noise

Benchmark created on


Preparation HTML

<script src="https://raw.github.com/mrdoob/three.js/master/examples/js/SimplexNoise.js"></script>
<script>ThreeSimplexNoise = SimplexNoise;</script>
<script src="https://raw.github.com/jwagner/simplex-noise.js/55f8fa180a5442083de82b10b69e1ec44a2001bf/simplex-noise.js"></script>

Setup

simplex = new SimplexNoise();

Test runner

Ready to run.

Testing in
TestOps/sec
3D
a = 0;
for(var x = 0; x < 32; x++){
  for(var y = 0; y < 32; y++){
    for(var z = 0; z < 32; z++){
      a += simplex.noise3D(x/8, y/8, z/8);
    }
  }
}
ready
2D
a = 0;
for(var x = 0; x < 32; x++){
  for(var y = 0; y < 32; y++){
    for(var z = 0; z < 32; z++){
      a += simplex.noise2D(x/8, y/8);
    }
  }
}
ready

Revisions

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