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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 9 473 22 22 24.37 1.14
bin-true no-host 686 549 2,320 826 804 3.38 1.20
configure.cpython no-host 15,353 15,607 29,883 15,856 15,718 1.95 1.03
configure.ocaml no-host 3,883 3,865 4,776 3,919 3,809 1.23 1.01
configure.tcc no-host 54 43 212 51 48 3.92 0.94
configure.util-linux no-host 14,190 15,627 32,499 14,495 14,608 2.29 1.02
configure.yash no-host 1,871 1,769 2,547 1,862 1,827 1.36 0.99
hello-world no-host 2 1 59 3 3 36.82 1.96

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,521 1,105 23,846 3,148 3,099 9.46 1.25
bin-true no-host 104,405 66,442 765,664 127,251 123,164 7.33 1.22
configure.cpython no-host 2,225,962 2,243,556 6,213,630 2,223,330 2,209,814 2.79 1.00
configure.ocaml no-host 410,577 390,980 648,134 412,989 411,815 1.58 1.01
configure.tcc no-host 6,554 5,483 24,042 6,963 6,915 3.67 1.06
configure.util-linux no-host 2,101,621 2,263,399 5,375,736 2,003,133 1,990,852 2.56 0.95
configure.yash no-host 255,598 243,114 387,905 258,616 257,585 1.52 1.01
hello-world no-host 149 80 3,929 341 334 26.37 2.29

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.7 22.6 9.0 8.4 5.22 2.09
bin-true no-host 3.0 1.4 18.2 8.1 7.5 6.05 2.70
configure.cpython no-host 27.4 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.1 19.1 1.00 0.99
configure.util-linux no-host 30.1 30.4 30.4 30.4 30.1 1.01 1.01
configure.yash no-host 24.2 24.4 24.5 24.4 24.2 1.01 1.01
hello-world no-host 2.6 1.3 18.4 6.2 6.0 7.01 2.35

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.2 6.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.1 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,856 2 69 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,495 3 63 21.2 30.4 2,702,513 45,898 65,711 108,691 1,320,585 1,273,237 32,239 41 131,422 1
configure.ocaml no-host 3,919 1 2 2.6 20.6 150,080 11,112 5,207 7,508 71,612 70,960 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.1 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,862 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,527 57,233 277 3 85,226 1
hello-world no-host 3 0 0 0.2 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.5 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,718 2 64 14.9 27.4 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,608 3 63 21.2 30.1 2,702,513 53,693 65,629 108,693 1,320,585 1,273,235 32,239 41 131,258 1
configure.ocaml no-host 3,809 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,827 1 2 2.5 24.2 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 22 1 3 2.8 8.4 116,291 64,341 42,551 4,533 54,527 57,231 277 3 85,102 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 19 11 8 4.3 bash
15 no-host abuild-print-help 9 9 0 3.7 dash
23 no-host abuild-print-help 473 434 42 22.6 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 22 18 6 8.4 osh-native-souffle
1 no-host bin-true 686 495 222 3.0 bash
9 no-host bin-true 549 416 145 1.4 dash
17 no-host bin-true 2,320 1,539 1,048 18.2 osh-cpython
25 no-host bin-true 826 576 264 8.1 osh-native
33 no-host bin-true 804 583 236 7.5 osh-native-souffle
2 no-host configure.cpython 15,353 9,085 6,671 27.4 bash
10 no-host configure.cpython 15,607 9,312 6,725 27.4 dash
18 no-host configure.cpython 29,883 18,160 13,644 27.5 osh-cpython
26 no-host configure.cpython 15,856 9,276 6,854 27.4 osh-native
34 no-host configure.cpython 15,718 9,269 6,581 27.4 osh-native-souffle
4 no-host configure.ocaml 3,883 1,733 1,187 20.6 bash
12 no-host configure.ocaml 3,865 1,656 1,225 20.6 dash
20 no-host configure.ocaml 4,776 2,358 1,634 20.6 osh-cpython
28 no-host configure.ocaml 3,919 1,676 1,284 20.6 osh-native
36 no-host configure.ocaml 3,809 1,567 1,280 20.6 osh-native-souffle
5 no-host configure.tcc 54 35 20 19.3 bash
13 no-host configure.tcc 43 32 11 19.4 dash
21 no-host configure.tcc 212 153 62 19.3 osh-cpython
29 no-host configure.tcc 51 36 15 19.1 osh-native
37 no-host configure.tcc 48 33 15 19.1 osh-native-souffle
3 no-host configure.util-linux 14,190 9,064 5,611 30.1 bash
11 no-host configure.util-linux 15,627 9,397 6,745 30.4 dash
19 no-host configure.util-linux 32,499 21,633 11,977 30.4 osh-cpython
27 no-host configure.util-linux 14,495 8,788 5,908 30.4 osh-native
35 no-host configure.util-linux 14,608 8,641 6,170 30.1 osh-native-souffle
6 no-host configure.yash 1,871 1,081 799 24.2 bash
14 no-host configure.yash 1,769 1,086 686 24.4 dash
22 no-host configure.yash 2,547 1,489 1,101 24.5 osh-cpython
30 no-host configure.yash 1,862 1,098 768 24.4 osh-native
38 no-host configure.yash 1,827 1,030 800 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 59 37 21 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 6.0 osh-native-souffle

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,521 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,846 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,148 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,405 0 0 0 8 0 1,982 66 bash
9 no-host bin-true 66,442 0 0 0 8 0 1,986 53 dash
17 no-host bin-true 765,664 0 0 0 8 0 1,996 153 osh-cpython
25 no-host bin-true 127,251 0 0 0 16 0 1,991 101 osh-native
33 no-host bin-true 123,164 0 0 0 16 0 1,986 45 osh-native-souffle
2 no-host configure.cpython 2,225,962 0 0 0 32,928 0 14,508 1,053 bash
10 no-host configure.cpython 2,243,556 0 0 0 32,992 0 14,593 994 dash
18 no-host configure.cpython 6,213,630 0 0 0 27,512 0 13,189 1,122 osh-cpython
26 no-host configure.cpython 2,223,330 0 0 0 27,520 0 13,203 882 osh-native
34 no-host configure.cpython 2,209,814 0 0 0 27,520 0 13,228 882 osh-native-souffle
4 no-host configure.ocaml 410,577 0 0 0 5,120 0 1,943 163 bash
12 no-host configure.ocaml 390,980 0 0 0 5,112 0 1,874 146 dash
20 no-host configure.ocaml 648,134 1 0 0 5,112 0 1,855 179 osh-cpython
28 no-host configure.ocaml 412,989 0 0 0 5,120 0 1,913 225 osh-native
36 no-host configure.ocaml 411,815 0 0 0 5,120 0 1,928 175 osh-native-souffle
5 no-host configure.tcc 6,554 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,042 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 10 osh-native
37 no-host configure.tcc 6,915 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,101,621 0 0 0 42,400 0 18,476 1,134 bash
11 no-host configure.util-linux 2,263,399 2 0 0 42,584 0 17,380 1,118 dash
19 no-host configure.util-linux 5,375,736 12 0 0 39,112 0 16,921 1,241 osh-cpython
27 no-host configure.util-linux 2,003,133 1 0 0 39,120 0 16,865 959 osh-native
35 no-host configure.util-linux 1,990,852 0 0 0 39,136 0 16,886 920 osh-native-souffle
6 no-host configure.yash 255,598 0 0 0 4,120 0 868 91 bash
14 no-host configure.yash 243,114 0 0 0 3,720 0 867 94 dash
22 no-host configure.yash 387,905 0 0 0 3,728 0 852 111 osh-cpython
30 no-host configure.yash 258,616 0 0 0 3,736 0 851 70 osh-native
38 no-host configure.yash 257,585 0 0 0 3,736 0 849 78 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,929 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 334 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-de06ce10
dash dash-0ebcf347
osh-cpython osh-8d44e676
osh-native osh-2a706243
osh-native-souffle osh-eda1f7e3
host label host id
no-host no-host-556df3ee