Skip to content

Instantly share code, notes, and snippets.

@brixen
Created September 18, 2009 16:14
Show Gist options
  • Select an option

  • Save brixen/189141 to your computer and use it in GitHub Desktop.

Select an option

Save brixen/189141 to your computer and use it in GitHub Desktop.
gauss:rubinius brian$ bin/rbx -Xrbx.gc_stats -r compiler-ng -e 'Rubinius::CompilerNG.compile_file "lib/ruby_parser.rb"'
Garbage collector stats:
Young (6) total max min average
---------------------------------------------------------------------------------
Collections 23
times 291.78m 21.85m 5.35m 12.69m
objects promoted 145,002 45,472 209 6,304.43
objects copied 1,100,898 74,597 9,127 47,865.13
bytes copied 43.6M 3.0M 470.9K 1.9M
Lifetimes
0 643,027
1 1,184
2 1,023
3 1,579
4 12,379
5 508
6 56
% of GC time (61.4%)
--
Allocations 884,574
times 32.89m 241.71u 30n 37n
bytes allocated 27.6M
% of GC time (6.9%)
Mature total max min average
---------------------------------------------------------------------------------
Collections 5
times 140.14m 38.55m 17.08m 28.03m
% of GC time (29.5%)
--
Allocations 153,490
times 10.54m 576.57u 37n 68n
chunks added 7
large objects 1,653
% of GC time (2.2%)
Total time spent in GC: 475.34m (39.5%)
gauss:rubinius brian$ bin/rbx -Xrbx.gc_stats -r compiler-ng -e 'Rubinius::CompilerNG.compile_file "lib/ruby_parser.rb"'
Garbage collector stats:
Young (6) total max min average
---------------------------------------------------------------------------------
Collections 22
times 254.13m 21.21m 5.27m 11.55m
objects promoted 121,091 45,472 209 5,504.14
objects copied 976,203 74,629 9,110 44,372.86
bytes copied 40.6M 3.0M 471.0K 1.8M
Lifetimes
0 696,164
1 1,268
2 1,039
3 1,624
4 12,144
5 81
6 59
% of GC time (64.7%)
--
Allocations 874,380
times 31.83m 31.42u 30n 36n
bytes allocated 26.8M
% of GC time (8.1%)
Mature total max min average
---------------------------------------------------------------------------------
Collections 4
times 98.28m 34.74m 16.58m 24.57m
% of GC time (25.0%)
--
Allocations 129,575
times 8.61m 173.51u 37n 66n
chunks added 6
large objects 1,656
% of GC time (2.2%)
Total time spent in GC: 392.86m (37.9%)
gauss:rubinius brian$ bin/rbx -Xrbx.gc_stats -e 'Compiler.compile_file "lib/ruby_parser.rb"'
Garbage collector stats:
Young (6) total max min average
---------------------------------------------------------------------------------
Collections 25
times 328.48m 21.59m 9.45m 13.14m
objects promoted 168,061 45,469 58 6,722.44
objects copied 1,296,484 74,905 11,144 51,859.36
bytes copied 47.8M 3.0M 519.1K 1.9M
Lifetimes
0 633,667
1 892
2 5,258
3 4,084
4 3,182
5 5,789
6 5,996
% of GC time (65.2%)
--
Allocations 986,130
times 37.73m 670.85u 26n 38n
bytes allocated 32.6M
% of GC time (7.5%)
Mature total max min average
---------------------------------------------------------------------------------
Collections 4
times 122.79m 37.76m 25.35m 30.70m
% of GC time (24.4%)
--
Allocations 251,805
times 14.55m 266.71u 37n 57n
chunks added 8
large objects 1,256
% of GC time (2.9%)
Total time spent in GC: 503.55m (10.9%)
direct encode vs old:
15% fewer young bytes copied (40.6M/47.8M)
11% fewer young object alloc'd (874,380/986,130)
48% fewer mature objects alloc'd (129,575/251,805)
131% more large objects alloc'd (1,656/1,256)
direct encode vs 2-step:
7% fewer young bytes (40.6M/43.6M)
1% fewer young objects (874,380/884,574)
15.5% fewer mature objects (129,575/153,490)
~same large objects (1,656/1,653)
2-step encode vs old:
8.7% fewer young bytes (43.6M/47.8M)
10% fewer young objects (884,574/986,130)
39% fewer mature objects (153,490/251,805)
131% more large objects (1,653/1,256)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment