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 10 464 22 21 24.31 1.16
bin-true no-host 690 545 2,388 810 812 3.46 1.17
configure.cpython no-host 15,547 15,168 30,258 15,266 15,568 1.95 0.98
configure.ocaml no-host 3,819 3,885 4,668 3,882 3,946 1.22 1.02
configure.tcc no-host 49 44 203 49 50 4.11 0.99
configure.util-linux no-host 14,023 15,203 32,110 14,490 14,460 2.29 1.03
configure.yash no-host 1,834 1,884 2,459 1,861 1,877 1.34 1.01
hello-world no-host 2 1 60 3 3 39.37 1.86

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,575 1,096 23,661 3,180 3,117 9.19 1.23
bin-true no-host 108,318 66,462 777,656 126,191 126,303 7.18 1.17
configure.cpython no-host 2,225,785 2,239,247 6,218,804 2,217,643 2,210,470 2.79 1.00
configure.ocaml no-host 410,980 391,259 646,797 413,630 412,634 1.57 1.01
configure.tcc no-host 6,543 5,495 24,085 6,968 6,907 3.68 1.06
configure.util-linux no-host 2,105,326 2,264,560 5,388,054 1,990,791 1,988,404 2.56 0.95
configure.yash no-host 256,521 245,051 389,911 257,360 257,924 1.52 1.00
hello-world no-host 154 80 3,941 346 339 25.59 2.25

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.5 3.5 22.6 9.0 8.7 5.06 2.03
bin-true no-host 3.0 1.4 18.2 8.1 7.3 6.05 2.70
configure.cpython no-host 27.4 27.5 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.1 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 29.8 30.1 30.1 30.3 30.3 1.01 1.02
configure.yash no-host 24.2 24.2 24.4 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.4 18.4 6.3 5.9 6.37 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 810 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,266 1 61 14.9 27.4 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,490 3 61 21.2 30.3 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,882 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.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,861 1 2 2.5 24.2 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 9.0 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 812 1 2 2.6 7.3 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,568 1 61 14.9 27.3 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,460 3 61 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,946 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 50 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,877 1 2 2.5 24.4 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.7 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 18 1 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 464 427 40 22.6 osh-cpython
31 no-host abuild-print-help 22 18 5 9.0 osh-native
39 no-host abuild-print-help 21 21 1 8.7 osh-native-souffle
1 no-host bin-true 690 507 217 3.0 bash
9 no-host bin-true 545 424 131 1.4 dash
17 no-host bin-true 2,388 1,593 1,072 18.2 osh-cpython
25 no-host bin-true 810 571 256 8.1 osh-native
33 no-host bin-true 812 575 254 7.3 osh-native-souffle
2 no-host configure.cpython 15,547 9,271 6,681 27.4 bash
10 no-host configure.cpython 15,168 9,279 6,315 27.5 dash
18 no-host configure.cpython 30,258 17,948 14,292 27.4 osh-cpython
26 no-host configure.cpython 15,266 8,973 6,559 27.4 osh-native
34 no-host configure.cpython 15,568 9,034 6,637 27.3 osh-native-souffle
4 no-host configure.ocaml 3,819 1,674 1,186 20.6 bash
12 no-host configure.ocaml 3,885 1,658 1,248 20.6 dash
20 no-host configure.ocaml 4,668 2,226 1,654 20.4 osh-cpython
28 no-host configure.ocaml 3,882 1,668 1,252 20.6 osh-native
36 no-host configure.ocaml 3,946 1,698 1,281 20.6 osh-native-souffle
5 no-host configure.tcc 49 17 33 19.3 bash
13 no-host configure.tcc 44 22 22 19.1 dash
21 no-host configure.tcc 203 151 56 19.3 osh-cpython
29 no-host configure.tcc 49 35 15 19.4 osh-native
37 no-host configure.tcc 50 23 28 19.3 osh-native-souffle
3 no-host configure.util-linux 14,023 8,849 5,650 29.8 bash
11 no-host configure.util-linux 15,203 9,123 6,570 30.1 dash
19 no-host configure.util-linux 32,110 21,122 12,119 30.1 osh-cpython
27 no-host configure.util-linux 14,490 8,833 5,849 30.3 osh-native
35 no-host configure.util-linux 14,460 8,664 5,995 30.3 osh-native-souffle
6 no-host configure.yash 1,834 1,079 765 24.2 bash
14 no-host configure.yash 1,884 1,084 762 24.2 dash
22 no-host configure.yash 2,459 1,505 996 24.4 osh-cpython
30 no-host configure.yash 1,861 1,087 778 24.2 osh-native
38 no-host configure.yash 1,877 1,022 860 24.4 osh-native-souffle
0 no-host hello-world 2 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 60 40 20 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 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,575 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,661 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,180 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,117 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 108,318 0 0 0 8 0 1,991 65 bash
9 no-host bin-true 66,462 0 0 0 8 0 1,984 73 dash
17 no-host bin-true 777,656 0 0 0 8 0 2,000 324 osh-cpython
25 no-host bin-true 126,191 0 0 0 16 0 1,989 45 osh-native
33 no-host bin-true 126,303 0 0 0 16 0 1,991 196 osh-native-souffle
2 no-host configure.cpython 2,225,785 1 0 0 32,928 0 14,551 1,077 bash
10 no-host configure.cpython 2,239,247 0 0 0 32,992 0 14,681 1,073 dash
18 no-host configure.cpython 6,218,804 0 0 0 27,512 0 13,252 1,078 osh-cpython
26 no-host configure.cpython 2,217,643 1 0 0 27,520 0 13,177 1,040 osh-native
34 no-host configure.cpython 2,210,470 0 0 0 27,520 0 13,265 1,071 osh-native-souffle
4 no-host configure.ocaml 410,980 0 0 0 5,120 0 1,949 139 bash
12 no-host configure.ocaml 391,259 0 0 0 5,112 0 1,928 145 dash
20 no-host configure.ocaml 646,797 0 0 0 5,112 0 1,851 169 osh-cpython
28 no-host configure.ocaml 413,630 0 0 0 5,120 0 1,930 167 osh-native
36 no-host configure.ocaml 412,634 0 0 0 5,120 0 1,928 164 osh-native-souffle
5 no-host configure.tcc 6,543 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 46 1 dash
21 no-host configure.tcc 24,085 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,968 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,907 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,105,326 1 0 0 42,400 0 18,518 961 bash
11 no-host configure.util-linux 2,264,560 1 0 0 42,584 0 17,475 1,033 dash
19 no-host configure.util-linux 5,388,054 10 0 0 39,112 0 16,967 1,353 osh-cpython
27 no-host configure.util-linux 1,990,791 1 0 0 39,120 0 16,977 973 osh-native
35 no-host configure.util-linux 1,988,404 0 0 0 39,136 0 16,917 918 osh-native-souffle
6 no-host configure.yash 256,521 0 0 0 4,120 0 871 65 bash
14 no-host configure.yash 245,051 0 0 0 3,720 0 865 71 dash
22 no-host configure.yash 389,911 0 0 0 3,728 0 854 106 osh-cpython
30 no-host configure.yash 257,360 0 0 0 3,736 0 844 80 osh-native
38 no-host configure.yash 257,924 0 0 0 3,736 0 848 74 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 1 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,941 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 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d70aaa16
dash dash-0ebcf347
osh-cpython osh-d4819299
osh-native osh-79995a9e
osh-native-souffle osh-2b3e2354
host label host id
no-host no-host-556df3ee