Public Gists by evanphx

Gravatar
Thu Nov 12 17:15:43 -0800 2009
1
2
3
class B
  def self.setup
    define_method(:foo) { yield }
Gravatar
Mon Nov 09 17:05:10 -0800 2009
1
2
3
read, write = IO.pipe
 
Thread.new {
Gravatar
Fri Nov 06 15:57:35 -0800 2009
1
2
3
require 'benchmark'
 
puts Benchmark.measure {
Gravatar
Fri Oct 23 11:13:15 -0700 2009
1
2
3
3092801670997236 [GC young] 86.8% 0 9ms]
3092801684303969 [GC young] 98.6% 0 6ms]
3092801693228593 [GC young] 99.8% 0 6ms]
Gravatar
Thu Oct 15 16:33:31 -0700 2009
1
2
3
---
- file: 1/bm_app_strconcat.rb
  runs:
Gravatar
Thu Oct 15 16:31:03 -0700 2009
1
2
3
---
- file: 0/bm_loop_whileloop.rb
  runs:
Gravatar
Tue Oct 13 16:51:52 -0700 2009
1
2
3
kendall :: benchmark/tiers » ruby compare.rb 1 ../../bin/rbx macruby
---
- file: 1/bm_app_strconcat.rb
Gravatar
Tue Oct 13 14:45:41 -0700 2009
1
2
3
ok
 
37:04
Gravatar
Tue Oct 13 11:38:17 -0700 2009
1
2
3
File: 0/bm_loop_whileloop.rb
ruby: 8644 8592 8593 8688 8579
  median: 8593
Gravatar
Mon Oct 12 16:45:15 -0700 2009
1
2
3
kendall :: benchmark/tiers » ruby compare.rb 0 ruby ruby19 macruby jruby ../../bin/rbx
File: 0/bm_loop_whileloop.rb
ruby: 8602 8535 8584 8576 8601
Gravatar
Fri Oct 09 12:05:44 -0700 2009
1
2
3
def foo
  raise "you suck"
end
Gravatar
Thu Oct 08 17:25:33 -0700 2009
1
2
3
diff --git a/lib/compiler-ng/ast/exceptions.rb b/lib/compiler-ng/ast/exceptions.rb
index 0ef7f54..077143e 100644
--- a/lib/compiler-ng/ast/exceptions.rb
Gravatar
Thu Oct 08 14:58:33 -0700 2009
1
2
3
def foo
  raise "you suck"
end
Gravatar
Tue Oct 06 18:28:03 -0700 2009
1
2
3
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb
index cc989d6..e85823d 100644
--- a/actionpack/lib/action_dispatch/http/mime_type.rb
Gravatar
Fri Sep 25 11:30:43 -0700 2009
1
2
3
class Attributes
  def initialize(parent)
    @parent = parent
Gravatar
Thu Sep 24 16:14:46 -0700 2009
1
2
3
overhead
========
113 ms / 1000 req = 113.8 usec/req
Gravatar
Wed Sep 23 15:29:06 -0700 2009
1
2
3
kendall :: actionpack/examples » PROFILE=ten_partials ~/git/rbx-64/bin/rbx -Xprofiler.classes -rrubygems minimal.rb
DEPRECATION WARNING: ActiveSupport::JSON::CircularReferenceError is deprecated! Use ActiveSupport::JSON::Encoding::CircularReferenceError instead.. (called from __module_init__ (JSON) at ./../lib/../../activesupport/lib/active_support/json/encoding.rb:114)
DEPRECATION WARNING: ActiveSupport::JSON::CircularReferenceError is deprecated! Use ActiveSupport::JSON::Encoding::CircularReferenceError instead.. (called from __module_init__ (JSON) at ./../lib/../../activesupport/lib/active_support/json/encoding.rb:114)
Gravatar
Wed Sep 23 11:41:35 -0700 2009
1
2
3
Index: autoconf/config.guess
===================================================================
--- autoconf/config.guess (revision 80590)
Gravatar
Wed Sep 23 11:08:46 -0700 2009
1
2
3
3005 ms / 1000 req = 3005.5 usec/req
 
Total Runtime: 3.007284271s
Gravatar
Wed Sep 23 11:04:00 -0700 2009
1
2
3
2982 ms / 1000 req = 2982.5 usec/req
 
Total Runtime: 2.984324177s