Permalink
Browse files

actually measure read speed

  • Loading branch information...
1 parent d2304fb commit 9c92ece4ade37101ddc4589e9b8dab560a957b07 Andrew J Cronk committed Mar 1, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 web.rb
View
@@ -10,11 +10,15 @@
api_port = Integer(ENV['TEMPODB_API_PORT'])
api_secure = ENV['TEMPODB_API_SECURE'] == "False" ? false : true
- read_start = Time.now
+
client = TempoDB::Client.new( api_key, api_secret, api_host, api_port, api_secure )
- read_end = Time.now
out = ""
- client.get_series().each{ |series| out += series.to_json + "<br/>" }
+
+ read_start = Time.now
+ series = client.get_series()
+ read_end = Time.now
+
+ series.each{ |series| out += series.to_json + "<br/>" }
request_end = Time.now

0 comments on commit 9c92ece

Please sign in to comment.