Permalink
Browse files

added gc info (runs, time) to rubinius' benchmarks

  • Loading branch information...
1 parent c58e063 commit 417b2baf0fafc48dbfdab8a81b15836599a0613e @goncalossilva goncalossilva committed Mar 25, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 activesupport/lib/active_support/testing/performance/rubinius.rb
@@ -58,11 +58,15 @@ def measure
end
class GcRuns < Amount
- def measure; 0; end
+ def measure
+ loopback.get("system.gc.full.count").last + loopback.get("system.gc.young.count").last
+ end
end
class GcTime < Time
- def measure; 0; end
+ def measure
+ loopback.get("system.gc.full.wallclock").last + loopback.get("system.gc.young.wallclock").last
+ end
end
end
end

0 comments on commit 417b2ba

Please sign in to comment.