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 16 9 20 21 18 1.22 1.10
bin-true no-host 632 471 805 812 647 1.27 1.02
configure.cpython no-host 13,943 13,902 13,467 13,187 12,652 0.97 0.91
configure.ocaml no-host 3,688 3,543 3,644 3,665 3,687 0.99 1.00
configure.tcc no-host 45 40 46 47 43 1.01 0.94
configure.util-linux no-host 12,447 13,074 12,219 12,272 11,841 0.98 0.95
configure.yash no-host 1,724 1,605 1,664 1,656 1,656 0.96 0.96
hello-world no-host 1 1 3 3 1 2.33 0.98

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,402 1,201 3,269 3,416 2,792 1.36 1.16
bin-true no-host 101,467 49,430 133,572 137,579 111,037 1.32 1.09
configure.cpython no-host 1,625,623 1,643,514 1,593,528 1,609,236 1,523,495 0.98 0.94
configure.ocaml no-host 298,612 280,610 306,445 306,657 300,340 1.03 1.01
configure.tcc no-host 5,256 4,222 5,566 5,627 5,130 1.06 0.98
configure.util-linux no-host 1,535,914 1,703,135 1,502,966 1,502,566 1,457,590 0.98 0.95
configure.yash no-host 173,516 159,618 177,046 177,030 173,113 1.02 1.00
hello-world no-host 152 84 389 398 180 2.56 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.8 3.8 9.4 10.1 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.8 9.3 5.2 2.68 1.60
configure.cpython no-host 34.4 34.5 34.6 34.6 34.4 1.01 1.00
configure.ocaml no-host 28.8 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.0 26.1 26.0 26.3 26.3 1.00 1.01
configure.util-linux no-host 39.5 39.6 39.7 39.7 39.6 1.01 1.00
configure.yash no-host 33.4 33.4 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.3 1.6 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 805 1 2 3.5 8.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,467 1 65 14.8 34.6 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,219 3 62 21.6 39.7 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,644 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.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,664 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 812 1 2 3.5 9.3 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,187 1 63 14.9 34.6 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,272 3 62 21.6 39.7 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,665 1 2 2.8 28.7 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.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,656 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 16 13 3 4.8 bash
15 no-host abuild-print-help 9 3 6 3.8 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 632 318 347 3.3 bash
9 no-host bin-true 471 279 187 1.6 dash
17 no-host bin-true 805 301 520 8.8 osh-native
25 no-host bin-true 812 313 515 9.3 osh-nosouffle
33 no-host bin-true 647 321 341 5.2 osh-static
2 no-host configure.cpython 13,943 7,561 6,726 34.4 bash
10 no-host configure.cpython 13,902 7,605 6,672 34.5 dash
18 no-host configure.cpython 13,467 7,107 6,615 34.6 osh-native
26 no-host configure.cpython 13,187 6,977 6,489 34.6 osh-nosouffle
34 no-host configure.cpython 12,652 7,016 5,867 34.4 osh-static
4 no-host configure.ocaml 3,688 1,509 1,208 28.8 bash
12 no-host configure.ocaml 3,543 1,399 1,167 28.6 dash
20 no-host configure.ocaml 3,644 1,441 1,240 28.7 osh-native
28 no-host configure.ocaml 3,665 1,460 1,245 28.7 osh-nosouffle
36 no-host configure.ocaml 3,687 1,478 1,236 28.7 osh-static
5 no-host configure.tcc 45 24 22 26.0 bash
13 no-host configure.tcc 40 23 18 26.1 dash
21 no-host configure.tcc 46 24 23 26.0 osh-native
29 no-host configure.tcc 47 20 28 26.3 osh-nosouffle
37 no-host configure.tcc 43 24 19 26.3 osh-static
3 no-host configure.util-linux 12,447 6,442 6,438 39.5 bash
11 no-host configure.util-linux 13,074 6,421 7,132 39.6 dash
19 no-host configure.util-linux 12,219 5,995 6,440 39.7 osh-native
27 no-host configure.util-linux 12,272 6,090 6,398 39.7 osh-nosouffle
35 no-host configure.util-linux 11,841 6,114 5,933 39.6 osh-static
6 no-host configure.yash 1,724 983 736 33.4 bash
14 no-host configure.yash 1,605 931 675 33.4 dash
22 no-host configure.yash 1,664 919 747 33.4 osh-native
30 no-host configure.yash 1,656 917 742 33.3 osh-nosouffle
38 no-host configure.yash 1,656 937 721 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 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,402 0 0 0 8 0 40 0 bash
15 no-host abuild-print-help 1,201 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,269 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,416 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,792 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,467 0 0 0 8 0 1,998 41 bash
9 no-host bin-true 49,430 0 0 0 8 0 2,992 48 dash
17 no-host bin-true 133,572 0 0 0 16 0 1,997 71 osh-native
25 no-host bin-true 137,579 0 0 0 16 0 1,997 76 osh-nosouffle
33 no-host bin-true 111,037 0 0 0 8 0 1,998 61 osh-static
2 no-host configure.cpython 1,625,623 0 0 0 25,272 0 14,080 1,049 bash
10 no-host configure.cpython 1,643,514 0 0 0 25,280 0 14,129 1,037 dash
18 no-host configure.cpython 1,593,528 0 0 0 25,280 0 11,306 864 osh-native
26 no-host configure.cpython 1,609,236 0 0 0 25,280 0 11,310 848 osh-nosouffle
34 no-host configure.cpython 1,523,495 0 0 0 25,272 0 11,314 864 osh-static
4 no-host configure.ocaml 298,612 0 0 0 4,432 0 2,021 204 bash
12 no-host configure.ocaml 280,610 0 0 0 4,432 0 2,111 195 dash
20 no-host configure.ocaml 306,445 0 0 8 4,440 0 2,002 208 osh-native
28 no-host configure.ocaml 306,657 0 0 0 4,440 0 1,999 195 osh-nosouffle
36 no-host configure.ocaml 300,340 0 0 0 4,432 0 2,004 208 osh-static
5 no-host configure.tcc 5,256 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,566 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,627 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,130 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,535,914 0 0 0 35,944 0 18,917 999 bash
11 no-host configure.util-linux 1,703,135 1 0 0 35,936 0 17,092 1,228 dash
19 no-host configure.util-linux 1,502,966 0 0 0 35,952 0 16,231 931 osh-native
27 no-host configure.util-linux 1,502,566 1 0 0 35,944 0 16,162 927 osh-nosouffle
35 no-host configure.util-linux 1,457,590 0 0 0 35,944 0 16,132 941 osh-static
6 no-host configure.yash 173,516 0 0 0 3,616 0 879 90 bash
14 no-host configure.yash 159,618 0 0 0 3,624 0 1,002 93 dash
22 no-host configure.yash 177,046 0 0 0 3,624 0 856 95 osh-native
30 no-host configure.yash 177,030 0 0 0 3,624 0 858 96 osh-nosouffle
38 no-host configure.yash 173,113 0 0 0 3,616 0 858 103 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 389 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-dd07f6df
osh-nosouffle osh-2f59a45c
osh-static osh-static-0217835b
host label host id
no-host no-host-9c670df1