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 9 466 22 21 24.43 1.16
bin-true no-host 677 542 2,308 814 803 3.41 1.20
configure.cpython no-host 15,024 15,124 28,782 15,159 15,313 1.92 1.01
configure.ocaml no-host 3,798 3,731 4,642 3,828 3,813 1.22 1.01
configure.tcc no-host 48 42 203 49 49 4.27 1.02
configure.util-linux no-host 13,987 14,823 31,479 14,431 14,301 2.25 1.03
configure.yash no-host 1,818 1,766 2,446 1,824 1,813 1.35 1.00
hello-world no-host 1 1 56 3 3 37.89 1.92

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,560 1,133 23,765 3,189 3,115 9.28 1.25
bin-true no-host 106,257 66,420 767,470 125,218 124,234 7.22 1.18
configure.cpython no-host 2,222,026 2,241,634 6,231,502 2,216,150 2,203,298 2.80 1.00
configure.ocaml no-host 410,853 390,959 647,347 412,656 412,197 1.58 1.00
configure.tcc no-host 6,578 5,484 24,008 6,991 6,909 3.65 1.06
configure.util-linux no-host 2,100,915 2,260,147 5,352,234 1,999,400 1,994,338 2.55 0.95
configure.yash no-host 256,165 244,590 387,887 258,354 257,858 1.51 1.01
hello-world no-host 152 80 3,927 347 341 25.84 2.28

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.7 9.0 8.7 5.09 2.03
bin-true no-host 3.0 1.4 18.5 8.4 7.7 6.14 2.78
configure.cpython no-host 27.4 27.4 27.5 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.4 19.4 19.4 19.1 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 25.4 0.99 1.00
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 814 1 2 2.6 8.4 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,159 1 59 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,431 2 58 21.2 30.3 2,702,513 45,898 65,711 108,691 1,320,585 1,273,237 32,239 41 131,422 1
configure.ocaml no-host 3,828 1 2 2.6 20.4 150,080 11,112 5,207 7,508 71,612 70,960 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,782 14,286 271 0 50,000 0
configure.yash no-host 1,824 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 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,527 57,233 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 803 1 2 2.6 7.7 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,313 1 61 14.9 27.3 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,301 3 60 21.2 30.1 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,813 1 2 2.6 20.4 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,813 1 2 2.5 25.4 139,412 7,962 6,624 5,991 70,287 63,134 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,527 57,231 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 9 8 2 3.4 dash
23 no-host abuild-print-help 466 412 57 22.7 osh-cpython
31 no-host abuild-print-help 22 17 5 9.0 osh-native
39 no-host abuild-print-help 21 20 2 8.7 osh-native-souffle
1 no-host bin-true 677 523 186 3.0 bash
9 no-host bin-true 542 410 140 1.4 dash
17 no-host bin-true 2,308 1,537 1,024 18.5 osh-cpython
25 no-host bin-true 814 575 253 8.4 osh-native
33 no-host bin-true 803 577 241 7.7 osh-native-souffle
2 no-host configure.cpython 15,024 8,973 6,452 27.4 bash
10 no-host configure.cpython 15,124 9,150 6,390 27.4 dash
18 no-host configure.cpython 28,782 17,787 12,837 27.5 osh-cpython
26 no-host configure.cpython 15,159 9,055 6,362 27.4 osh-native
34 no-host configure.cpython 15,313 9,081 6,346 27.3 osh-native-souffle
4 no-host configure.ocaml 3,798 1,628 1,206 20.6 bash
12 no-host configure.ocaml 3,731 1,622 1,123 20.6 dash
20 no-host configure.ocaml 4,642 2,253 1,601 20.6 osh-cpython
28 no-host configure.ocaml 3,828 1,562 1,302 20.4 osh-native
36 no-host configure.ocaml 3,813 1,541 1,305 20.4 osh-native-souffle
5 no-host configure.tcc 48 40 8 19.4 bash
13 no-host configure.tcc 42 24 18 19.4 dash
21 no-host configure.tcc 203 155 52 19.4 osh-cpython
29 no-host configure.tcc 49 25 24 19.4 osh-native
37 no-host configure.tcc 49 25 24 19.1 osh-native-souffle
3 no-host configure.util-linux 13,987 8,836 5,619 30.1 bash
11 no-host configure.util-linux 14,823 9,302 6,006 30.1 dash
19 no-host configure.util-linux 31,479 21,184 11,363 30.3 osh-cpython
27 no-host configure.util-linux 14,431 8,718 5,870 30.3 osh-native
35 no-host configure.util-linux 14,301 8,545 5,949 30.1 osh-native-souffle
6 no-host configure.yash 1,818 1,027 798 24.4 bash
14 no-host configure.yash 1,766 1,071 699 24.2 dash
22 no-host configure.yash 2,446 1,491 994 24.2 osh-cpython
30 no-host configure.yash 1,824 1,010 817 24.4 osh-native
38 no-host configure.yash 1,813 987 830 25.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 56 28 27 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,560 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,765 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,115 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,257 0 0 0 8 0 1,993 46 bash
9 no-host bin-true 66,420 0 0 0 8 0 1,991 36 dash
17 no-host bin-true 767,470 0 0 0 8 0 1,993 478 osh-cpython
25 no-host bin-true 125,218 0 0 0 16 0 1,987 61 osh-native
33 no-host bin-true 124,234 0 0 0 16 0 1,991 44 osh-native-souffle
2 no-host configure.cpython 2,222,026 0 0 0 32,928 0 14,569 1,024 bash
10 no-host configure.cpython 2,241,634 0 0 0 32,992 0 14,675 1,299 dash
18 no-host configure.cpython 6,231,502 1 0 0 27,512 0 13,235 1,188 osh-cpython
26 no-host configure.cpython 2,216,150 0 0 0 27,520 0 13,210 1,053 osh-native
34 no-host configure.cpython 2,203,298 1 0 0 27,520 0 13,187 963 osh-native-souffle
4 no-host configure.ocaml 410,853 0 0 0 5,120 0 1,951 153 bash
12 no-host configure.ocaml 390,959 0 0 0 5,112 0 1,879 140 dash
20 no-host configure.ocaml 647,347 0 0 0 5,112 0 1,860 174 osh-cpython
28 no-host configure.ocaml 412,656 0 0 0 5,120 0 1,932 203 osh-native
36 no-host configure.ocaml 412,197 0 0 0 5,120 0 1,925 149 osh-native-souffle
5 no-host configure.tcc 6,578 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,008 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,991 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,909 0 0 0 104 0 46 4 osh-native-souffle
3 no-host configure.util-linux 2,100,915 0 0 0 42,400 0 18,387 953 bash
11 no-host configure.util-linux 2,260,147 2 0 0 42,584 0 17,452 1,002 dash
19 no-host configure.util-linux 5,352,234 12 0 0 39,120 0 17,083 1,137 osh-cpython
27 no-host configure.util-linux 1,999,400 1 0 0 39,120 0 16,992 985 osh-native
35 no-host configure.util-linux 1,994,338 0 0 0 39,128 0 16,980 972 osh-native-souffle
6 no-host configure.yash 256,165 0 0 0 4,120 0 874 75 bash
14 no-host configure.yash 244,590 0 0 0 3,720 0 867 86 dash
22 no-host configure.yash 387,887 0 0 0 3,728 0 853 81 osh-cpython
30 no-host configure.yash 258,354 0 0 0 3,736 0 852 67 osh-native
38 no-host configure.yash 257,858 0 0 0 3,736 0 851 77 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,927 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 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-6cea9326
dash dash-0ebcf347
osh-cpython osh-8abfa891
osh-native osh-dc311720
osh-native-souffle osh-9ccb9d25
host label host id
no-host no-host-556df3ee