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 482 22 21 25.49 1.18
bin-true no-host 674 542 2,339 832 818 3.47 1.23
configure.cpython no-host 15,509 15,407 29,456 15,872 15,897 1.90 1.02
configure.ocaml no-host 3,862 3,808 4,774 3,870 3,921 1.24 1.00
configure.tcc no-host 48 43 211 49 51 4.41 1.03
configure.util-linux no-host 14,265 15,072 32,090 14,786 14,871 2.25 1.04
configure.yash no-host 1,841 1,809 2,568 1,846 1,881 1.39 1.00
hello-world no-host 2 1 56 3 3 35.63 1.85

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,545 1,102 23,702 3,146 3,078 9.31 1.24
bin-true no-host 104,397 65,418 774,696 126,307 123,254 7.42 1.21
configure.cpython no-host 2,217,948 2,251,901 6,212,203 2,222,975 2,202,911 2.80 1.00
configure.ocaml no-host 410,896 391,055 647,371 412,437 412,067 1.58 1.00
configure.tcc no-host 6,571 5,474 24,076 6,971 6,924 3.66 1.06
configure.util-linux no-host 2,100,635 2,260,121 5,386,373 1,997,644 1,991,600 2.56 0.95
configure.yash no-host 255,863 244,146 389,059 257,614 258,168 1.52 1.01
hello-world no-host 155 77 3,945 346 336 25.45 2.23

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.5 22.7 8.8 8.5 5.25 2.03
bin-true no-host 3.0 1.4 18.2 8.3 7.6 6.05 2.74
configure.cpython no-host 27.4 27.4 27.4 27.3 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.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.4 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.5 24.5 24.4 24.2 1.01 1.01
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 2.18

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.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 832 1 2 2.6 8.3 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,872 1 65 14.9 27.3 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,786 3 64 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,870 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,846 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,897 1 63 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,871 3 65 21.2 30.3 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,921 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,881 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 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 16 4 4.3 bash
15 no-host abuild-print-help 9 6 4 3.5 dash
23 no-host abuild-print-help 482 434 51 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 8.8 osh-native
39 no-host abuild-print-help 21 20 2 8.5 osh-native-souffle
1 no-host bin-true 674 510 194 3.0 bash
9 no-host bin-true 542 422 130 1.4 dash
17 no-host bin-true 2,339 1,563 1,041 18.2 osh-cpython
25 no-host bin-true 832 576 270 8.3 osh-native
33 no-host bin-true 818 584 248 7.6 osh-native-souffle
2 no-host configure.cpython 15,509 9,344 6,570 27.4 bash
10 no-host configure.cpython 15,407 9,311 6,520 27.4 dash
18 no-host configure.cpython 29,456 17,828 13,547 27.4 osh-cpython
26 no-host configure.cpython 15,872 9,334 6,811 27.3 osh-native
34 no-host configure.cpython 15,897 9,239 6,781 27.4 osh-native-souffle
4 no-host configure.ocaml 3,862 1,638 1,263 20.6 bash
12 no-host configure.ocaml 3,808 1,656 1,172 20.6 dash
20 no-host configure.ocaml 4,774 2,325 1,664 20.6 osh-cpython
28 no-host configure.ocaml 3,870 1,676 1,233 20.6 osh-native
36 no-host configure.ocaml 3,921 1,600 1,359 20.6 osh-native-souffle
5 no-host configure.tcc 48 31 18 19.3 bash
13 no-host configure.tcc 43 25 18 19.3 dash
21 no-host configure.tcc 211 162 53 19.3 osh-cpython
29 no-host configure.tcc 49 34 16 19.3 osh-native
37 no-host configure.tcc 51 28 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,265 8,896 5,840 30.3 bash
11 no-host configure.util-linux 15,072 9,204 6,365 30.3 dash
19 no-host configure.util-linux 32,090 21,366 11,832 30.4 osh-cpython
27 no-host configure.util-linux 14,786 9,067 5,922 30.1 osh-native
35 no-host configure.util-linux 14,871 8,988 6,081 30.3 osh-native-souffle
6 no-host configure.yash 1,841 1,075 772 24.2 bash
14 no-host configure.yash 1,809 1,091 721 24.5 dash
22 no-host configure.yash 2,568 1,586 1,026 24.5 osh-cpython
30 no-host configure.yash 1,846 1,023 827 24.4 osh-native
38 no-host configure.yash 1,881 1,157 728 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 43 13 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 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,545 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,702 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,146 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,078 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,397 0 0 0 8 0 1,993 56 bash
9 no-host bin-true 65,418 0 0 0 8 0 1,989 52 dash
17 no-host bin-true 774,696 0 0 0 8 0 1,996 208 osh-cpython
25 no-host bin-true 126,307 0 0 0 16 0 1,982 115 osh-native
33 no-host bin-true 123,254 0 0 0 16 0 1,993 59 osh-native-souffle
2 no-host configure.cpython 2,217,948 1 0 0 32,928 0 14,525 1,106 bash
10 no-host configure.cpython 2,251,901 0 0 0 32,992 0 14,589 932 dash
18 no-host configure.cpython 6,212,203 0 0 0 27,512 0 13,247 1,142 osh-cpython
26 no-host configure.cpython 2,222,975 0 0 0 27,520 0 13,144 891 osh-native
34 no-host configure.cpython 2,202,911 0 0 0 27,520 0 13,201 972 osh-native-souffle
4 no-host configure.ocaml 410,896 0 0 0 5,120 0 1,951 153 bash
12 no-host configure.ocaml 391,055 0 0 0 5,112 0 1,941 172 dash
20 no-host configure.ocaml 647,371 0 0 0 5,112 0 1,854 180 osh-cpython
28 no-host configure.ocaml 412,437 0 0 0 5,120 0 1,928 154 osh-native
36 no-host configure.ocaml 412,067 0 0 0 5,120 0 1,933 159 osh-native-souffle
5 no-host configure.tcc 6,571 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,076 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,924 0 0 0 104 0 46 4 osh-native-souffle
3 no-host configure.util-linux 2,100,635 0 0 0 42,400 0 18,570 1,093 bash
11 no-host configure.util-linux 2,260,121 1 0 0 42,584 0 17,482 1,050 dash
19 no-host configure.util-linux 5,386,373 10 0 0 39,120 0 16,996 1,211 osh-cpython
27 no-host configure.util-linux 1,997,644 0 0 0 39,128 0 16,955 904 osh-native
35 no-host configure.util-linux 1,991,600 1 0 0 39,136 0 16,966 972 osh-native-souffle
6 no-host configure.yash 255,863 0 0 0 4,120 0 865 79 bash
14 no-host configure.yash 244,146 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 389,059 1 0 0 3,728 0 855 99 osh-cpython
30 no-host configure.yash 257,614 0 0 0 3,736 0 850 67 osh-native
38 no-host configure.yash 258,168 0 0 0 3,736 0 852 68 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a87f56a3
dash dash-0ebcf347
osh-cpython osh-7e0dd3b9
osh-native osh-a2334028
osh-native-souffle osh-2a6e7a00
host label host id
no-host no-host-556df3ee