Skip to content

Commit

Permalink
include a hashbang for all benchmark scripts
Browse files Browse the repository at this point in the history
this also makes every benchmark script executable
  • Loading branch information
fen committed Oct 22, 2016
1 parent 12a86c1 commit 7729d12
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions benchmark/capture-assign.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require "liquid"
require "benchmark/ips"

Expand Down
1 change: 1 addition & 0 deletions benchmark/end-with-vs-regexp
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

Benchmark.ips do |x|
Expand Down
Empty file modified benchmark/file-dir-ensure-trailing-slash
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions benchmark/flat-map
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

enum = (0..50).to_a
Expand Down
1 change: 1 addition & 0 deletions benchmark/hash-fetch
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

h = {:bar => 'uco'}
Expand Down
Empty file modified benchmark/jekyll-sanitize-path
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions benchmark/proc-call-vs-yield
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

def fast
Expand Down
Empty file modified benchmark/regexp-vs-include.rb
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions benchmark/sequential-assignment
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

Benchmark.ips do |x|
Expand Down
1 change: 1 addition & 0 deletions benchmark/string-concat
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

url = "http://jekyllrb.com"
Expand Down
1 change: 1 addition & 0 deletions benchmark/string-replacement
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

def str
Expand Down
1 change: 1 addition & 0 deletions benchmark/symbol-to-proc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'

Benchmark.ips do |x|
Expand Down

0 comments on commit 7729d12

Please sign in to comment.