Skip to content
Browse files

some timing tweaks

  • Loading branch information...
1 parent daab1d9 commit 160e1bea9efd008cd5351b340ee77223d44689ec Nick Kallen committed
Showing with 4,153 additions and 2 deletions.
  1. +2 −2 joke_server.rb
  2. +2,099 −0 log/joke_server.log
  3. +2,052 −0 log/proxy.log
View
4 joke_server.rb
@@ -24,8 +24,8 @@ def receive_line(line)
$stats.transaction do
$stats.set('source_transaction_id', line)
$stats.measure('job') do
- 1000000.times {}
- sleep rand
+ 100000.times { Time.now }
+ sleep rand * 3
send_data("KNOCK KNOCK\n")
end
end
View
2,099 log/joke_server.log
2,099 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2,052 log/proxy.log
2,052 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit 160e1be

Please sign in to comment.
Something went wrong with that request. Please try again.