Home | History | Annotate | Line # | Download | only in Ruby
      1  1.1  christos #!./ruby -w
      2  1.1  christos 
      3  1.1  christos def func_c
      4  1.1  christos   print "Function C\n"
      5  1.1  christos   i = 0
      6  1.1  christos   while i < 300000
      7  1.1  christos      i = i + 1
      8  1.1  christos      j = i + 1
      9  1.1  christos   end
     10  1.1  christos end
     11  1.1  christos 
     12  1.1  christos def func_b
     13  1.1  christos   print "Function B\n"
     14  1.1  christos   i = 0
     15  1.1  christos   while i < 200000
     16  1.1  christos      i = i + 1
     17  1.1  christos      j = i + 1
     18  1.1  christos   end
     19  1.1  christos   func_c
     20  1.1  christos end
     21  1.1  christos 
     22  1.1  christos def func_a
     23  1.1  christos   print "Function A\n"
     24  1.1  christos   i = 0
     25  1.1  christos   while i < 100000
     26  1.1  christos      i = i + 1
     27  1.1  christos      j = i + 1
     28  1.1  christos   end
     29  1.1  christos   func_b
     30  1.1  christos end
     31  1.1  christos 
     32  1.1  christos func_a
     33