public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Updated to take compilation out of the measurements

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1214 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Mon Apr 18 12:03:25 -0700 2005
commit  bd441bb06653c1696ccdce486add6e2d0b8e93d3
tree    fdb3e3956aac95ab65702440aaf7418d473e05ba
parent  9aaea3ba73005a69873c6a889bce5f5a54a230a1
...
9
10
11
 
 
 
12
13
14
...
9
10
11
12
13
14
15
16
17
0
@@ -9,6 +9,9 @@
0
 require 'benchmark'
0
 include Benchmark
0
 
0
+# Don't include compilation in the benchmark
0
+ARGV[1..-1].each { |expression| eval(expression) }
0
+
0
 bm(6) do |x|
0
   ARGV[1..-1].each_with_index do |expression, idx|
0
     x.report("##{idx + 1}") { ARGV[0].to_i.times { eval(expression) } }
...
8
9
10
 
 
 
11
12
13
...
8
9
10
11
12
13
14
15
16
0
@@ -8,6 +8,9 @@
0
 require File.dirname(__FILE__) + '/../config/environment'
0
 require "profiler"
0
 
0
+# Don't include compilation in the profile
0
+eval(ARGV.first)
0
+
0
 Profiler__::start_profile
0
 (ARGV[1] || 1).to_i.times { eval(ARGV.first) }
0
 Profiler__::stop_profile

Comments

    No one has commented yet.