cers-distance
JavaScript performance comparison
Preparation code
<script src="http://geeksbynature.dk/projects/distance/distance.js"></script>
<script>
Benchmark.prototype.setup = function() {
const rows = 500;
const cols = 500;
var data = Array(rows*cols);
for (i=0; i<cols*rows; i++)
if (i>=cols*rows/2 && i%cols<cols/2)
data[i] = 1;
else
data[i] = 0;
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
distance |
|
pending… |
distance 2 |
|
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:
- Revision 1: published by Christian Sonne
- Revision 2: published by Christian Sonne
0 comments