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 22 23 19 1.43 1.22
bin-true no-host 622 445 835 847 673 1.34 1.08
configure.cpython no-host 13,929 14,051 13,779 13,886 12,964 0.99 0.93
configure.ocaml no-host 3,692 3,637 3,757 3,713 3,657 1.02 0.99
configure.tcc no-host 46 42 49 48 49 1.07 1.06
configure.util-linux no-host 12,608 13,417 12,741 12,662 12,130 1.01 0.96
configure.yash no-host 1,739 1,672 1,745 1,702 1,684 1.00 0.97
hello-world no-host 1 1 3 3 1 2.63 1.20

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,412 1,180 3,448 3,577 2,952 1.43 1.22
bin-true no-host 100,475 49,435 135,523 138,098 112,183 1.35 1.12
configure.cpython no-host 1,630,738 1,638,457 1,584,103 1,602,886 1,520,276 0.97 0.93
configure.ocaml no-host 299,032 280,932 305,998 306,090 300,927 1.02 1.01
configure.tcc no-host 5,217 4,222 5,704 5,795 5,258 1.09 1.01
configure.util-linux no-host 1,537,988 1,696,106 1,499,813 1,521,874 1,462,887 0.98 0.95
configure.yash no-host 173,415 159,477 177,025 177,224 172,832 1.02 1.00
hello-world no-host 150 82 521 526 311 3.47 2.07

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.9 10.0 10.5 6.9 2.05 1.43
bin-true no-host 3.3 1.7 9.0 9.8 5.9 2.76 1.80
configure.cpython no-host 34.7 34.7 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.5 28.6 1.00 1.00
configure.tcc no-host 26.2 26.3 26.1 26.1 26.3 1.00 1.00
configure.util-linux no-host 39.5 39.7 39.7 39.9 39.7 1.01 1.01
configure.yash no-host 33.3 33.4 33.4 33.4 33.1 1.00 1.00
hello-world no-host 3.1 1.4 7.1 7.5 3.9 2.25 1.25

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.8 7.1 3,896 3,896 0 720 1,912 1,264 2 0 50,000 0
bin-true no-host 835 1 2 4.1 9.0 151,881 10,750 2,964 14,779 72,386 64,716 3,008 3 50,000 0
configure.cpython no-host 13,779 1 70 15.5 34.5 1,750,743 35,378 28,935 93,076 869,702 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,741 3 69 22.4 39.7 2,705,279 37,450 66,323 119,745 1,291,796 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,757 1 2 3.3 28.7 149,681 12,642 6,557 9,211 70,286 70,184 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.9 26.1 30,530 30,530 0 1,678 14,463 14,389 271 0 50,000 0
configure.yash no-host 1,745 1 2 3.2 33.4 143,443 11,455 6,611 7,164 70,499 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.7 10.0 117,212 65,784 41,994 4,974 54,587 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.8 7.5 3,895 3,895 0 719 1,912 1,264 2 0 50,000 0
bin-true no-host 847 1 2 4.1 9.8 151,881 10,754 2,968 14,779 72,386 64,716 3,008 3 50,000 0
configure.cpython no-host 13,886 2 70 15.5 34.5 1,750,742 35,383 28,940 93,075 869,702 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,662 3 66 22.4 39.9 2,705,279 37,456 66,329 119,745 1,291,796 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,713 1 2 3.3 28.5 149,681 12,647 6,562 9,211 70,286 70,184 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.9 26.1 30,530 30,530 0 1,678 14,463 14,389 271 0 50,000 0
configure.yash no-host 1,702 1 2 3.2 33.4 143,443 11,459 6,615 7,164 70,499 65,780 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 3.7 10.5 117,212 65,788 41,998 4,974 54,587 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 8 8 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 22 11 12 10.0 osh-native
31 no-host abuild-print-help 23 14 9 10.5 osh-nosouffle
39 no-host abuild-print-help 19 11 9 6.9 osh-static
1 no-host bin-true 622 313 348 3.3 bash
9 no-host bin-true 445 277 173 1.7 dash
17 no-host bin-true 835 307 543 9.0 osh-native
25 no-host bin-true 847 297 567 9.8 osh-nosouffle
33 no-host bin-true 673 325 367 5.9 osh-static
2 no-host configure.cpython 13,929 7,663 6,660 34.7 bash
10 no-host configure.cpython 14,051 7,692 6,767 34.7 dash
18 no-host configure.cpython 13,779 7,289 6,782 34.5 osh-native
26 no-host configure.cpython 13,886 7,289 6,896 34.5 osh-nosouffle
34 no-host configure.cpython 12,964 7,073 6,133 34.5 osh-static
4 no-host configure.ocaml 3,692 1,500 1,232 28.7 bash
12 no-host configure.ocaml 3,637 1,470 1,191 28.7 dash
20 no-host configure.ocaml 3,757 1,498 1,301 28.7 osh-native
28 no-host configure.ocaml 3,713 1,490 1,266 28.5 osh-nosouffle
36 no-host configure.ocaml 3,657 1,452 1,238 28.6 osh-static
5 no-host configure.tcc 46 27 20 26.2 bash
13 no-host configure.tcc 42 25 17 26.3 dash
21 no-host configure.tcc 49 27 23 26.1 osh-native
29 no-host configure.tcc 48 22 27 26.1 osh-nosouffle
37 no-host configure.tcc 49 24 25 26.3 osh-static
3 no-host configure.util-linux 12,608 6,503 6,579 39.5 bash
11 no-host configure.util-linux 13,417 6,584 7,333 39.7 dash
19 no-host configure.util-linux 12,741 6,292 6,673 39.7 osh-native
27 no-host configure.util-linux 12,662 6,154 6,734 39.9 osh-nosouffle
35 no-host configure.util-linux 12,130 6,203 6,144 39.7 osh-static
6 no-host configure.yash 1,739 972 775 33.3 bash
14 no-host configure.yash 1,672 932 742 33.4 dash
22 no-host configure.yash 1,745 989 759 33.4 osh-native
30 no-host configure.yash 1,702 952 753 33.4 osh-nosouffle
38 no-host configure.yash 1,684 917 770 33.1 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 2 1 7.1 osh-native
24 no-host hello-world 3 2 1 7.5 osh-nosouffle
32 no-host hello-world 1 0 1 3.9 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,412 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,180 0 0 0 8 0 40 2 dash
23 no-host abuild-print-help 3,448 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,577 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,952 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,475 0 0 0 8 0 1,996 58 bash
9 no-host bin-true 49,435 0 0 0 8 0 2,991 56 dash
17 no-host bin-true 135,523 0 0 0 16 0 1,995 79 osh-native
25 no-host bin-true 138,098 0 0 0 16 0 1,998 78 osh-nosouffle
33 no-host bin-true 112,183 0 0 0 8 0 1,998 67 osh-static
2 no-host configure.cpython 1,630,738 0 0 0 25,272 0 14,065 1,016 bash
10 no-host configure.cpython 1,638,457 0 0 0 25,272 0 14,117 1,077 dash
18 no-host configure.cpython 1,584,103 0 0 0 25,280 0 11,313 841 osh-native
26 no-host configure.cpython 1,602,886 0 0 0 25,280 0 11,319 912 osh-nosouffle
34 no-host configure.cpython 1,520,276 0 0 0 25,272 0 11,309 868 osh-static
4 no-host configure.ocaml 299,032 0 0 0 4,432 0 2,018 195 bash
12 no-host configure.ocaml 280,932 0 0 0 4,432 0 2,101 212 dash
20 no-host configure.ocaml 305,998 0 0 0 4,440 0 1,999 213 osh-native
28 no-host configure.ocaml 306,090 0 0 0 4,440 0 2,000 197 osh-nosouffle
36 no-host configure.ocaml 300,927 0 0 0 4,432 0 1,997 220 osh-static
5 no-host configure.tcc 5,217 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,704 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,795 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,258 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,537,988 1 0 232 35,944 0 18,956 1,111 bash
11 no-host configure.util-linux 1,696,106 0 0 0 35,944 0 17,090 1,195 dash
19 no-host configure.util-linux 1,499,813 1 0 0 35,960 0 16,170 1,009 osh-native
27 no-host configure.util-linux 1,521,874 1 0 0 35,952 0 16,211 945 osh-nosouffle
35 no-host configure.util-linux 1,462,887 0 0 0 35,944 0 16,162 883 osh-static
6 no-host configure.yash 173,415 0 0 0 3,616 0 880 89 bash
14 no-host configure.yash 159,477 0 0 0 3,616 0 1,001 110 dash
22 no-host configure.yash 177,025 0 0 0 3,632 0 855 100 osh-native
30 no-host configure.yash 177,224 0 0 0 3,624 0 857 112 osh-nosouffle
38 no-host configure.yash 172,832 0 0 0 3,616 0 857 89 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 521 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 526 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 311 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-8bb16734
osh-nosouffle osh-f3e1c72a
osh-static osh-static-ac49a732
host label host id
no-host no-host-9c670df1