Skip to content

Instantly share code, notes, and snippets.

@hhatto
Created June 24, 2014 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhatto/ea6ce22403cf24e160d7 to your computer and use it in GitHub Desktop.
Save hhatto/ea6ce22403cf24e160d7 to your computer and use it in GitHub Desktop.
benchmark with scale image
## benchmarker: release 3.0.1 (for python)
## python platform: linux2 [GCC 4.8.2]
## python version: 2.7.6
## python executable: /usr/bin/python
## user sys total real
kaa.imlib2 0.8500 0.1300 0.9800 0.9883
PIL 8.6100 0.9400 9.5500 9.5611
PIL(fast) 1.0900 0.4500 1.5400 1.5460
pgmagick(blob-read) 0.2300 0.0200 0.2500 0.2500
pgmagick(normal-read) 1.6200 0.1800 1.8000 1.8152
pgmagick(scale+sharpen) 0.2800 0.0300 0.3100 0.2796
opencv 1.1800 0.1400 1.3200 1.3256
gtk.gdk.pixbuf 0.7700 0.1000 0.8700 0.8774
pyimlib2 0.9000 0.1400 1.0400 1.0482
pyimlib2_with_pgsharpen 0.9600 0.1500 1.1100 1.0790
vips 1.2500 0.4800 1.7300 1.3293
vips_with_sharpen 1.1500 0.4500 1.6000 1.3353
## Ranking real
pgmagick(blob-read) 0.2500 (100.0%) *************************
pgmagick(scale+sharpen) 0.2796 ( 89.4%) **********************
gtk.gdk.pixbuf 0.8774 ( 28.5%) *******
kaa.imlib2 0.9883 ( 25.3%) ******
pyimlib2 1.0482 ( 23.8%) ******
pyimlib2_with_pgsharpen 1.0790 ( 23.2%) ******
opencv 1.3256 ( 18.9%) *****
vips 1.3293 ( 18.8%) *****
vips_with_sharpen 1.3353 ( 18.7%) *****
PIL(fast) 1.5460 ( 16.2%) ****
pgmagick(normal-read) 1.8152 ( 13.8%) ***
PIL 9.5611 ( 2.6%) *
## Ratio Matrix real [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12]
[01] pgmagick(blob-read) 0.2500 100.0% 111.9% 351.0% 395.3% 419.3% 431.6% 530.3% 531.7% 534.1% 618.4% 726.1% 3824.6%
[02] pgmagick(scale+sharpen) 0.2796 89.4% 100.0% 313.8% 353.4% 374.8% 385.8% 474.0% 475.3% 477.5% 552.9% 649.1% 3419.0%
[03] gtk.gdk.pixbuf 0.8774 28.5% 31.9% 100.0% 112.6% 119.5% 123.0% 151.1% 151.5% 152.2% 176.2% 206.9% 1089.7%
[04] kaa.imlib2 0.9883 25.3% 28.3% 88.8% 100.0% 106.1% 109.2% 134.1% 134.5% 135.1% 156.4% 183.7% 967.4%
[05] pyimlib2 1.0482 23.8% 26.7% 83.7% 94.3% 100.0% 102.9% 126.5% 126.8% 127.4% 147.5% 173.2% 912.1%
[06] pyimlib2_with_pgsharpen 1.0790 23.2% 25.9% 81.3% 91.6% 97.1% 100.0% 122.9% 123.2% 123.8% 143.3% 168.2% 886.1%
[07] opencv 1.3256 18.9% 21.1% 66.2% 74.6% 79.1% 81.4% 100.0% 100.3% 100.7% 116.6% 136.9% 721.3%
[08] vips 1.3293 18.8% 21.0% 66.0% 74.3% 78.9% 81.2% 99.7% 100.0% 100.5% 116.3% 136.6% 719.3%
[09] vips_with_sharpen 1.3353 18.7% 20.9% 65.7% 74.0% 78.5% 80.8% 99.3% 99.6% 100.0% 115.8% 135.9% 716.0%
[10] PIL(fast) 1.5460 16.2% 18.1% 56.8% 63.9% 67.8% 69.8% 85.7% 86.0% 86.4% 100.0% 117.4% 618.4%
[11] pgmagick(normal-read) 1.8152 13.8% 15.4% 48.3% 54.4% 57.7% 59.4% 73.0% 73.2% 73.6% 85.2% 100.0% 526.7%
[12] PIL 9.5611 2.6% 2.9% 9.2% 10.3% 11.0% 11.3% 13.9% 13.9% 14.0% 16.2% 19.0% 100.0%
======================================================================
## benchmarker: release 3.0.1 (for python)
## python platform: linux2 [GCC 4.8.2]
## python version: 2.7.6
## python executable: /usr/bin/python
## user sys total real
kaa.imlib2 0.9100 0.1600 1.0700 1.0745
PIL 9.3800 1.5300 10.9100 10.9257
PIL(fast) 1.9000 0.5600 2.4600 2.4725
pgmagick(blob-read) 0.4200 0.0600 0.4800 0.4891
pgmagick(normal-read) 1.8000 0.2700 2.0700 2.0837
pgmagick(scale+sharpen) 0.6900 0.0700 0.7600 0.6293
opencv 1.4700 0.2000 1.6700 1.2483
gtk.gdk.pixbuf 1.0600 0.1300 1.1900 1.2035
pyimlib2 0.9400 0.1400 1.0800 1.0898
pyimlib2_with_pgsharpen 1.3600 0.2000 1.5600 1.4331
vips 1.2800 0.4100 1.6900 1.2853
vips_with_sharpen 1.3200 0.4200 1.7400 1.3351
## Ranking real
pgmagick(blob-read) 0.4891 (100.0%) *************************
pgmagick(scale+sharpen) 0.6293 ( 77.7%) *******************
kaa.imlib2 1.0745 ( 45.5%) ***********
pyimlib2 1.0898 ( 44.9%) ***********
gtk.gdk.pixbuf 1.2035 ( 40.6%) **********
opencv 1.2483 ( 39.2%) **********
vips 1.2853 ( 38.1%) **********
vips_with_sharpen 1.3351 ( 36.6%) *********
pyimlib2_with_pgsharpen 1.4331 ( 34.1%) *********
pgmagick(normal-read) 2.0837 ( 23.5%) ******
PIL(fast) 2.4725 ( 19.8%) *****
PIL 10.9257 ( 4.5%) *
## Ratio Matrix real [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12]
[01] pgmagick(blob-read) 0.4891 100.0% 128.7% 219.7% 222.8% 246.1% 255.2% 262.8% 273.0% 293.0% 426.1% 505.6% 2234.0%
[02] pgmagick(scale+sharpen) 0.6293 77.7% 100.0% 170.7% 173.2% 191.2% 198.3% 204.2% 212.1% 227.7% 331.1% 392.9% 1736.0%
[03] kaa.imlib2 1.0745 45.5% 58.6% 100.0% 101.4% 112.0% 116.2% 119.6% 124.3% 133.4% 193.9% 230.1% 1016.8%
[04] pyimlib2 1.0898 44.9% 57.8% 98.6% 100.0% 110.4% 114.5% 117.9% 122.5% 131.5% 191.2% 226.9% 1002.6%
[05] gtk.gdk.pixbuf 1.2035 40.6% 52.3% 89.3% 90.6% 100.0% 103.7% 106.8% 110.9% 119.1% 173.1% 205.5% 907.9%
[06] opencv 1.2483 39.2% 50.4% 86.1% 87.3% 96.4% 100.0% 103.0% 107.0% 114.8% 166.9% 198.1% 875.2%
[07] vips 1.2853 38.1% 49.0% 83.6% 84.8% 93.6% 97.1% 100.0% 103.9% 111.5% 162.1% 192.4% 850.1%
[08] vips_with_sharpen 1.3351 36.6% 47.1% 80.5% 81.6% 90.1% 93.5% 96.3% 100.0% 107.3% 156.1% 185.2% 818.3%
[09] pyimlib2_with_pgsharpen 1.4331 34.1% 43.9% 75.0% 76.0% 84.0% 87.1% 89.7% 93.2% 100.0% 145.4% 172.5% 762.4%
[10] pgmagick(normal-read) 2.0837 23.5% 30.2% 51.6% 52.3% 57.8% 59.9% 61.7% 64.1% 68.8% 100.0% 118.7% 524.3%
[11] PIL(fast) 2.4725 19.8% 25.5% 43.5% 44.1% 48.7% 50.5% 52.0% 54.0% 58.0% 84.3% 100.0% 441.9%
[12] PIL 10.9257 4.5% 5.8% 9.8% 10.0% 11.0% 11.4% 11.8% 12.2% 13.1% 19.1% 22.6% 100.0%
======================================================================
## benchmarker: release 3.0.1 (for python)
## python platform: linux2 [GCC 4.8.2]
## python version: 2.7.6
## python executable: /usr/bin/python
## user sys total real
kaa.imlib2 1.2200 0.1700 1.3900 1.3900
PIL 11.5100 1.2300 12.7400 12.7379
PIL(fast) 4.7000 0.8300 5.5300 5.5375
pgmagick(blob-read) 0.9400 0.1300 1.0700 1.0750
pgmagick(normal-read) 2.3000 0.3400 2.6400 2.6450
pgmagick(scale+sharpen) 1.8100 0.1600 1.9700 1.5325
opencv 1.9200 0.2900 2.2100 1.6141
gtk.gdk.pixbuf 1.3100 0.2200 1.5300 1.5439
pyimlib2 1.1600 0.1800 1.3400 1.3461
pyimlib2_with_pgsharpen 2.4300 0.3400 2.7700 2.3127
vips 1.8700 0.4900 2.3600 1.6451
vips_with_sharpen 1.9000 0.4400 2.3400 1.6232
## Ranking real
pgmagick(blob-read) 1.0750 (100.0%) *************************
pyimlib2 1.3461 ( 79.9%) ********************
kaa.imlib2 1.3900 ( 77.3%) *******************
pgmagick(scale+sharpen) 1.5325 ( 70.2%) ******************
gtk.gdk.pixbuf 1.5439 ( 69.6%) *****************
opencv 1.6141 ( 66.6%) *****************
vips_with_sharpen 1.6232 ( 66.2%) *****************
vips 1.6451 ( 65.3%) ****************
pyimlib2_with_pgsharpen 2.3127 ( 46.5%) ************
pgmagick(normal-read) 2.6450 ( 40.6%) **********
PIL(fast) 5.5375 ( 19.4%) *****
PIL 12.7379 ( 8.4%) **
## Ratio Matrix real [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12]
[01] pgmagick(blob-read) 1.0750 100.0% 125.2% 129.3% 142.5% 143.6% 150.1% 151.0% 153.0% 215.1% 246.0% 515.1% 1184.9%
[02] pyimlib2 1.3461 79.9% 100.0% 103.3% 113.8% 114.7% 119.9% 120.6% 122.2% 171.8% 196.5% 411.4% 946.3%
[03] kaa.imlib2 1.3900 77.3% 96.8% 100.0% 110.2% 111.1% 116.1% 116.8% 118.3% 166.4% 190.3% 398.4% 916.4%
[04] pgmagick(scale+sharpen) 1.5325 70.2% 87.8% 90.7% 100.0% 100.7% 105.3% 105.9% 107.3% 150.9% 172.6% 361.3% 831.2%
[05] gtk.gdk.pixbuf 1.5439 69.6% 87.2% 90.0% 99.3% 100.0% 104.5% 105.1% 106.6% 149.8% 171.3% 358.7% 825.1%
[06] opencv 1.6141 66.6% 83.4% 86.1% 94.9% 95.7% 100.0% 100.6% 101.9% 143.3% 163.9% 343.1% 789.2%
[07] vips_with_sharpen 1.6232 66.2% 82.9% 85.6% 94.4% 95.1% 99.4% 100.0% 101.3% 142.5% 162.9% 341.1% 784.7%
[08] vips 1.6451 65.3% 81.8% 84.5% 93.2% 93.8% 98.1% 98.7% 100.0% 140.6% 160.8% 336.6% 774.3%
[09] pyimlib2_with_pgsharpen 2.3127 46.5% 58.2% 60.1% 66.3% 66.8% 69.8% 70.2% 71.1% 100.0% 114.4% 239.4% 550.8%
[10] pgmagick(normal-read) 2.6450 40.6% 50.9% 52.6% 57.9% 58.4% 61.0% 61.4% 62.2% 87.4% 100.0% 209.4% 481.6%
[11] PIL(fast) 5.5375 19.4% 24.3% 25.1% 27.7% 27.9% 29.1% 29.3% 29.7% 41.8% 47.8% 100.0% 230.0%
[12] PIL 12.7379 8.4% 10.6% 10.9% 12.0% 12.1% 12.7% 12.7% 12.9% 18.2% 20.8% 43.5% 100.0%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment