Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 3 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
View
13 README.md
@@ -36,6 +36,11 @@ 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 lots of sleep branch
+
+This has BCX's Javascript and CSS files, and adds a `sleep 0.5` in the
+controller to simulate database access.
+
## To run it:
```
@@ -52,8 +57,8 @@ With 1000 pages:
```
$ rspec
user system total real
- no turbolinks 11.170000 0.980000 12.460000 (138.656728)
-yes turbolinks 10.800000 0.870000 11.670000 ( 80.436286)
+ no turbolinks 19.120000 2.350000 21.730000 (1080.913321)
+yes turbolinks 17.740000 2.180000 19.920000 (833.065923)
```
With 100 pages:
@@ -61,7 +66,7 @@ With 100 pages:
```
$ rspec
user system total real
- no turbolinks 1.640000 0.190000 2.140000 ( 15.652763)
-yes turbolinks 1.120000 0.090000 1.210000 ( 7.776116)
+ no turbolinks 1.890000 0.240000 2.400000 (107.978563)
+yes turbolinks 1.230000 0.130000 1.360000 ( 79.201259)
```
View
44 app/assets/javascripts/page.js
44 additions, 0 deletions not shown
View
3  app/assets/javascripts/page.js.coffee
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
View
1  app/assets/stylesheets/page.css
1 addition, 0 deletions not shown
View
3  app/assets/stylesheets/page.css.scss
@@ -1,3 +0,0 @@
-// Place all the styles related to the page controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
View
1  app/controllers/pages_controller.rb
@@ -1,5 +1,6 @@
class PagesController < ApplicationController
def show
+ sleep 0.5
@id = params[:id]
@next_id = @id.to_i + 1

No commit comments for this range

Something went wrong with that request. Please try again.