Skip to content

Instantly share code, notes, and snippets.

@motephyr
Last active December 22, 2015 10:01
Show Gist options
  • Select an option

  • Save motephyr/5cae9e548abc1ea1dfa4 to your computer and use it in GitHub Desktop.

Select an option

Save motephyr/5cae9e548abc1ea1dfa4 to your computer and use it in GitHub Desktop.
#osx
brew install graphicsmagick
brew install vips
#linux
sudo aptitude install libvips-dev libmagickwand-dev libxml2-dev
#加裝libxml2在路徑裡
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig
gem install ruby-vips
gem 'carrierwave-vips'
benchmark(vips)
3.260000 0.570000 10.910000 ( 13.215510)
1.820000 0.260000 5.040000 ( 7.261420)
2.470000 0.400000 8.120000 ( 7.876396)
2.560000 0.420000 8.610000 ( 5.944260)
3.350000 0.620000 12.130000 ( 8.389699)
3.540000 0.730000 14.100000 ( 8.158322)
2.980000 0.640000 11.420000 ( 7.075190)
2.800000 0.570000 10.790000 ( 6.341004)
2.420000 0.550000 8.940000 ( 4.993512)
2.110000 0.460000 7.460000 ( 3.530918)
benchmark(mini-magick)
0.500000 0.350000 7.970000 ( 9.747246)
0.280000 0.220000 5.350000 ( 5.712131)
0.600000 0.490000 12.440000 ( 8.977925)
0.470000 0.400000 11.240000 ( 5.876160)
0.660000 0.550000 13.640000 ( 7.981026)
0.700000 0.580000 18.000000 ( 8.893669)
0.630000 0.510000 15.580000 ( 7.539440)
0.760000 0.510000 12.500000 ( 6.669405)
0.720000 0.450000 11.420000 ( 5.541931)
0.460000 0.300000 9.920000 ( 3.921778)
mini-magick 0.120000 0.110000 2.340000 ( 5.902164)
vips 0.670000 0.130000 2.000000 ( 4.595236)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment