Skip to content

Instantly share code, notes, and snippets.

@meltingice
Created January 20, 2016 23:50
Show Gist options
  • Save meltingice/7b79a1ffae11c8345c4b to your computer and use it in GitHub Desktop.
Save meltingice/7b79a1ffae11c8345c4b to your computer and use it in GitHub Desktop.
PSD.rb vs psd_native

PSD.rb

Small PSD

➜  psd.rb git:(master) ✗ bundle exec ruby examples/export_layer_images.rb benchmark_small.psd
      user     system      total        real
  1.370000   0.490000   1.860000 (  1.861384)

Medium PSD

➜  psd.rb git:(master) ✗ bundle exec ruby examples/export_layer_images.rb benchmark_medium.psd
      user     system      total        real
 13.890000   5.550000  19.440000 ( 19.477730)

Large PSD

➜  psd.rb git:(master) ✗ bundle exec ruby examples/export_layer_images.rb benchmark_large.psd
      user     system      total        real
128.030000  48.320000 176.350000 (176.581024)

psd_native

Small PSD

➜  psd_native git:(master) bundle exec ruby examples/export_layer_images.rb ../psd.rb/benchmark_small.psd 
      user     system      total        real
  0.400000   0.040000   0.440000 (  0.442162)

Medium PSD

➜  psd_native git:(master) ✗ bundle exec ruby examples/export_layer_images.rb ../psd.rb/benchmark_medium.psd 
      user     system      total        real
  2.940000   0.320000   3.260000 (  3.262393)

Large PSD

➜  psd_native git:(master) ✗ bundle exec ruby examples/export_layer_images.rb ../psd.rb/benchmark_large.psd 
      user     system      total        real
 24.880000   2.610000  27.490000 ( 27.569814)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment