Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lots of sleep

  • Loading branch information...
commit 767cf0e62fffe33ef74cae31508d5d1f5060b8d2 1 parent a660efd
@steveklabnik authored
Showing with 8 additions and 8 deletions.
  1. +7 −7 README.md
  2. +1 −1  app/controllers/pages_controller.rb
View
14 README.md
@@ -36,9 +36,9 @@ This probably isn't even a good test. I don't care. Tell me how it sucks. Let's
figure it out. But having actual measurements beats complaining about shit on
Twitter any day.
-### with little sleep branch
+### with lots of sleep branch
-This has BCX's Javascript and CSS files, and adds a `sleep 0.1` in the
+This has BCX's Javascript and CSS files, and adds a `sleep 0.5` in the
controller to simulate database access.
## To run it:
@@ -57,16 +57,16 @@ With 1000 pages:
```
$ rspec
user system total real
- no turbolinks 20.060000 2.490000 22.840000 (706.659372)
-yes turbolinks 17.190000 2.110000 19.300000 (412.718228)
+ no turbolinks 19.120000 2.350000 21.730000 (1080.913321)
+yes turbolinks 17.740000 2.180000 19.920000 (833.065923)
```
With 100 pages:
```
-$ rspec
+$ rspec
user system total real
- no turbolinks 1.860000 0.260000 2.430000 ( 64.887915)
-yes turbolinks 1.190000 0.120000 1.310000 ( 38.416124)
+ no turbolinks 1.890000 0.240000 2.400000 (107.978563)
+yes turbolinks 1.230000 0.130000 1.360000 ( 79.201259)
```
View
2  app/controllers/pages_controller.rb
@@ -1,6 +1,6 @@
class PagesController < ApplicationController
def show
- sleep 0.1
+ sleep 0.5
@id = params[:id]
@next_id = @id.to_i + 1
Please sign in to comment.
Something went wrong with that request. Please try again.