Created
November 3, 2008 21:58
-
-
Save lifo/21998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GC::Profiler.clear | |
GC::Profiler.enable | |
a = Array.new(100000){ 'aa' } | |
puts GC::Profiler.result | |
__END__ | |
GC 5 invokes. | |
Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms) | |
1 0.013 314280 360448 18018 0.74199999999999954881 | |
2 0.018 605580 622592 31122 0.99499999999999932943 | |
3 0.025 1080320 1097728 54873 1.95299999999999984723 | |
4 0.037 1931460 1949696 97461 2.89600000000000257216 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment