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.
base fork: jschementi/ironruby-stats
base: master
...
head fork: jredville/ironruby-stats
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 5 commits
  • 9 files changed
  • 0 commit comments
  • 1 contributor
View
35 Rakefile
@@ -0,0 +1,35 @@
+namespace :stats do
+ desc "run the stats on an existing build"
+ task :nobuild do
+ exec("ruby stats.rb --skip-build --all")
+ end
+
+ desc "run the stats and upload to the server"
+ task :retry do
+ #pushd %~dp0\..\..\..\Main
+ #tf get
+ #popd
+ #pushd %~dp0
+ #ruby retry.rb
+ #ruby stats.rb --all
+ #popd
+ exec("retry.bat")
+ end
+
+ desc "run stats"
+ task :stats do
+ exec("ruby stats.rb --all")
+ end
+
+ desc "run stats without uploading"
+ task :noupload => :clean do
+ exec("ruby stats.rb --all --reporter=text")
+ end
+
+ desc "clean stats"
+ task :clean do
+ system("ruby stats.rb --clean")
+ end
+end
+
+task :default => "stats:noupload"
View
2  app.rb
@@ -210,7 +210,7 @@ def mb(bytes)
%td{:colspan => 1}
%span= data mspec[:ruby][:expectations]
- if title == "Library"
- %a{:href => 'javascript:void(0)', :onclick => "alert('The Ruby exceptions number is inflated by 2300, because RubySpec does not run that number of tests on Ruby, but will run on IronRuby. This prevents the IronRuby pass-rate for libraries from looking inflated.')"} ?
+ %a{:href => 'javascript:void(0)', :onclick => "alert('The Ruby exceptions number is inflated by 2300, because RubySpec does not run that number of tests on Ruby, but will run on IronRuby. This prevents the IronRuby pass-rate for libraries from looking inflated.')"} ?
%td= green_or_red -1 * mspec[:delta][:expectations]
%tr
%th failures
View
1  clean.bat
@@ -1 +0,0 @@
-ruby stats.rb --clean
View
2  config.rb
@@ -2,4 +2,4 @@
# The path on disk to where an IronRuby repository is
#
-REPO = "C:/Users/jimmysch/Projects/vsl"
+REPO = "C:/vsl/m1"
View
4 loop.rb
@@ -1,7 +1,7 @@
require 'benchmark'
result = Benchmark.measure do
- $a = 1; 100000.times{|i| $a *= 2}
+ 100000.times{|i| i + 1}
end
-print result.real
+print result.real
View
1  nobuild.bat
@@ -1 +0,0 @@
-ruby stats.rb --skip-build --all
View
2  retry.bat
@@ -1,4 +1,4 @@
-pushd %~dp0\..\..\..\Main
+pushd %MERLIN_ROOT%
tf get
popd
pushd %~dp0
View
1  stats.bat
@@ -1 +0,0 @@
-ruby stats.rb --all
View
52 stats.rb
@@ -4,10 +4,10 @@
BIN = "#{REPO}/Merlin/Main/Bin/debug"
CD = File.expand_path(File.dirname(__FILE__))
DATA = "#{CD}/data"
-INTERPRET = "-X:Interpret"
+NAC = "-X:NoAdaptiveCompilation"
IR = "#{BIN}/ir.exe"
MSPEC = "mspec.bat run -fs"
-MSPEC_OPTIONS = "-Gcritical"
+MSPEC_OPTIONS = "-Gcritical -Gunstable"
require 'fileutils'
require 'mymath'
@@ -113,10 +113,10 @@ def startup_time
iters = 10.0
iters.to_i.times do
c += Benchmark.measure do
- `#{IR} #{CD}/empty.rb`
+ `#{IR} #{NAC} #{CD}/empty.rb`
end.real
i += Benchmark.measure do
- `#{IR} #{INTERPRET} #{CD}/empty.rb`
+ `#{IR} #{CD}/empty.rb`
end.real
r += Benchmark.measure do
`ruby #{CD}/empty.rb`
@@ -133,8 +133,8 @@ def throughput
c = i = r = 0
iters = 10.0
iters.to_i.times do
- i += `#{IR} #{INTERPRET} #{CD}/loop.rb`.to_f
- c += `#{IR} #{CD}/loop.rb`.to_f
+ i += `#{IR} #{CD}/loop.rb`.to_f
+ c += `#{IR} #{NAC} #{CD}/loop.rb`.to_f
r += `ruby #{CD}/loop.rb`.to_f
end
c, i, r = [c,i,r].map{|i| i / iters}
@@ -432,26 +432,28 @@ def usage
o
end
-if ARGV.empty?
- puts usage
-end
+if __FILE__ == $0
+ if ARGV.empty?
+ puts usage
+ end
-ARGV.each do |arg|
- found = false
-
- $behavior.each do |options, lmbd|
- if options.include?(arg)
- found = true
- lmbd.call
- elsif options.select{|o| o.kind_of?(Regexp) && arg =~ o}.size == 1
- found = true
- lmbd.call($~)
+ ARGV.each do |arg|
+ found = false
+
+ $behavior.each do |options, lmbd|
+ if options.include?(arg)
+ found = true
+ lmbd.call
+ elsif options.select{|o| o.kind_of?(Regexp) && arg =~ o}.size == 1
+ found = true
+ lmbd.call($~)
+ end
+ end
+
+ unless found
+ puts "Unknown argument '#{arg}'"
+ puts usage
+ exit
end
- end
-
- unless found
- puts "Unknown argument '#{arg}'"
- puts usage
- exit
end
end

No commit comments for this range

Something went wrong with that request. Please try again.