Source code: oil/benchmarks/gc.sh
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 | 36 | 4 | 10 | 12.0 | 18.0 | 476,752 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,752 | 1,282 | 6 | 406,202 | 5 | 203,101 | osh-native-souffle |
parse.configure-coreutils | 145 | 22 | 60 | 44.5 | 49.8 | 1,653,340 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 132 | 22 | 57 | 44.5 | 49.4 | 1,653,339 | 4,764 | 12 | 1,025,398 | 6 | 764,242 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,943 | 180 | 2 | 75,032 | 1 | 37,516 | osh-native |
parse.abuild | 8 | 1 | 2 | 2.4 | 7.9 | 101,943 | 180 | 3 | 87,094 | 1 | 43,547 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 8.1 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.1 | 7.7 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,859 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.8 | 8.9 | 1,006,009 | 15,258 | 21 | 50,000 | 0 | 3,920 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 3 | 10.8 | 8.4 | 1,006,008 | 15,258 | 21 | 50,000 | 0 | 3,843 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,319 | 277 | 3 | 85,250 | 1 | 42,625 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,319 | 277 | 3 | 85,126 | 1 | 42,563 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 15 | 8 | 3.1 | bash | - |
104 | 60 | 51 | 3.4 | zsh | - |
16 | 12 | 4 | 28.5 | bumpleak/osh | mut |
19 | 14 | 5 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.3 | osh-native | mut+alloc |
31 | 12 | 19 | 25.6 | osh-native | mut+alloc+free |
36 | 28 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 26 | 0 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 16 | 16 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
32 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | 22 | 0 | 1.4 | dash | - |
77 | 77 | 0 | 3.1 | bash | - |
375 | 178 | 218 | 3.7 | zsh | - |
49 | 41 | 8 | 85.7 | bumpleak/osh | mut |
58 | 46 | 12 | 85.9 | _bin/cxx-opt+bumproot/osh | mut |
75 | 54 | 21 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.4 | osh-native | mut+alloc |
104 | 64 | 40 | 75.2 | osh-native | mut+alloc+free |
145 | 122 | 24 | 49.8 | osh-native | mut+alloc+free+gc |
152 | 128 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 75 | 63 | 97.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
201 | 172 | 28 | 67.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 65 | 20 | 73.1 | osh-native-souffle | mut+alloc |
95 | 35 | 59 | 74.8 | osh-native-souffle | mut+alloc+free |
132 | 100 | 32 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
136 | 108 | 28 | 50.2 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing abuild
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
2 | 2 | 0 | 1.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 12.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 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 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 7 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.4 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.6 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc+exit |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
11 | 7 | 4 | 1.6 | dash | - |
28 | 24 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 19 | 0 | 31.6 | bumpleak/osh | mut |
25 | 21 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 21 | 7 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
37 | 16 | 20 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 45 | 8 | 35.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 32 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 17 | 13 | 26.1 | osh-native-souffle | mut+alloc |
30 | 17 | 13 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 18 | 4 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | - |
168 | 108 | 60 | 56.1 | bumpleak/osh | mut |
183 | 111 | 71 | 57.2 | _bin/cxx-opt+bumproot/osh | mut |
197 | 110 | 87 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 133 | 80 | 48.0 | osh-native | mut+alloc |
220 | 149 | 71 | 50.0 | osh-native | mut+alloc+free |
183 | 123 | 60 | 8.9 | osh-native | mut+alloc+free+gc |
183 | 143 | 40 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 162 | 75 | 65.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 172 | 40 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 130 | 75 | 47.8 | osh-native-souffle | mut+alloc |
212 | 140 | 72 | 49.6 | osh-native-souffle | mut+alloc+free |
177 | 100 | 76 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
177 | 116 | 60 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
9 | 5 | 5 | 3.5 | dash | - |
20 | 15 | 5 | 4.3 | bash | - |
17 | 17 | 1 | 3.4 | zsh | - |
18 | 13 | 6 | 11.8 | bumpleak/osh | mut |
20 | 13 | 7 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
19 | 17 | 3 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
27 | 19 | 8 | 11.0 | osh-native | mut+alloc |
22 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 5 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 15 | 5 | 10.7 | osh-native-souffle | mut+alloc |
22 | 11 | 11 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
25 | 13 | 13 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |