3px vs 5px blur
JavaScript performance comparison
Preparation code
<script src="http://fabricjs.com/lib/fabric.js"></script>
<script>
Benchmark.prototype.setup = function() {
var matrix5 = [1/1048576,10/1048576,45/1048576,120/1048576,210/1048576,252/1048576,210/1048576,120/1048576,45/1048576,10/1048576,1/1048576,10/1048576,100/1048576,450/1048576,1200/1048576,2100/1048576,2520/1048576,2100/1048576,1200/1048576,450/1048576,100/1048576,10/1048576,45/1048576,450/1048576,2025/1048576,5400/1048576,9450/1048576,11340/1048576,9450/1048576,5400/1048576,2025/1048576,450/1048576,45/1048576,120/1048576,1200/1048576,5400/1048576,14400/1048576,25200/1048576,30240/1048576,25200/1048576,14400/1048576,5400/1048576,1200/1048576,120/1048576,210/1048576,2100/1048576,9450/1048576,25200/1048576,44100/1048576,52920/1048576,44100/1048576,25200/1048576,9450/1048576,2100/1048576,210/1048576,252/1048576,2520/1048576,11340/1048576,30240/1048576,52920/1048576,63504/1048576,52920/1048576,30240/1048576,11340/1048576,2520/1048576,252/1048576,210/1048576,2100/1048576,9450/1048576,25200/1048576,44100/1048576,52920/1048576,44100/1048576,25200/1048576,9450/1048576,2100/1048576,210/1048576,120/1048576,1200/1048576,5400/1048576,14400/1048576,25200/1048576,30240/1048576,25200/1048576,14400/1048576,5400/1048576,1200/1048576,120/1048576,45/1048576,450/1048576,2025/1048576,5400/1048576,9450/1048576,11340/1048576,9450/1048576,5400/1048576,2025/1048576,450/1048576,45/1048576,10/1048576,100/1048576,450/1048576,1200/1048576,2100/1048576,2520/1048576,2100/1048576,1200/1048576,450/1048576,100/1048576,10/1048576,1/1048576,10/1048576,45/1048576,120/1048576,210/1048576,252/1048576,210/1048576,120/1048576,45/1048576,10/1048576,1/1048576],
matrix3 = [1/84, 1/84, 1/84, 2/84, 1/84, 1/84, 1/84,
1/84, 1/84, 2/84, 2/84, 2/84, 1/84, 1/84,
1/84, 2/84, 3/84, 3/84, 3/84, 2/84, 1/84,
2/84, 2/84, 3/84, 4/84, 3/84, 2/84, 2/84,
1/84, 2/84, 3/84, 3/84, 3/84, 1/84, 1/84,
1/84, 1/84, 2/84, 2/84, 2/84, 1/84, 1/84,
1/84, 1/84, 1/84, 2/84, 1/84, 1/84, 1/84
];
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
3px |
|
pending… |
5px |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments