Permalink
Browse files

Add some profiling

  • Loading branch information...
1 parent 5f3b12b commit fe5b43cf972f9a629983b4c19f425150b90e9fcd @dasch committed Jun 2, 2010
Showing with 3 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −1 examples/sieve.rb
View
@@ -22,3 +22,4 @@ pkg
.yardoc
doc
minx.gemspec
+PROF
View
@@ -2,6 +2,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'minx'
+require 'unprof'
def generate(range, cout)
Minx.spawn { range.each {|i| cout.write(i) } }
@@ -38,4 +39,4 @@ def worker(cin, cout)
printer(RESULTS)
worker(JOBS, RESULTS)
-Minx.join(generate(2..800, JOBS))
+Minx.join(generate(2..2000, JOBS))

0 comments on commit fe5b43c

Please sign in to comment.