Mobile/Gonzales: Difference between revisions

Line 85: Line 85:
|}
|}


==== Sample ====
The sample used for the tests below was made using images from 20 different webpages from the Alexa's top 200 most visited websites list.
{| class="wikitable"
|-
! Format !! Number of images !! Total size (MB)
|-
| JPEG || 325 || 12
|-
| PNG || 817 || 14
|-
| GIF || 325 || 1.8
|}


==== PNG Compression ====
==== PNG Compression ====


Tests are done using a set of PNG images from "real" most visited websites. The sample size is 3432kB.
The PNG sample size is 12383KB.


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 94: Line 108:
! Compression Method !! New sample size (kB) !! Average compression (%) !! Total time (s)
! Compression Method !! New sample size (kB) !! Average compression (%) !! Total time (s)
|-
|-
| optipng -o 1 || 3069 || 11 || 22
| optipng -o 1 || 11560 || 7 || 70
|-
| optipng -o 5 || 10940 || 12 || 481
|-
|-
| optipng -o 7 || 2911 || 16 || 343
| [http://pngquant.org/ pngquant] || 5169 || 59 || 69
|-
|-
| [http://pngquant.org/ pngquant] || 1874 || 46 || 18
| pngcrush || 10997 || 12 || 90
|-
|-
| pngcrush || 3062 || 11 || 30
| pngcrush + optipng -o 5 || 10280 || 17 || 541
|-
|-
| pngcrush + optipng -o 5 || 2850 || 17 || 219
| WebP (quality = 90) || 4741 || 62 || 47
|-
|-
| WebP (quality = 90) || 1500 || 56 || 11
| WebP (quality = 100) || 8321 || 33 || 48
|-
|-
|}
|}
Line 110: Line 126:
==== JPEG Compression ====
==== JPEG Compression ====


The sample size is 841kB.
The sample size is 10846kB.
 
/* TODO: get a more relevant sample set */


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 118: Line 132:
! Compression Method !! New sample size (kB) !! Average compression (%) !! Total time (s)
! Compression Method !! New sample size (kB) !! Average compression (%) !! Total time (s)
|-
|-
| mozjpeg || 808 || 4 || 2
| mozjpeg || 9663 || 11 || 53
|-
|-
| mozjpeg (quality = 90) || 614 || 28 || -
| mozjpeg (quality = 90) || 8571 || 21 || -
|-
|-
| jpegoptim || 837 || 1 || 1.5
| jpegoptim || 10497 || 4 || 39
|-
|-
| WebP || 1167 || -38 || 1.8
| WebP (quality = 100) || 17551 || -61 || 42
|-
|-
| WebP (quality = 90) || 535 || 37 || 1.8
| WebP (quality = 90) || 8316 || 24 || 40
|-
|-
|}
|}
Confirmed users
36

edits