headius (owner)

Revisions

gist: 213955 Download_button fork
public
Public Clone URL: git://gist.github.com/213955.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
NO PATCHES
 
~/projects/jruby ➔ jruby bench/bench_io_foreach.rb
                                    user system total real
IO.foreach(file) 11.664000 0.000000 11.664000 ( 11.617000)
                                    user system total real
IO.foreach(file) 11.391000 0.000000 11.391000 ( 11.391000)
                                    user system total real
IO.foreach(file) ^C
~/projects/jruby ➔ jruby bench/bench_io_foreach_wide.rb
                                    user system total real
IO.foreach(file) 9.877000 0.000000 9.877000 ( 9.822000)
                                    user system total real
IO.foreach(file) 9.223000 0.000000 9.223000 ( 9.223000)
                                    user system total real
IO.foreach(file) 9.247000 0.000000 9.247000 ( 9.247000)
                                    user system total real
IO.foreach(file) ^C
 
JUST RJ PATCH
 
~/projects/jruby ➔ jruby bench/bench_io_foreach.rb
                                    user system total real
IO.foreach(file) 12.270000 0.000000 12.270000 ( 12.228000)
                                    user system total real
IO.foreach(file) 11.663000 0.000000 11.663000 ( 11.660000)
                                    user system total real
IO.foreach(file) 11.651000 0.000000 11.651000 ( 11.651000)
                                    user system total real
IO.foreach(file) ^C
~/projects/jruby ➔ jruby bench/bench_io_foreach_wide.rb
                                    user system total real
IO.foreach(file) 7.214000 0.000000 7.214000 ( 7.168000)
                                    user system total real
IO.foreach(file) wide 6.578000 0.000000 6.578000 ( 6.578000)
                                    user system total real
IO.foreach(file) 6.632000 0.000000 6.632000 ( 6.632000)
                                    user system total real
IO.foreach(file) 6.627000 0.000000 6.627000 ( 6.627000)
                                    user system total real
IO.foreach(file) ^C
RJ PATCH PLUS LINENO CLEANUP
 
~/projects/jruby ➔ jruby bench/bench_io_foreach.rb
                                    user system total real
IO.foreach(file) 10.363000 0.000000 10.363000 ( 10.322000)
                                    user system total real
IO.foreach(file) 9.939000 0.000000 9.939000 ( 9.939000)
                                    user system total real
IO.foreach(file) 9.988000 0.000000 9.988000 ( 9.988000)
                                    user system total real
IO.foreach(file) 9.950000 0.000000 9.950000 ( 9.950000)
                                    user system total real
IO.foreach(file) 10.051000 0.000000 10.051000 ( 10.051000)
 
~/projects/jruby ➔ jruby bench/bench_io_foreach_wide.rb
                                    user system total real
IO.foreach(file) 7.064000 0.000000 7.064000 ( 7.021000)
                                    user system total real
IO.foreach(file) 6.536000 0.000000 6.536000 ( 6.535000)
                                    user system total real
IO.foreach(file) 6.586000 0.000000 6.586000 ( 6.587000)
                                    user system total real
IO.foreach(file) 6.600000 0.000000 6.600000 ( 6.600000)
                                    user system total real
IO.foreach(file) ^C
 
RUBY 1.8.6
 
~/projects/jruby ➔ ruby bench/bench_io_foreach.rb
                                    user system total real
IO.foreach(file) 7.130000 1.810000 8.940000 ( 9.025501)
                                    user system total real
IO.foreach(file) 7.180000 1.830000 9.010000 ( 9.136718)
                                    user system total real
IO.foreach(file) 7.120000 1.810000 8.930000 ( 8.987800)
                                    user system total real
IO.foreach(file) 7.190000 1.920000 9.110000 ( 9.400424)
                                    user system total real
 
~/projects/jruby ➔ ruby bench/bench_io_foreach_wide.rb
                                    user system total real
IO.foreach(file) 4.740000 6.010000 10.750000 ( 10.825298)
                                    user system total real
IO.foreach(file) 4.750000 6.020000 10.770000 ( 10.835102)
                                    user system total real
IO.foreach(file) 4.760000 6.110000 10.870000 ( 10.965686)
                                    user system total real
IO.foreach(file) ^Cbench/bench_io_foreach_wide.rb:21:in `foreach': Interrupt