public
Created

exception-based versus stat-based dir entries, GC comparison

  • Download Gist
gistfile1.txt
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 91 92 93
system ~/projects/jruby $ ruby-1.9.3 stat.rb
=== warming up ===
********* dirs + exception
0.614566
GC count: 34
0.61096
GC count: 34
0.606194
GC count: 34
0.605782
GC count: 34
0.607302
GC count: 34
********* nodirs + exception
0.455176
GC count: 47
0.454934
GC count: 47
0.461721
GC count: 47
0.456139
GC count: 47
0.453682
GC count: 47
********* dirs + stat
0.71154
GC count: 34
0.690492
GC count: 34
0.688012
GC count: 34
0.691404
GC count: 34
0.688759
GC count: 34
********* nodirs + stat
0.045703
GC count: 0
0.046001
GC count: 1
0.044948
GC count: 0
0.046368
GC count: 1
0.04521
GC count: 0
 
system ~/projects/jruby $ jruby stat.rb
=== warming up ===
********* dirs + exception
2.421
GC count: 4
1.365
GC count: 1
1.279
GC count: 2
1.281
GC count: 1
1.311
GC count: 2
********* nodirs + exception
3.403
GC count: 4
2.817
GC count: 5
2.829
GC count: 7
2.844
GC count: 9
2.836
GC count: 14
********* dirs + stat
1.564
GC count: 8
1.523
GC count: 11
1.524
GC count: 14
1.528
GC count: 15
1.529
GC count: 15
********* nodirs + stat
0.109
GC count: 1
0.108
GC count: 1
0.109
GC count: 1
0.107
GC count: 1
0.108
GC count: 1

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.