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 460 23 21 23.80 1.18
bin-true no-host 671 541 2,316 817 825 3.45 1.22
configure.cpython no-host 15,166 15,185 28,925 15,282 15,446 1.91 1.01
configure.ocaml no-host 3,836 3,769 4,667 3,852 3,855 1.22 1.00
configure.tcc no-host 49 42 202 50 49 4.14 1.03
configure.util-linux no-host 14,125 14,946 31,535 14,464 14,489 2.23 1.02
configure.yash no-host 1,829 1,793 2,478 1,843 1,843 1.36 1.01
hello-world no-host 2 1 56 3 3 36.92 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,550 1,095 23,824 3,209 3,135 9.34 1.26
bin-true no-host 105,316 66,416 770,549 125,278 123,291 7.32 1.19
configure.cpython no-host 2,222,879 2,239,960 6,246,297 2,215,811 2,202,310 2.81 1.00
configure.ocaml no-host 410,634 391,363 648,136 412,907 412,151 1.58 1.01
configure.tcc no-host 6,589 5,480 24,106 6,967 6,928 3.66 1.06
configure.util-linux no-host 2,106,084 2,266,717 5,397,446 1,994,576 1,994,592 2.56 0.95
configure.yash no-host 256,701 244,490 388,702 257,857 258,459 1.51 1.00
hello-world no-host 150 81 3,941 345 336 26.27 2.30

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.4 8.9 8.7 5.03 2.00
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.4 27.4 27.4 27.5 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.1 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.0 30.0 30.3 30.3 0.99 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.6 1.4 18.2 6.4 5.9 6.95 2.45

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 817 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,282 1 64 14.9 27.5 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,464 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,852 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 50 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,843 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 23 1 2 2.8 8.9 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 825 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,446 1 65 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,489 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,855 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 49 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,843 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 14 5 4.5 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 460 425 39 22.4 osh-cpython
31 no-host abuild-print-help 23 18 5 8.9 osh-native
39 no-host abuild-print-help 21 13 9 8.7 osh-native-souffle
1 no-host bin-true 671 503 199 2.9 bash
9 no-host bin-true 541 420 130 1.4 dash
17 no-host bin-true 2,316 1,497 1,080 18.4 osh-cpython
25 no-host bin-true 817 569 262 8.0 osh-native
33 no-host bin-true 825 594 248 7.6 osh-native-souffle
2 no-host configure.cpython 15,166 9,230 6,343 27.4 bash
10 no-host configure.cpython 15,185 9,192 6,415 27.4 dash
18 no-host configure.cpython 28,925 17,782 13,011 27.4 osh-cpython
26 no-host configure.cpython 15,282 9,098 6,454 27.5 osh-native
34 no-host configure.cpython 15,446 8,979 6,585 27.4 osh-native-souffle
4 no-host configure.ocaml 3,836 1,670 1,208 20.6 bash
12 no-host configure.ocaml 3,769 1,623 1,165 20.6 dash
20 no-host configure.ocaml 4,667 2,287 1,590 20.6 osh-cpython
28 no-host configure.ocaml 3,852 1,606 1,284 20.6 osh-native
36 no-host configure.ocaml 3,855 1,668 1,222 20.6 osh-native-souffle
5 no-host configure.tcc 49 33 16 19.3 bash
13 no-host configure.tcc 42 22 20 19.1 dash
21 no-host configure.tcc 202 133 72 19.3 osh-cpython
29 no-host configure.tcc 50 34 17 19.4 osh-native
37 no-host configure.tcc 49 38 12 19.4 osh-native-souffle
3 no-host configure.util-linux 14,125 9,012 5,597 30.3 bash
11 no-host configure.util-linux 14,946 9,306 6,120 30.0 dash
19 no-host configure.util-linux 31,535 21,032 11,579 30.0 osh-cpython
27 no-host configure.util-linux 14,464 8,581 6,084 30.3 osh-native
35 no-host configure.util-linux 14,489 8,922 5,767 30.3 osh-native-souffle
6 no-host configure.yash 1,829 1,033 805 24.2 bash
14 no-host configure.yash 1,793 1,032 764 24.4 dash
22 no-host configure.yash 2,478 1,490 1,031 24.4 osh-cpython
30 no-host configure.yash 1,843 1,091 756 24.4 osh-native
38 no-host configure.yash 1,843 1,074 773 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 33 24 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.4 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,550 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,824 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,135 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,316 0 0 0 8 0 1,994 48 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,986 55 dash
17 no-host bin-true 770,549 0 0 0 8 0 1,997 105 osh-cpython
25 no-host bin-true 125,278 0 0 0 16 0 1,993 52 osh-native
33 no-host bin-true 123,291 0 0 0 16 0 1,994 80 osh-native-souffle
2 no-host configure.cpython 2,222,879 0 0 0 32,928 0 14,509 1,126 bash
10 no-host configure.cpython 2,239,960 0 0 0 32,992 0 14,607 1,028 dash
18 no-host configure.cpython 6,246,297 0 0 0 27,512 0 13,230 1,151 osh-cpython
26 no-host configure.cpython 2,215,811 0 0 0 27,520 0 13,318 1,177 osh-native
34 no-host configure.cpython 2,202,310 0 0 0 27,520 0 13,285 1,135 osh-native-souffle
4 no-host configure.ocaml 410,634 0 0 0 5,120 0 1,952 155 bash
12 no-host configure.ocaml 391,363 0 0 0 5,112 0 1,929 153 dash
20 no-host configure.ocaml 648,136 0 0 0 5,112 0 1,866 193 osh-cpython
28 no-host configure.ocaml 412,907 0 0 0 5,120 0 1,933 168 osh-native
36 no-host configure.ocaml 412,151 0 0 0 5,120 0 1,942 159 osh-native-souffle
5 no-host configure.tcc 6,589 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,106 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,967 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,928 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,106,084 0 0 0 42,408 0 18,732 1,270 bash
11 no-host configure.util-linux 2,266,717 1 0 0 42,592 0 17,569 1,118 dash
19 no-host configure.util-linux 5,397,446 5 0 0 39,112 0 16,979 1,288 osh-cpython
27 no-host configure.util-linux 1,994,576 0 0 0 39,128 0 16,931 998 osh-native
35 no-host configure.util-linux 1,994,592 2 0 0 39,136 0 16,987 990 osh-native-souffle
6 no-host configure.yash 256,701 0 0 0 4,120 0 870 86 bash
14 no-host configure.yash 244,490 0 0 0 3,720 0 871 71 dash
22 no-host configure.yash 388,702 0 0 0 3,728 0 857 93 osh-cpython
30 no-host configure.yash 257,857 0 0 0 3,736 0 849 81 osh-native
38 no-host configure.yash 258,459 0 0 0 3,736 0 850 82 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 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 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-0a69bf9a
dash dash-0ebcf347
osh-cpython osh-744e07f5
osh-native osh-fc9b80b0
osh-native-souffle osh-e748d7f2
host label host id
no-host no-host-556df3ee