OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 20 9 20 21 18 1.02 0.90
bin-true no-host 615 440 800 808 648 1.30 1.06
configure.cpython no-host 13,742 13,857 13,713 13,542 12,900 1.00 0.94
configure.ocaml no-host 3,727 3,635 3,703 3,679 3,620 0.99 0.97
configure.tcc no-host 46 42 46 47 43 1.01 0.93
configure.util-linux no-host 12,742 13,327 12,589 12,790 11,992 0.99 0.94
configure.yash no-host 1,721 1,663 1,695 1,695 1,640 0.98 0.95
hello-world no-host 1 1 3 3 1 2.40 1.02

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,366 1,194 3,305 3,384 2,796 1.40 1.18
bin-true no-host 102,472 49,451 130,588 136,528 110,009 1.27 1.07
configure.cpython no-host 1,626,500 1,629,728 1,585,593 1,604,456 1,522,171 0.97 0.94
configure.ocaml no-host 299,195 280,768 305,295 306,041 300,187 1.02 1.00
configure.tcc no-host 5,221 4,209 5,598 5,648 5,127 1.07 0.98
configure.util-linux no-host 1,544,328 1,696,074 1,499,336 1,507,987 1,456,489 0.97 0.94
configure.yash no-host 173,301 159,534 176,545 177,342 172,963 1.02 1.00
hello-world no-host 153 83 387 396 181 2.53 1.18

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.7 3.9 9.4 10.1 6.4 2.00 1.36
bin-true no-host 3.3 1.4 8.7 8.9 5.4 2.64 1.64
configure.cpython no-host 34.7 34.4 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.8 1.00 1.00
configure.tcc no-host 26.0 26.4 26.3 26.1 26.2 1.01 1.01
configure.util-linux no-host 39.6 39.6 39.5 39.5 39.7 1.00 1.00
configure.yash no-host 33.2 33.4 33.4 33.3 33.1 1.00 1.00
hello-world no-host 3.3 1.4 6.4 6.9 3.4 1.96 1.04

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.3 6.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 800 1 2 3.5 8.7 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,713 1 67 14.8 34.5 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,589 3 66 21.6 39.5 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,703 1 2 2.8 28.7 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,695 1 2 2.7 33.4 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 808 1 2 3.5 8.9 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,542 1 68 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,790 6 70 21.6 39.5 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,679 1 2 2.8 28.6 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,695 1 2 2.7 33.3 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,251 65,788 41,998 4,969 54,631 57,651 277 3 83,996 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 20 9 12 4.7 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 7 14 9.4 osh-native
31 no-host abuild-print-help 21 10 12 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.4 osh-static
1 no-host bin-true 615 298 352 3.3 bash
9 no-host bin-true 440 282 163 1.4 dash
17 no-host bin-true 800 302 514 8.7 osh-native
25 no-host bin-true 808 310 514 8.9 osh-nosouffle
33 no-host bin-true 648 308 357 5.4 osh-static
2 no-host configure.cpython 13,742 7,513 6,613 34.7 bash
10 no-host configure.cpython 13,857 7,647 6,603 34.4 dash
18 no-host configure.cpython 13,713 7,235 6,745 34.5 osh-native
26 no-host configure.cpython 13,542 7,210 6,611 34.5 osh-nosouffle
34 no-host configure.cpython 12,900 7,098 6,033 34.5 osh-static
4 no-host configure.ocaml 3,727 1,518 1,249 28.7 bash
12 no-host configure.ocaml 3,635 1,457 1,202 28.7 dash
20 no-host configure.ocaml 3,703 1,480 1,263 28.7 osh-native
28 no-host configure.ocaml 3,679 1,495 1,224 28.6 osh-nosouffle
36 no-host configure.ocaml 3,620 1,462 1,188 28.8 osh-static
5 no-host configure.tcc 46 25 21 26.0 bash
13 no-host configure.tcc 42 20 22 26.4 dash
21 no-host configure.tcc 46 24 23 26.3 osh-native
29 no-host configure.tcc 47 19 28 26.1 osh-nosouffle
37 no-host configure.tcc 43 29 14 26.2 osh-static
3 no-host configure.util-linux 12,742 6,654 6,549 39.6 bash
11 no-host configure.util-linux 13,327 6,451 7,355 39.6 dash
19 no-host configure.util-linux 12,589 6,221 6,589 39.5 osh-native
27 no-host configure.util-linux 12,790 6,099 6,668 39.5 osh-nosouffle
35 no-host configure.util-linux 11,992 6,173 6,035 39.7 osh-static
6 no-host configure.yash 1,721 960 769 33.2 bash
14 no-host configure.yash 1,663 963 702 33.4 dash
22 no-host configure.yash 1,695 961 736 33.4 osh-native
30 no-host configure.yash 1,695 913 778 33.3 osh-nosouffle
38 no-host configure.yash 1,640 931 711 33.1 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 3.4 osh-static

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,366 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,194 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,305 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,384 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,796 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,472 0 0 0 8 0 1,999 60 bash
9 no-host bin-true 49,451 0 0 0 8 0 2,999 60 dash
17 no-host bin-true 130,588 0 0 0 16 0 1,999 86 osh-native
25 no-host bin-true 136,528 0 0 0 16 0 2,000 66 osh-nosouffle
33 no-host bin-true 110,009 0 0 0 8 0 2,001 63 osh-static
2 no-host configure.cpython 1,626,500 0 0 0 25,272 0 14,061 1,016 bash
10 no-host configure.cpython 1,629,728 0 0 0 25,272 0 14,146 1,036 dash
18 no-host configure.cpython 1,585,593 0 0 0 25,280 0 11,298 846 osh-native
26 no-host configure.cpython 1,604,456 0 0 0 25,280 0 11,302 855 osh-nosouffle
34 no-host configure.cpython 1,522,171 0 0 0 25,272 0 11,317 817 osh-static
4 no-host configure.ocaml 299,195 0 0 0 4,432 0 2,017 191 bash
12 no-host configure.ocaml 280,768 0 0 0 4,432 0 2,109 195 dash
20 no-host configure.ocaml 305,295 0 0 0 4,440 0 2,000 221 osh-native
28 no-host configure.ocaml 306,041 0 0 0 4,440 0 2,003 210 osh-nosouffle
36 no-host configure.ocaml 300,187 0 0 0 4,432 0 2,003 239 osh-static
5 no-host configure.tcc 5,221 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,209 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 5,598 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,648 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,127 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,544,328 0 0 232 35,944 0 19,004 1,043 bash
11 no-host configure.util-linux 1,696,074 2 0 0 35,936 0 17,065 1,202 dash
19 no-host configure.util-linux 1,499,336 0 0 0 35,952 0 16,228 1,095 osh-native
27 no-host configure.util-linux 1,507,987 0 0 0 35,944 0 16,213 903 osh-nosouffle
35 no-host configure.util-linux 1,456,489 1 0 0 35,936 0 16,158 1,035 osh-static
6 no-host configure.yash 173,301 0 0 0 3,616 0 877 106 bash
14 no-host configure.yash 159,534 0 0 0 3,616 0 1,001 94 dash
22 no-host configure.yash 176,545 0 0 0 3,632 0 858 106 osh-native
30 no-host configure.yash 177,342 0 0 0 3,624 0 859 103 osh-nosouffle
38 no-host configure.yash 172,963 0 0 0 3,616 0 860 114 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 387 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-de05ba64
osh-nosouffle osh-fdc198ad
osh-static osh-static-1a676f68
host label host id
no-host no-host-9c670df1