Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 86
- Log:
Initial import of I2, an Instiki clone.
- Author:
- adh
- Date:
- Mon Oct 16 10:40:36 +0100 2006
- Size:
- 483 Bytes
- Properties:
- Property svn:executable is set
1 | #!/usr/local/bin/ruby |
2 | |
3 | if ARGV.empty? |
4 | puts "Usage: benchmarker times 'Person.expensive_way' 'Person.another_expensive_way' ..." |
5 | exit |
6 | end |
7 | |
8 | require File.dirname(__FILE__) + '/../config/environment' |
9 | require 'benchmark' |
10 | include Benchmark |
11 | |
12 | # Don't include compilation in the benchmark |
13 | ARGV[1..-1].each { |expression| eval(expression) } |
14 | |
15 | bm(6) do |x| |
16 | ARGV[1..-1].each_with_index do |expression, idx| |
17 | x.report("##{idx + 1}") { ARGV[0].to_i.times { eval(expression) } } |
18 | end |
19 | end |