Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Ruby JavaScript CoffeeScript
Branch: with_lots_of_s…
Pull request Compare This branch is 3 commits ahead, 7 commits behind master.
Failed to load latest commit information.
app lots of sleep
config zomg pages
db omg turbo based on params.
doc initial repo
lib initial repo
log initial repo
public initial repo
script initial repo
spec with specs
vendor initial repo
.rspec with specs
Gemfile with specs
Gemfile.lock with specs lots of sleep
Rakefile initial repo

Turbolinks test

Well, by now, you've done all your arguing on Twitter. Is Turbolinks a good idea, or the Worst Thing Ever?

optimizing a bit early

don knuth tony hoare

See these guys? One of them said this:

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil"


But what makes optimization premature? When you don't know if you should do it or not. How do you know?

measure twice, cut once

measure twice

Measuring. It's good for you. You can do it. If you measure things, you can be sure what's up.

But like eating your veggies, nobody measures. Ever.

you're a scientist, dammit

Computer SCIENCE is called science for a reason, yo. Be a scientist. Don't just argue about stuff on blogs. Measure things. Then report back.

this test sucks

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:

$ bundle
$ rspec


What I get:

With 1000 pages:

$ rspec
       user     system      total        real
 no turbolinks 19.120000   2.350000  21.730000 (1080.913321)
yes turbolinks 17.740000   2.180000  19.920000 (833.065923)

With 100 pages:

$ rspec
       user     system      total        real
 no turbolinks  1.890000   0.240000   2.400000 (107.978563)
yes turbolinks  1.230000   0.130000   1.360000 ( 79.201259)
Something went wrong with that request. Please try again.