Numerous Points

Benchmark created on


Preparation HTML

<canvas id="points">
</canvas>
<script>
  var c = document.getElementById("points");
  var context = c.getContext("2d");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Test 1
context.moveTo(0,0);

for (i = 0; i < 10000; i++) {
    context.lineTo(0,i);
    if (i % 2 ==  0) {
        context.lineTo(i,i);
    }
}
ready
Test 2
var a = null;
ready

Revisions

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