Skip to content

Commit

Permalink
- Add speed tester
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Oct 11, 2010
1 parent 58c7dd8 commit 25c0f20
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions samples/speed.rb
@@ -0,0 +1,18 @@
#!/usr/bin/env ruby
#

require "base64"
require "json"
$:.unshift "../lib"
$:.unshift "lib"
require "ssh/key/signer"

data = (argv[0] or "Hello world")
signer = SSH::Key::Signer.new

start = Time.now
0.upto(1000) do
sigs = signer.sign(data)
end
duration = Time.now - start
puts "Duration: #{duration}"

0 comments on commit 25c0f20

Please sign in to comment.