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 34 3 9 12.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 148 26 63 44.5 49.5 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 144 27 66 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 30 0 1 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.8 8.8 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 177 0 4 10.8 8.3 1,006,007 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,318 277 3 85,124 1 42,562 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.6 dash -
24 24 0 3.0 bash -
106 69 45 3.4 zsh -
16 12 4 29.0 bumpleak/osh mut
20 16 4 29.5 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 15 15 25.2 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
34 30 4 18.0 osh-native mut+alloc+free+gc
36 35 0 18.1 osh-native mut+alloc+free+gc+exit
43 20 24 32.6 _bin/cxx-opt+nopool/osh mut+alloc
48 43 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.6 osh-native-souffle mut+alloc
29 8 20 25.2 osh-native-souffle mut+alloc+free
33 18 14 17.6 osh-native-souffle mut+alloc+free+gc
33 33 0 17.7 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
22 18 4 1.6 dash -
78 74 4 3.0 bash -
381 224 179 3.7 zsh -
49 44 4 84.6 bumpleak/osh mut
61 48 12 85.5 _bin/cxx-opt+bumproot/osh mut
71 63 8 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 53 45 73.5 osh-native mut+alloc
106 81 24 75.3 osh-native mut+alloc+free
148 136 12 49.5 osh-native mut+alloc+free+gc
152 132 20 50.3 osh-native mut+alloc+free+gc+exit
140 100 40 98.2 _bin/cxx-opt+nopool/osh mut+alloc
213 174 39 67.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 64 24 73.0 osh-native-souffle mut+alloc
97 52 44 75.0 osh-native-souffle mut+alloc+free
144 120 24 49.4 osh-native-souffle mut+alloc+free+gc
151 115 36 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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.1 zsh -
6 6 0 11.1 bumpleak/osh mut
6 6 0 10.8 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 4 4 7.9 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
11 10 0 1.6 dash -
29 29 0 3.0 bash -
24 16 8 3.3 zsh -
19 15 4 31.9 bumpleak/osh mut
26 22 4 33.1 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.5 osh-native mut+alloc
38 26 11 26.6 osh-native mut+alloc+free
30 30 0 8.0 osh-native mut+alloc+free+gc
27 24 4 7.9 osh-native mut+alloc+free+gc+exit
55 38 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 8 21 25.8 osh-native-souffle mut+alloc
31 22 9 26.1 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
21 17 4 7.6 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
73 69 4 3.0 bash -
169 113 56 56.4 bumpleak/osh mut
183 119 64 56.0 _bin/cxx-opt+bumproot/osh mut
197 153 44 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 149 64 48.0 osh-native mut+alloc
223 119 103 50.0 osh-native mut+alloc+free
183 131 52 8.8 osh-native mut+alloc+free+gc
183 135 48 8.8 osh-native mut+alloc+free+gc+exit
239 138 101 63.7 _bin/cxx-opt+nopool/osh mut+alloc
212 179 32 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 109 96 47.6 osh-native-souffle mut+alloc
213 108 104 49.5 osh-native-souffle mut+alloc+free
177 137 40 8.3 osh-native-souffle mut+alloc+free+gc
177 114 63 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 9 1 3.5 dash -
20 6 14 4.3 bash -
17 13 5 3.5 zsh -
20 11 9 12.6 bumpleak/osh mut
19 14 6 11.9 _bin/cxx-opt+bumproot/osh mut
20 14 7 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.1 osh-native mut+alloc
22 13 10 11.0 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 14 10 9.2 osh-native mut+alloc+free+gc+exit
25 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 22 4 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 7 10.5 osh-native-souffle mut+alloc
21 16 6 10.6 osh-native-souffle mut+alloc+free
22 11 11 8.7 osh-native-souffle mut+alloc+free+gc
22 20 3 8.5 osh-native-souffle mut+alloc+free+gc+exit