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 20 10 480 22 21 24.09 1.11
bin-true no-host 675 554 2,361 824 806 3.50 1.22
configure.cpython no-host 15,390 15,636 30,055 15,601 15,966 1.95 1.01
configure.ocaml no-host 3,869 3,841 4,904 3,900 3,903 1.27 1.01
configure.tcc no-host 49 42 214 50 49 4.41 1.02
configure.util-linux no-host 14,271 15,392 33,530 14,707 14,830 2.35 1.03
configure.yash no-host 1,856 1,801 2,557 1,900 1,869 1.38 1.02
hello-world no-host 2 1 58 3 3 36.15 2.06

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,561 1,085 23,658 3,209 3,109 9.24 1.25
bin-true no-host 103,333 65,466 773,702 125,242 124,277 7.49 1.21
configure.cpython no-host 2,219,818 2,243,248 6,211,040 2,224,650 2,206,242 2.80 1.00
configure.ocaml no-host 410,705 391,447 647,942 413,350 412,363 1.58 1.01
configure.tcc no-host 6,548 5,468 24,072 6,936 6,888 3.68 1.06
configure.util-linux no-host 2,100,915 2,256,653 5,381,660 1,990,156 1,988,726 2.56 0.95
configure.yash no-host 256,555 244,703 388,669 257,839 257,428 1.51 1.01
hello-world no-host 151 84 3,950 340 341 26.16 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.2 8.5 5.06 2.06
bin-true no-host 3.0 1.4 18.4 8.1 7.9 6.09 2.70
configure.cpython no-host 27.3 27.5 27.1 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.4 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 25.4 24.4 1.00 1.04
hello-world no-host 2.8 1.4 18.2 6.3 6.0 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 824 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,601 2 65 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,707 3 66 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,900 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,900 1 2 2.5 25.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.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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 806 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,966 1 64 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,830 3 64 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,903 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,869 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.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 20 15 6 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 480 441 42 22.6 osh-cpython
31 no-host abuild-print-help 22 17 6 9.2 osh-native
39 no-host abuild-print-help 21 17 5 8.5 osh-native-souffle
1 no-host bin-true 675 513 192 3.0 bash
9 no-host bin-true 554 426 137 1.4 dash
17 no-host bin-true 2,361 1,522 1,115 18.4 osh-cpython
25 no-host bin-true 824 582 257 8.1 osh-native
33 no-host bin-true 806 581 241 7.9 osh-native-souffle
2 no-host configure.cpython 15,390 9,196 6,581 27.3 bash
10 no-host configure.cpython 15,636 9,160 6,878 27.5 dash
18 no-host configure.cpython 30,055 18,233 13,802 27.1 osh-cpython
26 no-host configure.cpython 15,601 9,268 6,594 27.3 osh-native
34 no-host configure.cpython 15,966 9,083 6,940 27.4 osh-native-souffle
4 no-host configure.ocaml 3,869 1,603 1,301 20.6 bash
12 no-host configure.ocaml 3,841 1,631 1,230 20.4 dash
20 no-host configure.ocaml 4,904 2,270 1,863 20.6 osh-cpython
28 no-host configure.ocaml 3,900 1,742 1,196 20.6 osh-native
36 no-host configure.ocaml 3,903 1,666 1,274 20.6 osh-native-souffle
5 no-host configure.tcc 49 35 14 19.4 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 214 154 63 19.3 osh-cpython
29 no-host configure.tcc 50 33 17 19.4 osh-native
37 no-host configure.tcc 49 22 27 19.4 osh-native-souffle
3 no-host configure.util-linux 14,271 9,005 5,730 30.1 bash
11 no-host configure.util-linux 15,392 9,242 6,651 30.3 dash
19 no-host configure.util-linux 33,530 22,290 12,411 30.3 osh-cpython
27 no-host configure.util-linux 14,707 8,690 6,204 30.3 osh-native
35 no-host configure.util-linux 14,830 8,904 6,113 30.3 osh-native-souffle
6 no-host configure.yash 1,856 1,072 793 24.4 bash
14 no-host configure.yash 1,801 1,093 712 24.4 dash
22 no-host configure.yash 2,557 1,545 1,056 24.4 osh-cpython
30 no-host configure.yash 1,900 1,090 800 25.4 osh-native
38 no-host configure.yash 1,869 1,102 771 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 58 37 20 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 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,561 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,658 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 103,333 0 0 0 8 0 1,995 62 bash
9 no-host bin-true 65,466 0 0 0 8 0 1,982 35 dash
17 no-host bin-true 773,702 0 0 0 8 0 1,999 291 osh-cpython
25 no-host bin-true 125,242 0 0 0 16 0 1,993 177 osh-native
33 no-host bin-true 124,277 0 0 0 16 0 1,988 54 osh-native-souffle
2 no-host configure.cpython 2,219,818 0 0 0 32,928 0 14,485 1,217 bash
10 no-host configure.cpython 2,243,248 0 0 0 32,992 0 14,616 1,004 dash
18 no-host configure.cpython 6,211,040 1 0 0 27,512 0 13,200 1,095 osh-cpython
26 no-host configure.cpython 2,224,650 1 0 0 27,520 0 13,188 923 osh-native
34 no-host configure.cpython 2,206,242 2 0 0 27,520 0 13,275 1,032 osh-native-souffle
4 no-host configure.ocaml 410,705 0 0 0 5,120 0 1,961 140 bash
12 no-host configure.ocaml 391,447 0 0 0 5,112 0 1,900 150 dash
20 no-host configure.ocaml 647,942 0 0 0 5,112 0 1,852 182 osh-cpython
28 no-host configure.ocaml 413,350 0 0 0 5,120 0 1,929 160 osh-native
36 no-host configure.ocaml 412,363 0 0 0 5,120 0 1,935 150 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 48 5 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,072 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,936 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,888 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,100,915 0 0 0 42,400 0 18,588 989 bash
11 no-host configure.util-linux 2,256,653 0 0 0 42,584 0 17,367 1,049 dash
19 no-host configure.util-linux 5,381,660 8 0 0 39,120 0 16,955 1,248 osh-cpython
27 no-host configure.util-linux 1,990,156 1 0 0 39,120 0 16,990 879 osh-native
35 no-host configure.util-linux 1,988,726 0 0 0 39,136 0 16,944 988 osh-native-souffle
6 no-host configure.yash 256,555 0 0 0 4,120 0 870 76 bash
14 no-host configure.yash 244,703 0 0 0 3,720 0 870 76 dash
22 no-host configure.yash 388,669 0 0 0 3,728 0 852 97 osh-cpython
30 no-host configure.yash 257,839 0 0 0 3,736 0 850 86 osh-native
38 no-host configure.yash 257,428 0 0 0 3,736 0 853 86 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,950 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b9b131b0
dash dash-0ebcf347
osh-cpython osh-9a3d986e
osh-native osh-58013c2f
osh-native-souffle osh-601b00b7
host label host id
no-host no-host-556df3ee