Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

actually measure read speed

  • Loading branch information...
commit 9c92ece4ade37101ddc4589e9b8dab560a957b07 1 parent d2304fb
Andrew J Cronk authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 web.rb
View
10 web.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.