Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add some profiling

  • Loading branch information...
commit fe5b43cf972f9a629983b4c19f425150b90e9fcd 1 parent 5f3b12b
Daniel Schierbeck authored June 02, 2010
1  .gitignore
@@ -22,3 +22,4 @@ pkg
22 22
 .yardoc
23 23
 doc
24 24
 minx.gemspec
  25
+PROF
3  examples/sieve.rb
@@ -2,6 +2,7 @@
2 2
 $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3 3
 
4 4
 require 'minx'
  5
+require 'unprof'
5 6
 
6 7
 def generate(range, cout)
7 8
   Minx.spawn { range.each {|i| cout.write(i) } }
@@ -38,4 +39,4 @@ def worker(cin, cout)
38 39
 printer(RESULTS)
39 40
 worker(JOBS, RESULTS)
40 41
 
41  
-Minx.join(generate(2..800, JOBS))
  42
+Minx.join(generate(2..2000, JOBS))

0 notes on commit fe5b43c

Please sign in to comment.
Something went wrong with that request. Please try again.