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 461 23 23 23.98 1.20
bin-true no-host 673 543 2,295 807 811 3.41 1.20
configure.cpython no-host 14,984 15,112 28,735 15,192 15,753 1.92 1.01
configure.ocaml no-host 3,813 3,742 4,639 3,886 3,901 1.22 1.02
configure.tcc no-host 48 42 201 53 49 4.20 1.10
configure.util-linux no-host 13,986 15,117 31,117 14,564 14,722 2.22 1.04
configure.yash no-host 1,827 1,785 2,453 1,869 1,886 1.34 1.02
hello-world no-host 2 1 56 3 3 37.58 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,561 1,108 23,735 3,160 3,071 9.27 1.23
bin-true no-host 106,410 67,489 771,583 126,181 125,245 7.25 1.19
configure.cpython no-host 2,224,358 2,239,861 6,217,859 2,210,474 2,202,023 2.80 0.99
configure.ocaml no-host 410,331 390,920 646,581 412,015 412,736 1.58 1.00
configure.tcc no-host 6,542 5,483 24,055 6,978 6,908 3.68 1.07
configure.util-linux no-host 2,106,543 2,262,728 5,377,676 1,990,729 1,987,131 2.55 0.95
configure.yash no-host 256,295 244,544 389,053 258,440 258,274 1.52 1.01
hello-world no-host 154 83 3,946 342 338 25.62 2.22

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.7 8.9 8.4 5.09 2.00
bin-true no-host 3.0 1.6 18.4 7.7 7.7 6.09 2.57
configure.cpython no-host 27.5 27.4 27.4 27.5 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.3 19.3 19.4 19.3 19.4 1.01 1.00
configure.util-linux no-host 30.0 30.0 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.5 0.99 0.99
hello-world no-host 2.8 1.4 18.2 6.2 5.9 6.62 2.24

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.7 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,192 2 62 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,564 3 63 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,886 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 53 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,869 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 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 811 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,753 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,722 3 66 21.2 30.1 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,901 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,886 1 2 2.5 24.5 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 23 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 17 3 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 461 406 58 22.7 osh-cpython
31 no-host abuild-print-help 23 18 5 8.9 osh-native
39 no-host abuild-print-help 23 12 11 8.4 osh-native-souffle
1 no-host bin-true 673 500 207 3.0 bash
9 no-host bin-true 543 428 125 1.6 dash
17 no-host bin-true 2,295 1,447 1,108 18.4 osh-cpython
25 no-host bin-true 807 573 252 7.7 osh-native
33 no-host bin-true 811 574 256 7.7 osh-native-souffle
2 no-host configure.cpython 14,984 8,959 6,417 27.5 bash
10 no-host configure.cpython 15,112 9,258 6,265 27.4 dash
18 no-host configure.cpython 28,735 17,636 12,960 27.4 osh-cpython
26 no-host configure.cpython 15,192 8,903 6,544 27.5 osh-native
34 no-host configure.cpython 15,753 9,016 6,854 27.4 osh-native-souffle
4 no-host configure.ocaml 3,813 1,621 1,222 20.6 bash
12 no-host configure.ocaml 3,742 1,595 1,166 20.4 dash
20 no-host configure.ocaml 4,639 2,237 1,611 20.6 osh-cpython
28 no-host configure.ocaml 3,886 1,662 1,263 20.6 osh-native
36 no-host configure.ocaml 3,901 1,676 1,264 20.6 osh-native-souffle
5 no-host configure.tcc 48 38 10 19.3 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 201 139 66 19.4 osh-cpython
29 no-host configure.tcc 53 35 18 19.3 osh-native
37 no-host configure.tcc 49 24 25 19.4 osh-native-souffle
3 no-host configure.util-linux 13,986 8,702 5,752 30.0 bash
11 no-host configure.util-linux 15,117 9,336 6,272 30.0 dash
19 no-host configure.util-linux 31,117 21,194 10,993 30.1 osh-cpython
27 no-host configure.util-linux 14,564 8,789 5,973 30.1 osh-native
35 no-host configure.util-linux 14,722 8,881 6,029 30.1 osh-native-souffle
6 no-host configure.yash 1,827 1,014 821 24.4 bash
14 no-host configure.yash 1,785 1,009 778 24.4 dash
22 no-host configure.yash 2,453 1,521 973 24.2 osh-cpython
30 no-host configure.yash 1,869 1,053 820 24.2 osh-native
38 no-host configure.yash 1,886 1,077 805 24.5 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 32 24 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,561 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,735 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,071 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,410 0 0 0 8 0 1,990 127 bash
9 no-host bin-true 67,489 0 0 0 8 0 1,984 41 dash
17 no-host bin-true 771,583 0 0 0 8 0 1,999 146 osh-cpython
25 no-host bin-true 126,181 0 0 0 16 0 1,989 57 osh-native
33 no-host bin-true 125,245 0 0 0 16 0 1,983 57 osh-native-souffle
2 no-host configure.cpython 2,224,358 0 0 0 32,928 0 14,545 1,056 bash
10 no-host configure.cpython 2,239,861 0 0 0 32,992 0 14,580 987 dash
18 no-host configure.cpython 6,217,859 0 0 0 27,512 0 13,218 1,090 osh-cpython
26 no-host configure.cpython 2,210,474 0 0 0 27,520 0 13,268 1,048 osh-native
34 no-host configure.cpython 2,202,023 0 0 0 27,520 0 13,241 890 osh-native-souffle
4 no-host configure.ocaml 410,331 0 0 0 5,120 0 1,964 164 bash
12 no-host configure.ocaml 390,920 0 0 0 5,112 0 1,893 157 dash
20 no-host configure.ocaml 646,581 0 0 0 5,112 0 1,855 165 osh-cpython
28 no-host configure.ocaml 412,015 0 0 0 5,120 0 1,932 167 osh-native
36 no-host configure.ocaml 412,736 0 0 0 5,120 0 1,923 143 osh-native-souffle
5 no-host configure.tcc 6,542 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,055 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,908 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,106,543 2 0 0 42,408 0 18,579 1,077 bash
11 no-host configure.util-linux 2,262,728 3 0 0 42,592 0 17,447 1,004 dash
19 no-host configure.util-linux 5,377,676 6 0 0 39,112 0 16,964 1,188 osh-cpython
27 no-host configure.util-linux 1,990,729 1 0 0 39,120 0 16,988 935 osh-native
35 no-host configure.util-linux 1,987,131 0 0 0 39,136 0 16,982 1,067 osh-native-souffle
6 no-host configure.yash 256,295 0 0 0 4,120 0 870 79 bash
14 no-host configure.yash 244,544 0 0 0 3,720 0 869 75 dash
22 no-host configure.yash 389,053 0 0 0 3,728 0 854 81 osh-cpython
30 no-host configure.yash 258,440 0 0 0 3,736 0 850 100 osh-native
38 no-host configure.yash 258,274 0 0 0 3,736 0 843 89 osh-native-souffle
0 no-host hello-world 154 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,946 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c70ac8ec
dash dash-0ebcf347
osh-cpython osh-d21012a6
osh-native osh-06ad526b
osh-native-souffle osh-2ca063f4
host label host id
no-host no-host-556df3ee