-
-
Save iogakos/5928257 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# ENV | |
# RUBY_HEAP_MIN_SLOTS=1000000 | |
# RUBY_HEAP_SLOTS_INCREMENT=1000000 | |
# RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
# RUBY_GC_MALLOC_LIMIT=1000000000 | |
# RUBY_HEAP_FREE_MIN=1000000 | |
# str_gsub() using its regular form (regex, replacement) | |
[:before_string_build, 0] | |
[:after_string_build, 26420] | |
[:before_gsub_wo_block, 26420] | |
[:after_gsub_wo_block, 46904] | |
[:before_gc_start, 46904] | |
[:after_gc_start, 46904] | |
GC 12 invokes. | |
Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms) | |
1 0.112 183440 39967640 999191 0.00000000000000000000 | |
2 0.196 183440 39967640 999191 0.00000000000000000000 | |
3 0.276 183440 39967640 999191 0.00000000000000000000 | |
4 0.348 183440 39967640 999191 0.00000000000000000000 | |
5 0.428 183440 39967640 999191 0.00000000000000000000 | |
6 0.508 183440 39967640 999191 0.00000000000000000000 | |
7 0.584 183440 39967640 999191 0.00000000000000000000 | |
8 0.664 183440 39967640 999191 0.00000000000000000000 | |
9 0.740 183440 39967640 999191 0.00000000000000000000 | |
10 0.820 183440 39967640 999191 0.00000000000000000000 | |
11 0.828 183520 26601520 665038 4.00000000000000355271 | |
# str_gsub() using its block form | |
[:before_string_build, 0] | |
[:after_string_build, 26420] | |
[:before_gsub_w_block, 26420] | |
[:after_gsub_w_block, 22924] | |
[:before_gc_start, 22924] | |
[:after_gc_start, 22924] | |
GC 43 invokes. | |
Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms) | |
1 0.116 183560 39967640 999191 0.00000000000000000000 | |
2 0.196 183560 39967640 999191 0.00000000000000000000 | |
3 0.272 183560 39967640 999191 0.00000000000000000000 | |
4 0.348 183560 39967640 999191 0.00000000000000000000 | |
5 0.428 183560 39967640 999191 0.00000000000000000000 | |
6 0.504 183560 39967640 999191 0.00000000000000000000 | |
7 0.584 183560 39967640 999191 0.00000000000000000000 | |
8 0.664 183560 39967640 999191 0.00000000000000000000 | |
9 0.736 183560 39967640 999191 0.00000000000000000000 | |
10 0.816 183560 39967640 999191 0.00000000000000000000 | |
11 0.824 183640 26601520 665038 8.00100000000003674927 | |
12 0.916 184040 26601520 665038 0.00000000000000000000 | |
13 0.980 184040 26601520 665038 4.00000000000000355271 | |
14 1.044 184040 26601520 665038 0.00000000000000000000 | |
15 1.108 184040 26601520 665038 0.00000000000000000000 | |
16 1.172 184040 26601520 665038 0.00000000000000000000 | |
17 1.236 184040 26601520 665038 0.00000000000000000000 | |
18 1.300 184040 26601520 665038 0.00000000000000000000 | |
19 1.360 184040 26601520 665038 0.00000000000000000000 | |
20 1.424 184040 26601520 665038 0.00000000000000000000 | |
21 1.488 184040 26601520 665038 0.00000000000000000000 | |
22 1.552 184040 26601520 665038 0.00000000000000000000 | |
23 1.612 184040 26601520 665038 4.00100000000014333068 | |
24 1.676 184040 26601520 665038 0.00000000000000000000 | |
25 1.736 184040 26601520 665038 0.00000000000000000000 | |
26 1.800 184040 26601520 665038 0.00000000000000000000 | |
27 1.880 184040 26601520 665038 0.00000000000000000000 | |
28 1.944 184040 26601520 665038 0.00000000000000000000 | |
29 2.004 184040 26601520 665038 0.00000000000000000000 | |
30 2.068 184040 26601520 665038 0.00000000000000000000 | |
31 2.132 184040 26601520 665038 0.00000000000000000000 | |
32 2.196 184040 26601520 665038 0.00000000000000000000 | |
33 2.260 184040 26601520 665038 0.00000000000000000000 | |
34 2.324 184040 26601520 665038 0.00000000000000000000 | |
35 2.384 184040 26601520 665038 4.00000000000000355271 | |
36 2.448 184040 26601520 665038 0.00000000000000000000 | |
37 2.512 184040 26601520 665038 0.00000000000000000000 | |
38 2.576 184040 26601520 665038 0.00000000000000000000 | |
39 2.640 184040 26601520 665038 0.00000000000000000000 | |
40 2.704 184040 26601520 665038 0.00000000000000000000 | |
41 2.768 184040 26601520 665038 0.00000000000000000000 | |
42 2.832 184040 26601520 665038 0.00000000000000000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment