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 473 23 21 24.38 1.17
bin-true no-host 691 551 2,363 813 818 3.42 1.18
configure.cpython no-host 15,725 15,667 29,944 15,707 15,855 1.90 1.00
configure.ocaml no-host 3,931 3,872 4,813 3,966 3,851 1.22 1.01
configure.tcc no-host 50 43 206 51 48 4.12 1.02
configure.util-linux no-host 14,579 15,688 32,530 14,898 14,706 2.23 1.02
configure.yash no-host 1,923 1,835 2,526 1,890 1,845 1.31 0.98
hello-world no-host 2 1 59 3 3 36.89 1.78

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,524 1,106 23,683 3,184 3,063 9.38 1.26
bin-true no-host 105,331 65,464 774,685 125,305 124,212 7.35 1.19
configure.cpython no-host 2,225,350 2,244,462 6,211,520 2,217,131 2,213,178 2.79 1.00
configure.ocaml no-host 410,881 391,168 647,227 412,846 413,046 1.58 1.00
configure.tcc no-host 6,552 5,474 24,076 6,959 6,886 3.67 1.06
configure.util-linux no-host 2,104,957 2,254,970 5,387,900 2,000,193 1,991,045 2.56 0.95
configure.yash no-host 256,651 243,637 388,808 258,079 257,848 1.51 1.01
hello-world no-host 153 80 3,946 345 336 25.79 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.4 22.8 9.2 8.7 5.12 2.06
bin-true no-host 3.0 1.6 18.2 7.9 7.3 6.05 2.61
configure.cpython no-host 27.4 27.5 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 20.6 0.99 0.99
configure.tcc no-host 19.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 24.4 1.00 0.99
hello-world no-host 2.9 1.4 18.2 6.4 5.9 6.32 2.23

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.9 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,707 1 65 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,898 3 64 21.2 30.3 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,966 1 2 2.6 20.4 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 51 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,890 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 23 1 2 2.8 9.2 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.3 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,855 1 64 14.9 27.5 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,706 3 63 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,851 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 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,845 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.4 dash
23 no-host abuild-print-help 473 416 60 22.8 osh-cpython
31 no-host abuild-print-help 23 22 2 9.2 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 691 506 216 3.0 bash
9 no-host bin-true 551 423 139 1.6 dash
17 no-host bin-true 2,363 1,536 1,097 18.2 osh-cpython
25 no-host bin-true 813 582 248 7.9 osh-native
33 no-host bin-true 818 583 250 7.3 osh-native-souffle
2 no-host configure.cpython 15,725 9,443 6,689 27.4 bash
10 no-host configure.cpython 15,667 9,349 6,748 27.5 dash
18 no-host configure.cpython 29,944 18,173 13,729 27.4 osh-cpython
26 no-host configure.cpython 15,707 9,209 6,770 27.4 osh-native
34 no-host configure.cpython 15,855 9,167 6,827 27.5 osh-native-souffle
4 no-host configure.ocaml 3,931 1,731 1,238 20.6 bash
12 no-host configure.ocaml 3,872 1,694 1,196 20.6 dash
20 no-host configure.ocaml 4,813 2,340 1,690 20.4 osh-cpython
28 no-host configure.ocaml 3,966 1,706 1,297 20.4 osh-native
36 no-host configure.ocaml 3,851 1,668 1,218 20.6 osh-native-souffle
5 no-host configure.tcc 50 26 25 19.3 bash
13 no-host configure.tcc 43 17 27 19.3 dash
21 no-host configure.tcc 206 141 69 19.3 osh-cpython
29 no-host configure.tcc 51 23 28 19.3 osh-native
37 no-host configure.tcc 48 22 26 19.4 osh-native-souffle
3 no-host configure.util-linux 14,579 9,183 5,874 30.3 bash
11 no-host configure.util-linux 15,688 9,495 6,684 30.3 dash
19 no-host configure.util-linux 32,530 21,508 12,153 30.3 osh-cpython
27 no-host configure.util-linux 14,898 8,984 6,102 30.3 osh-native
35 no-host configure.util-linux 14,706 8,702 6,188 30.3 osh-native-souffle
6 no-host configure.yash 1,923 1,136 795 24.4 bash
14 no-host configure.yash 1,835 1,060 778 24.2 dash
22 no-host configure.yash 2,526 1,609 956 24.4 osh-cpython
30 no-host configure.yash 1,890 1,059 836 24.2 osh-native
38 no-host configure.yash 1,845 1,007 840 24.4 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 59 45 13 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,524 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,683 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,184 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,063 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,331 0 0 0 8 0 1,992 208 bash
9 no-host bin-true 65,464 0 0 0 8 0 1,981 58 dash
17 no-host bin-true 774,685 0 0 0 8 0 1,999 334 osh-cpython
25 no-host bin-true 125,305 0 0 0 16 0 1,989 44 osh-native
33 no-host bin-true 124,212 0 0 0 16 0 1,991 67 osh-native-souffle
2 no-host configure.cpython 2,225,350 0 0 0 32,928 0 14,399 1,191 bash
10 no-host configure.cpython 2,244,462 0 0 0 32,992 0 14,702 1,017 dash
18 no-host configure.cpython 6,211,520 0 0 0 27,512 0 13,150 1,091 osh-cpython
26 no-host configure.cpython 2,217,131 0 0 0 27,520 0 13,251 903 osh-native
34 no-host configure.cpython 2,213,178 1 0 0 27,520 0 13,245 997 osh-native-souffle
4 no-host configure.ocaml 410,881 0 0 0 5,120 0 1,956 171 bash
12 no-host configure.ocaml 391,168 0 0 0 5,112 0 1,890 128 dash
20 no-host configure.ocaml 647,227 0 0 0 5,112 0 1,854 169 osh-cpython
28 no-host configure.ocaml 412,846 0 0 0 5,120 0 1,926 258 osh-native
36 no-host configure.ocaml 413,046 0 0 0 5,120 0 1,938 146 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 8 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,076 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,886 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,104,957 0 0 0 42,400 0 18,557 984 bash
11 no-host configure.util-linux 2,254,970 2 0 0 42,584 0 17,462 1,162 dash
19 no-host configure.util-linux 5,387,900 11 0 0 39,112 0 16,978 1,254 osh-cpython
27 no-host configure.util-linux 2,000,193 1 0 0 39,120 0 16,978 1,015 osh-native
35 no-host configure.util-linux 1,991,045 3 0 0 39,136 0 16,966 932 osh-native-souffle
6 no-host configure.yash 256,651 0 0 0 4,120 0 872 82 bash
14 no-host configure.yash 243,637 0 0 0 3,720 0 869 79 dash
22 no-host configure.yash 388,808 0 0 0 3,728 0 854 70 osh-cpython
30 no-host configure.yash 258,079 0 0 0 3,736 0 851 61 osh-native
38 no-host configure.yash 257,848 0 0 0 3,736 0 848 75 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 0 0 dash
16 no-host hello-world 3,946 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 345 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-46f378ad
dash dash-0ebcf347
osh-cpython osh-e4206266
osh-native osh-188c65d9
osh-native-souffle osh-bc318878
host label host id
no-host no-host-556df3ee