Memory Management Overhead

Source code: oil/benchmarks/gc.sh

GC Stats

task elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num gc points num gc done gc threshold num growths max survived shell label
parse.configure-cpython 35 3 9 12.0 17.8 476,762 1,282 6 406,610 5 203,305 osh-native
parse.configure-cpython 33 4 10 12.0 17.8 476,762 1,282 6 406,326 5 203,163 osh-native-souffle
parse.configure-coreutils 145 22 58 44.5 49.8 1,653,350 4,764 12 1,025,532 6 764,309 osh-native
parse.configure-coreutils 136 23 61 44.5 49.4 1,653,349 4,764 12 1,025,522 6 764,304 osh-native-souffle
parse.abuild 9 1 1 2.6 8.8 101,953 180 2 75,036 1 37,518 osh-native
parse.abuild 8 1 1 2.6 8.1 101,953 180 2 75,026 1 37,513 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,717 22,608 12 50,000 0 2,922 osh-native
ex.compute-fib 21 0 2 2.2 7.6 579,717 22,608 12 50,000 0 2,917 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 11.1 8.8 1,021,032 15,258 22 50,000 0 3,911 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,031 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,336 277 3 85,254 1 42,627 osh-native
ex.abuild-print-help 20 1 2 2.8 8.5 116,336 277 3 85,244 1 42,622 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.6 dash -
23 21 2 3.0 bash -
100 55 52 3.4 zsh -
16 11 5 29.3 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 24.9 osh-native mut+alloc
31 25 6 25.6 osh-native mut+alloc+free
35 32 3 17.8 osh-native mut+alloc+free+gc
36 29 7 18.0 osh-native mut+alloc+free+gc+exit
41 29 13 32.6 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 10 25.0 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
33 23 9 17.8 osh-native-souffle mut+alloc+free+gc
34 27 7 17.8 osh-native-souffle mut+alloc+free+gc+exit

parse.configure-coreutils

Parsing the autoconf-generated configure script from GNU coreutils.

Note that unlike other shells, osh -n retains all nodes on purpose. (See the parser benchmark).

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
21 20 1 1.4 dash -
78 78 0 3.3 bash -
358 198 180 3.4 zsh -
49 42 7 84.3 bumpleak/osh mut
60 49 11 85.5 _bin/cxx-opt+bumproot/osh mut
71 60 11 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 60 36 73.4 osh-native mut+alloc
105 68 37 75.2 osh-native mut+alloc+free
145 125 20 49.8 osh-native mut+alloc+free+gc
148 128 20 50.4 osh-native mut+alloc+free+gc+exit
140 84 56 98.9 _bin/cxx-opt+nopool/osh mut+alloc
205 168 37 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 36 73.0 osh-native-souffle mut+alloc
96 69 27 75.0 osh-native-souffle mut+alloc+free
136 119 17 49.4 osh-native-souffle mut+alloc+free+gc
144 120 24 50.1 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 1 1 1.4 dash -
5 3 2 3.0 bash -
7 4 4 3.3 zsh -
6 4 2 10.3 bumpleak/osh mut
7 4 2 11.0 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.1 osh-native mut+alloc
9 6 3 10.4 osh-native mut+alloc+free
9 7 2 8.8 osh-native mut+alloc+free+gc
9 8 1 8.4 osh-native mut+alloc+free+gc+exit
11 8 3 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 3 5 9.7 osh-native-souffle mut+alloc+free
8 3 5 8.1 osh-native-souffle mut+alloc+free+gc
8 4 5 8.3 osh-native-souffle mut+alloc+free+gc+exit

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
10 10 0 1.4 dash -
28 27 1 3.0 bash -
23 18 5 3.1 zsh -
18 16 2 31.3 bumpleak/osh mut
26 23 3 32.6 _bin/cxx-opt+bumproot/osh mut
28 22 6 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.3 osh-native mut+alloc
38 26 11 26.6 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 26 2 8.1 osh-native mut+alloc+free+gc+exit
53 38 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 32 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 19 10 26.0 osh-native-souffle mut+alloc
31 25 5 26.1 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 18 3 7.5 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
72 68 4 3.1 bash -
166 110 56 57.3 bumpleak/osh mut
181 126 55 56.3 _bin/cxx-opt+bumproot/osh mut
196 131 64 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 147 65 49.0 osh-native mut+alloc
218 144 74 50.7 osh-native mut+alloc+free
181 130 51 8.8 osh-native mut+alloc+free+gc
182 129 53 8.9 osh-native mut+alloc+free+gc+exit
237 155 81 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 153 58 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 126 79 48.6 osh-native-souffle mut+alloc
212 137 75 50.4 osh-native-souffle mut+alloc+free
175 131 44 8.4 osh-native-souffle mut+alloc+free+gc
175 126 49 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
10 2 8 3.5 dash -
19 9 10 4.3 bash -
17 6 11 3.4 zsh -
19 5 15 12.9 bumpleak/osh mut
20 10 10 13.2 _bin/cxx-opt+bumproot/osh mut
21 9 12 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.1 osh-native mut+alloc
21 9 13 11.0 osh-native mut+alloc+free
22 9 13 8.9 osh-native mut+alloc+free+gc
22 14 9 9.2 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 13 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 12 8 10.6 osh-native-souffle mut+alloc
20 7 14 10.7 osh-native-souffle mut+alloc+free
20 12 9 8.5 osh-native-souffle mut+alloc+free+gc
21 8 14 8.7 osh-native-souffle mut+alloc+free+gc+exit