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 466 22 21 24.07 1.13
bin-true no-host 682 549 2,268 819 814 3.33 1.20
configure.cpython no-host 15,161 15,320 29,204 15,389 15,615 1.93 1.02
configure.ocaml no-host 3,832 3,767 4,701 3,856 3,869 1.23 1.01
configure.tcc no-host 48 47 203 49 49 4.21 1.01
configure.util-linux no-host 14,165 14,996 31,863 14,587 14,533 2.25 1.03
configure.yash no-host 1,831 1,791 2,496 1,845 1,875 1.36 1.01
hello-world no-host 1 1 57 3 3 38.85 1.93

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,549 1,103 23,770 3,198 3,094 9.33 1.25
bin-true no-host 108,372 67,378 772,146 128,313 125,243 7.12 1.18
configure.cpython no-host 2,224,190 2,243,024 6,236,658 2,223,405 2,211,085 2.80 1.00
configure.ocaml no-host 410,542 390,924 647,354 412,974 412,330 1.58 1.01
configure.tcc no-host 6,555 5,475 24,005 6,933 6,929 3.66 1.06
configure.util-linux no-host 2,106,610 2,257,490 5,380,374 1,997,910 1,988,527 2.55 0.95
configure.yash no-host 256,043 244,754 388,213 257,963 257,779 1.52 1.01
hello-world no-host 155 83 3,944 345 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.5 3.5 22.6 9.0 8.5 5.06 2.03
bin-true no-host 3.0 1.4 18.4 7.9 7.9 6.09 2.61
configure.cpython no-host 27.4 27.4 27.3 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.4 19.4 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.8 1.6 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 819 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,389 1 63 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,587 3 61 21.2 30.1 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,856 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,845 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 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 814 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,615 1 62 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,533 3 62 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,869 1 2 2.6 20.4 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,875 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 13 7 4.5 bash
15 no-host abuild-print-help 10 5 6 3.5 dash
23 no-host abuild-print-help 466 411 57 22.6 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.5 osh-native-souffle
1 no-host bin-true 682 502 212 3.0 bash
9 no-host bin-true 549 433 126 1.4 dash
17 no-host bin-true 2,268 1,478 1,047 18.4 osh-cpython
25 no-host bin-true 819 584 248 7.9 osh-native
33 no-host bin-true 814 569 260 7.9 osh-native-souffle
2 no-host configure.cpython 15,161 9,228 6,339 27.4 bash
10 no-host configure.cpython 15,320 9,189 6,549 27.4 dash
18 no-host configure.cpython 29,204 17,649 13,428 27.3 osh-cpython
26 no-host configure.cpython 15,389 9,248 6,405 27.3 osh-native
34 no-host configure.cpython 15,615 8,933 6,813 27.4 osh-native-souffle
4 no-host configure.ocaml 3,832 1,658 1,213 20.6 bash
12 no-host configure.ocaml 3,767 1,582 1,203 20.4 dash
20 no-host configure.ocaml 4,701 2,334 1,580 20.6 osh-cpython
28 no-host configure.ocaml 3,856 1,576 1,319 20.6 osh-native
36 no-host configure.ocaml 3,869 1,680 1,225 20.4 osh-native-souffle
5 no-host configure.tcc 48 30 19 19.4 bash
13 no-host configure.tcc 47 37 10 19.4 dash
21 no-host configure.tcc 203 137 69 19.4 osh-cpython
29 no-host configure.tcc 49 23 26 19.4 osh-native
37 no-host configure.tcc 49 25 24 19.4 osh-native-souffle
3 no-host configure.util-linux 14,165 8,884 5,758 30.1 bash
11 no-host configure.util-linux 14,996 9,000 6,476 30.3 dash
19 no-host configure.util-linux 31,863 21,223 11,726 30.0 osh-cpython
27 no-host configure.util-linux 14,587 8,724 6,047 30.1 osh-native
35 no-host configure.util-linux 14,533 8,779 5,941 30.1 osh-native-souffle
6 no-host configure.yash 1,831 1,064 776 24.4 bash
14 no-host configure.yash 1,791 1,049 746 24.4 dash
22 no-host configure.yash 2,496 1,564 974 24.4 osh-cpython
30 no-host configure.yash 1,845 1,093 756 24.4 osh-native
38 no-host configure.yash 1,875 1,088 790 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 33 24 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,549 0 0 0 16 0 40 0 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,770 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,094 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 108,372 0 0 0 8 0 1,991 110 bash
9 no-host bin-true 67,378 0 0 0 8 0 1,988 91 dash
17 no-host bin-true 772,146 0 0 0 8 0 1,997 110 osh-cpython
25 no-host bin-true 128,313 0 0 0 16 0 1,994 54 osh-native
33 no-host bin-true 125,243 0 0 0 16 0 1,987 128 osh-native-souffle
2 no-host configure.cpython 2,224,190 0 0 0 32,928 0 14,498 973 bash
10 no-host configure.cpython 2,243,024 0 0 0 32,992 0 14,694 912 dash
18 no-host configure.cpython 6,236,658 0 0 0 27,512 0 13,163 1,149 osh-cpython
26 no-host configure.cpython 2,223,405 0 0 0 27,520 0 13,248 1,131 osh-native
34 no-host configure.cpython 2,211,085 0 0 0 27,520 0 13,225 999 osh-native-souffle
4 no-host configure.ocaml 410,542 0 0 0 5,120 0 1,946 157 bash
12 no-host configure.ocaml 390,924 0 0 0 5,112 0 1,884 155 dash
20 no-host configure.ocaml 647,354 0 0 0 5,112 0 1,852 158 osh-cpython
28 no-host configure.ocaml 412,974 0 0 0 5,120 0 1,932 192 osh-native
36 no-host configure.ocaml 412,330 0 0 0 5,120 0 1,929 133 osh-native-souffle
5 no-host configure.tcc 6,555 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 24,005 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,933 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,929 0 0 0 104 0 47 9 osh-native-souffle
3 no-host configure.util-linux 2,106,610 0 0 0 42,400 0 18,615 1,121 bash
11 no-host configure.util-linux 2,257,490 0 0 0 42,584 0 17,410 1,034 dash
19 no-host configure.util-linux 5,380,374 12 0 0 39,112 0 16,953 1,255 osh-cpython
27 no-host configure.util-linux 1,997,910 0 0 0 39,120 0 16,959 942 osh-native
35 no-host configure.util-linux 1,988,527 3 0 0 39,128 0 16,949 924 osh-native-souffle
6 no-host configure.yash 256,043 0 0 0 4,120 0 864 79 bash
14 no-host configure.yash 244,754 0 0 0 3,720 0 870 91 dash
22 no-host configure.yash 388,213 0 0 0 3,728 0 852 89 osh-cpython
30 no-host configure.yash 257,963 0 0 0 3,736 0 850 76 osh-native
38 no-host configure.yash 257,779 0 0 0 3,736 0 852 91 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,944 0 0 0 8 0 7 3 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-2c9480a3
dash dash-0ebcf347
osh-cpython osh-487a74ff
osh-native osh-4f343eea
osh-native-souffle osh-dc7a16ae
host label host id
no-host no-host-556df3ee