Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
#5
branch: all_the_assets

This branch is 1 commit ahead and 7 commits behind master

Octocat-spinner-32 app all the assets September 27, 2012
Octocat-spinner-32 config zomg pages September 27, 2012
Octocat-spinner-32 db omg turbo based on params. September 27, 2012
Octocat-spinner-32 doc initial repo September 27, 2012
Octocat-spinner-32 lib initial repo September 27, 2012
Octocat-spinner-32 log initial repo September 27, 2012
Octocat-spinner-32 public initial repo September 27, 2012
Octocat-spinner-32 script initial repo September 27, 2012
Octocat-spinner-32 spec with specs September 27, 2012
Octocat-spinner-32 vendor initial repo September 27, 2012
Octocat-spinner-32 .gitignore initial repo September 27, 2012
Octocat-spinner-32 .rspec with specs September 27, 2012
Octocat-spinner-32 Gemfile with specs September 27, 2012
Octocat-spinner-32 Gemfile.lock with specs September 27, 2012
Octocat-spinner-32 README.md all the assets September 27, 2012
Octocat-spinner-32 Rakefile initial repo September 27, 2012
Octocat-spinner-32 config.ru initial repo September 27, 2012
README.md

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 knuthtony 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"

Wisdom.

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.

all the assets branch

This has BCX's Javascript and CSS files.

To run it:

$ bundle
$ rspec

Done.

What I get:

With 1000 pages:

$ rspec
       user     system      total        real
 no turbolinks 21.990000   2.890000  25.150000 (581.822206)
yes turbolinks 10.970000   0.910000  11.880000 (196.481247)

With 100 pages:

$ rspec
       user     system      total        real
 no turbolinks  2.230000   0.300000   2.800000 ( 56.777195)
yes turbolinks  1.130000   0.090000   1.220000 ( 19.173316)
Something went wrong with that request. Please try again.