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 459 23 21 23.97 1.18
bin-true no-host 676 563 2,285 811 805 3.38 1.20
configure.cpython no-host 15,087 15,140 28,896 15,151 15,317 1.92 1.00
configure.ocaml no-host 3,835 3,767 4,653 3,806 3,801 1.21 0.99
configure.tcc no-host 48 41 202 49 48 4.20 1.01
configure.util-linux no-host 14,039 15,100 31,245 14,429 14,348 2.23 1.03
configure.yash no-host 1,863 1,764 2,437 1,830 1,816 1.31 0.98
hello-world no-host 1 1 61 3 3 40.83 1.90

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,538 1,111 23,667 3,208 3,116 9.33 1.26
bin-true no-host 107,282 66,430 769,804 127,280 123,328 7.18 1.19
configure.cpython no-host 2,224,386 2,241,112 6,231,289 2,210,365 2,213,306 2.80 0.99
configure.ocaml no-host 410,779 390,964 646,764 412,861 412,641 1.57 1.01
configure.tcc no-host 6,594 5,488 24,072 6,954 6,897 3.65 1.05
configure.util-linux no-host 2,102,963 2,264,845 5,366,435 1,998,094 1,991,761 2.55 0.95
configure.yash no-host 256,531 245,061 388,375 257,427 258,199 1.51 1.00
hello-world no-host 154 82 3,939 345 336 25.58 2.24

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.8 9.2 8.4 5.12 2.06
bin-true no-host 3.0 1.4 18.4 8.3 7.9 6.09 2.74
configure.cpython no-host 27.3 27.1 27.4 27.4 27.5 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.4 19.3 19.1 19.3 19.4 0.99 0.99
configure.util-linux no-host 29.9 30.1 30.1 30.0 30.1 1.01 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.2 6.3 5.8 6.62 2.29

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 811 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,151 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,429 3 61 21.2 30.0 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,806 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,830 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 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 805 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,317 2 60 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,348 3 59 21.2 30.1 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,801 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,816 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.4 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 15 4 4.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 459 410 52 22.8 osh-cpython
31 no-host abuild-print-help 23 14 9 9.2 osh-native
39 no-host abuild-print-help 21 11 10 8.4 osh-native-souffle
1 no-host bin-true 676 492 214 3.0 bash
9 no-host bin-true 563 427 145 1.4 dash
17 no-host bin-true 2,285 1,481 1,057 18.4 osh-cpython
25 no-host bin-true 811 566 257 8.3 osh-native
33 no-host bin-true 805 590 229 7.9 osh-native-souffle
2 no-host configure.cpython 15,087 9,053 6,424 27.3 bash
10 no-host configure.cpython 15,140 8,947 6,608 27.1 dash
18 no-host configure.cpython 28,896 17,802 12,928 27.4 osh-cpython
26 no-host configure.cpython 15,151 9,039 6,375 27.4 osh-native
34 no-host configure.cpython 15,317 9,034 6,413 27.5 osh-native-souffle
4 no-host configure.ocaml 3,835 1,691 1,185 20.6 bash
12 no-host configure.ocaml 3,767 1,555 1,229 20.6 dash
20 no-host configure.ocaml 4,653 2,239 1,621 20.6 osh-cpython
28 no-host configure.ocaml 3,806 1,555 1,287 20.6 osh-native
36 no-host configure.ocaml 3,801 1,661 1,171 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.4 bash
13 no-host configure.tcc 41 39 3 19.3 dash
21 no-host configure.tcc 202 167 38 19.1 osh-cpython
29 no-host configure.tcc 49 24 25 19.3 osh-native
37 no-host configure.tcc 48 33 16 19.4 osh-native-souffle
3 no-host configure.util-linux 14,039 8,779 5,731 29.9 bash
11 no-host configure.util-linux 15,100 9,265 6,311 30.1 dash
19 no-host configure.util-linux 31,245 21,098 11,192 30.1 osh-cpython
27 no-host configure.util-linux 14,429 8,765 5,875 30.0 osh-native
35 no-host configure.util-linux 14,348 8,566 5,974 30.1 osh-native-souffle
6 no-host configure.yash 1,863 1,105 761 24.4 bash
14 no-host configure.yash 1,764 1,050 718 24.4 dash
22 no-host configure.yash 2,437 1,485 992 24.2 osh-cpython
30 no-host configure.yash 1,830 1,073 758 24.4 osh-native
38 no-host configure.yash 1,816 1,017 798 24.4 osh-native-souffle
0 no-host hello-world 1 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 61 41 20 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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,538 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 4 dash
23 no-host abuild-print-help 23,667 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,208 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,116 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,282 0 0 0 8 0 1,992 39 bash
9 no-host bin-true 66,430 0 0 0 8 0 1,987 52 dash
17 no-host bin-true 769,804 0 0 0 8 0 1,997 228 osh-cpython
25 no-host bin-true 127,280 0 0 0 16 0 1,987 52 osh-native
33 no-host bin-true 123,328 0 0 0 16 0 1,995 86 osh-native-souffle
2 no-host configure.cpython 2,224,386 0 0 0 32,928 0 14,493 1,156 bash
10 no-host configure.cpython 2,241,112 1 0 0 32,992 0 14,633 940 dash
18 no-host configure.cpython 6,231,289 0 0 0 27,512 0 13,219 1,057 osh-cpython
26 no-host configure.cpython 2,210,365 0 0 0 27,520 0 13,206 865 osh-native
34 no-host configure.cpython 2,213,306 0 0 0 27,520 0 13,228 1,167 osh-native-souffle
4 no-host configure.ocaml 410,779 0 0 0 5,120 0 1,944 163 bash
12 no-host configure.ocaml 390,964 0 0 0 5,112 0 1,917 176 dash
20 no-host configure.ocaml 646,764 0 0 0 5,112 0 1,858 177 osh-cpython
28 no-host configure.ocaml 412,861 0 0 0 5,120 0 1,928 160 osh-native
36 no-host configure.ocaml 412,641 0 0 0 5,120 0 1,923 147 osh-native-souffle
5 no-host configure.tcc 6,594 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,072 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,954 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,897 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,102,963 0 0 0 42,400 0 18,652 1,069 bash
11 no-host configure.util-linux 2,264,845 0 0 0 42,592 0 17,511 977 dash
19 no-host configure.util-linux 5,366,435 7 0 0 39,112 0 16,999 1,162 osh-cpython
27 no-host configure.util-linux 1,998,094 0 0 0 39,120 0 17,061 961 osh-native
35 no-host configure.util-linux 1,991,761 0 0 0 39,136 0 16,959 934 osh-native-souffle
6 no-host configure.yash 256,531 0 0 0 4,120 0 883 83 bash
14 no-host configure.yash 245,061 0 0 0 3,720 0 865 73 dash
22 no-host configure.yash 388,375 0 0 0 3,728 0 850 101 osh-cpython
30 no-host configure.yash 257,427 0 0 0 3,736 0 849 81 osh-native
38 no-host configure.yash 258,199 0 0 0 3,736 0 849 73 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,939 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-3c14bbca
dash dash-0ebcf347
osh-cpython osh-2fa92f96
osh-native osh-5fffd944
osh-native-souffle osh-cabfe724
host label host id
no-host no-host-556df3ee