Skip to content

Instantly share code, notes, and snippets.

@toctan
Last active December 24, 2015 23:09
Show Gist options
  • Select an option

  • Save toctan/6877729 to your computer and use it in GitHub Desktop.

Select an option

Save toctan/6877729 to your computer and use it in GitHub Desktop.
Why??
irb(main):001:0> require 'benchmark'
=> true
irb(main):002:0> puts Benchmark.measure { system "xclip .bashrc" }
0.000000 0.000000 0.000000 ( 0.008030)
=> nil
irb(main):003:0> puts Benchmark.measure { `xclip .bashrc` }
0.000000 0.000000 0.000000 ( 33.215158)
=> nil
irb(main):004:0> RUBY_VERSION
=> "2.0.0"
irb(main):005:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment