SuperfastBlur vs StackBoxBlur vs IntegralImageBlur vs StackBlur

JavaScript performance comparison

Revision 2 of this test case created by Mario Klingemann

Preparation code

<script src="http://www.quasimondo.com/BoxBlurForCanvas/StackBoxBlur.js" language="javascript"></script>
<script src="http://www.quasimondo.com/BoxBlurForCanvas/FastBlur.js" language="javascript"></script>
<script src="http://www.quasimondo.com/StackBlurForCanvas/StackBlur.js" language="javascript"></script>
<script src="http://www.quasimondo.com/IntegralImageForCanvas/IntegralImage.js" language="javascript"></script>
<div id="canvasHolder" style="position:absolute;left:20px; top:20px;text-align:center;font-size:10px;">
<canvas height="375" width="500" style="width: 500px; height: 375px;" id="canvas">
</canvas></div>
    

Preparation code output

<script src="http://www.quasimondo.com/BoxBlurForCanvas/FastBlur.js" language="javascript"></script> <script src="http://www.quasimondo.com/StackBlurForCanvas/StackBlur.js" language="javascript"></script> <script src="http://www.quasimondo.com/IntegralImageForCanvas/IntegralImage.js" language="javascript"></script> <div id="canvasHolder" style="position:absolute;left:20px; top:20px;text-align:center;font-size:10px;"> <canvas height="375" width="500" style="width: 500px; height: 375px;" id="canvas"> </canvas></div>

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
Blurring with StackBoxBlur (1 iteration)
stackBoxBlurCanvasRGB('canvas', 0, 0, 500, 375, 8, 1);
pending…
Blurring with SuperfastBlur (1 iteration)
boxBlurCanvasRGB('canvas', 0, 0, 500, 375, 8, 1);
pending…
Blurring with StackBlur
stackBlurCanvasRGB('canvas', 0, 0, 500, 375, 8);
pending…
Blurring with StackBoxBlur (2 iterations)
stackBoxBlurCanvasRGB('canvas', 0, 0, 500, 375, 8, 2);
pending…
Blurring with SuperfastBlur (2 iterations)
boxBlurCanvasRGB('canvas', 0, 0, 500, 375, 8, 2);
pending…
Blurring with IntegralImageBlur (1 iteration)
integralBlurCanvasRGB('canvas', 0, 0, 500, 375, 8, 1);
pending…
Blurring with IntegralImageBlur (2 iteration)
integralBlurCanvasRGB('canvas', 0, 0, 500, 375, 8, 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.

0 Comments