include a hashbang for all benchmark scripts

this also makes every benchmark script executable
This commit is contained in:
fen 2016-10-22 03:13:30 +02:00
parent 12a86c1298
commit 7729d12cdc
12 changed files with 9 additions and 0 deletions

1
benchmark/capture-assign.rb Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require "liquid"
require "benchmark/ips"

1
benchmark/end-with-vs-regexp Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
Benchmark.ips do |x|

0
benchmark/file-dir-ensure-trailing-slash Normal file → Executable file
View File

1
benchmark/flat-map Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
enum = (0..50).to_a

1
benchmark/hash-fetch Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
h = {:bar => 'uco'}

0
benchmark/jekyll-sanitize-path Normal file → Executable file
View File

1
benchmark/proc-call-vs-yield Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
def fast

0
benchmark/regexp-vs-include.rb Normal file → Executable file
View File

1
benchmark/sequential-assignment Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
Benchmark.ips do |x|

1
benchmark/string-concat Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
url = "http://jekyllrb.com"

1
benchmark/string-replacement Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
def str

1
benchmark/symbol-to-proc Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
Benchmark.ips do |x|