Sha256: 348f8c464969b56cf3918b459990835b01085034a6382aa6aa1680011acb1a47

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

require 'rubygems'
require 'benchmark'
require 'systemu'
require File.expand_path '../lib/half_shell', __FILE__

commands = [
  'ls',
  'pwd',
  'echo 123'
] * 100

Benchmark.bm 15 do |bm|
  bm.report('backticks') { commands.each { |command| `#{command}` } }
  bm.report('systemu') { commands.each { |command| systemu command } }
  bm.report('halfshell') { commands.each { |command| HalfShell.execute(command) } }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
half_shell-0.0.3 benchmark.rb