Skip to content

Commit

Permalink
Add benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Christensen committed Feb 17, 2012
1 parent 4de70f1 commit bb53d34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/syn/scanner.rb
@@ -1,7 +1,8 @@
require 'bundler'

Bundler.require

require 'benchmark'

module Syn
class Scanner

Expand Down Expand Up @@ -68,7 +69,7 @@ def close_pcap
def initialize()
open_pcap
hosts = %w[169.254.169.254]
puts run_batch(hosts)
puts Benchmark.measure { run_batch(hosts) }
end

def run_batch(hosts)
Expand Down

0 comments on commit bb53d34

Please sign in to comment.