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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
| parse.configure-coreutils | 147 | 24 | 61 | 46.1 | 51.7 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
| parse.abuild | 8 | 1 | 1 | 2.6 | 8.5 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
| ex.compute-fib | 27 | 0 | 1 | 2.4 | 7.9 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
| ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.8 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 6 | 0 | 1.6 | dash | - |
| 22 | 22 | 0 | 3.1 | bash | - |
| 103 | 64 | 46 | 3.3 | zsh | - |
| 16 | 12 | 4 | 29.2 | bumpleak/osh | mut |
| 20 | 12 | 8 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 22 | 0 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 8 | 20 | 25.2 | osh-native | mut+alloc |
| 30 | 26 | 4 | 25.3 | osh-native | mut+alloc+free |
| 35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
| 35 | 27 | 8 | 18.0 | osh-native | mut+alloc+free+gc+exit |
| 42 | 31 | 11 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 46 | 38 | 8 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | 21 | 0 | 1.6 | dash | - |
| 78 | 78 | 0 | 3.1 | bash | - |
| 390 | 208 | 203 | 3.5 | zsh | - |
| 48 | 40 | 8 | 85.3 | bumpleak/osh | mut |
| 59 | 51 | 8 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
| 68 | 56 | 12 | 85.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 96 | 80 | 16 | 73.4 | osh-native | mut+alloc |
| 104 | 68 | 36 | 75.2 | osh-native | mut+alloc+free |
| 147 | 131 | 16 | 51.7 | osh-native | mut+alloc+free+gc |
| 145 | 120 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 136 | 100 | 36 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 212 | 172 | 40 | 73.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing abuild from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 2 | 0 | 2 | 1.3 | dash | - |
| 5 | 5 | 0 | 3.0 | bash | - |
| 8 | 0 | 7 | 3.3 | zsh | - |
| 6 | 6 | 0 | 11.0 | bumpleak/osh | mut |
| 7 | 3 | 3 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 3 | 3 | 11.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 8 | 4 | 4 | 10.2 | osh-native | mut+alloc |
| 8 | 4 | 4 | 9.7 | osh-native | mut+alloc+free |
| 8 | 8 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
| 8 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 11 | 11 | 0 | 11.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 7 | 4 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | - |
| 27 | 23 | 4 | 2.8 | bash | - |
| 23 | 15 | 8 | 3.3 | zsh | - |
| 18 | 18 | 0 | 31.3 | bumpleak/osh | mut |
| 24 | 24 | 0 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
| 27 | 23 | 4 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 34 | 21 | 13 | 26.2 | osh-native | mut+alloc |
| 36 | 32 | 4 | 26.6 | osh-native | mut+alloc+free |
| 27 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
| 28 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc+exit |
| 52 | 36 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 36 | 36 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 70 | 65 | 4 | 3.3 | bash | - |
| 165 | 101 | 64 | 54.2 | bumpleak/osh | mut |
| 172 | 104 | 68 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
| 183 | 127 | 56 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 205 | 105 | 101 | 47.0 | osh-native | mut+alloc |
| 207 | 139 | 68 | 48.7 | osh-native | mut+alloc+free |
| 174 | 114 | 59 | 8.7 | osh-native | mut+alloc+free+gc |
| 178 | 137 | 40 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 221 | 152 | 68 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 201 | 138 | 63 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 10 | 6 | 3 | 3.5 | dash | - |
| 19 | 13 | 7 | 4.5 | bash | - |
| 17 | 16 | 2 | 3.5 | zsh | - |
| 18 | 11 | 8 | 11.6 | bumpleak/osh | mut |
| 21 | 12 | 9 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
| 20 | 6 | 15 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 21 | 15 | 7 | 11.0 | osh-native | mut+alloc |
| 22 | 12 | 10 | 10.9 | osh-native | mut+alloc+free |
| 22 | 20 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
| 22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 24 | 20 | 5 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 24 | 24 | 1 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |