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 477 22 21 24.58 1.12
bin-true no-host 675 544 2,337 820 824 3.46 1.21
configure.cpython no-host 15,410 15,383 29,474 15,607 15,710 1.91 1.01
configure.ocaml no-host 3,858 3,817 4,782 3,913 3,877 1.24 1.01
configure.tcc no-host 48 42 206 49 49 4.25 1.01
configure.util-linux no-host 14,425 15,260 32,226 14,948 14,692 2.23 1.04
configure.yash no-host 1,851 1,796 2,563 1,866 1,869 1.38 1.01
hello-world no-host 2 1 57 3 3 37.43 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,552 1,125 23,766 3,202 3,055 9.31 1.25
bin-true no-host 104,343 66,378 771,574 126,188 126,249 7.39 1.21
configure.cpython no-host 2,228,997 2,245,912 6,251,207 2,216,153 2,213,272 2.80 0.99
configure.ocaml no-host 410,347 390,457 647,339 413,661 412,346 1.58 1.01
configure.tcc no-host 6,536 5,478 24,095 6,969 6,891 3.69 1.07
configure.util-linux no-host 2,101,969 2,258,766 5,391,810 1,992,979 1,987,579 2.57 0.95
configure.yash no-host 256,084 244,707 389,316 257,643 257,853 1.52 1.01
hello-world no-host 154 86 3,950 343 339 25.65 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.7 5.06 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.9 6.37 2.77
configure.cpython no-host 27.5 27.4 27.3 27.4 27.5 0.99 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.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.0 30.3 1.00 0.99
configure.yash no-host 24.4 24.2 24.2 24.4 24.2 0.99 1.00
hello-world no-host 2.8 1.6 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 820 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,607 2 64 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,948 3 62 21.2 30.0 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,913 1 2 2.6 20.4 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,866 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 824 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,710 1 63 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,692 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,877 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.3 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.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.7 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 5 4.5 bash
15 no-host abuild-print-help 10 9 2 3.5 dash
23 no-host abuild-print-help 477 433 47 22.6 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 18 4 8.7 osh-native-souffle
1 no-host bin-true 675 517 190 2.9 bash
9 no-host bin-true 544 417 136 1.4 dash
17 no-host bin-true 2,337 1,548 1,055 18.4 osh-cpython
25 no-host bin-true 820 595 241 8.0 osh-native
33 no-host bin-true 824 578 263 7.9 osh-native-souffle
2 no-host configure.cpython 15,410 9,361 6,458 27.5 bash
10 no-host configure.cpython 15,383 9,471 6,339 27.4 dash
18 no-host configure.cpython 29,474 17,719 13,689 27.3 osh-cpython
26 no-host configure.cpython 15,607 9,311 6,559 27.4 osh-native
34 no-host configure.cpython 15,710 9,224 6,614 27.5 osh-native-souffle
4 no-host configure.ocaml 3,858 1,622 1,276 20.6 bash
12 no-host configure.ocaml 3,817 1,633 1,203 20.6 dash
20 no-host configure.ocaml 4,782 2,234 1,760 20.6 osh-cpython
28 no-host configure.ocaml 3,913 1,668 1,283 20.4 osh-native
36 no-host configure.ocaml 3,877 1,690 1,223 20.4 osh-native-souffle
5 no-host configure.tcc 48 33 16 19.3 bash
13 no-host configure.tcc 42 29 12 19.3 dash
21 no-host configure.tcc 206 160 48 19.3 osh-cpython
29 no-host configure.tcc 49 24 25 19.3 osh-native
37 no-host configure.tcc 49 29 20 19.3 osh-native-souffle
3 no-host configure.util-linux 14,425 9,224 5,679 30.3 bash
11 no-host configure.util-linux 15,260 9,258 6,486 30.1 dash
19 no-host configure.util-linux 32,226 21,535 11,819 30.3 osh-cpython
27 no-host configure.util-linux 14,948 8,828 6,097 30.0 osh-native
35 no-host configure.util-linux 14,692 8,860 6,023 30.3 osh-native-souffle
6 no-host configure.yash 1,851 1,118 743 24.4 bash
14 no-host configure.yash 1,796 1,043 757 24.2 dash
22 no-host configure.yash 2,563 1,570 1,037 24.2 osh-cpython
30 no-host configure.yash 1,866 1,086 784 24.4 osh-native
38 no-host configure.yash 1,869 1,073 798 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 27 30 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,552 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,125 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,766 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,055 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 104,343 0 0 0 8 0 1,992 59 bash
9 no-host bin-true 66,378 0 0 0 8 0 1,985 40 dash
17 no-host bin-true 771,574 0 0 0 8 0 1,997 222 osh-cpython
25 no-host bin-true 126,188 0 0 0 16 0 1,989 92 osh-native
33 no-host bin-true 126,249 0 0 0 16 0 1,986 95 osh-native-souffle
2 no-host configure.cpython 2,228,997 0 0 0 32,928 0 14,498 1,097 bash
10 no-host configure.cpython 2,245,912 0 0 0 32,992 0 14,584 963 dash
18 no-host configure.cpython 6,251,207 0 0 0 27,512 0 13,255 1,112 osh-cpython
26 no-host configure.cpython 2,216,153 0 0 0 27,520 0 13,250 1,032 osh-native
34 no-host configure.cpython 2,213,272 0 0 0 27,520 0 13,180 881 osh-native-souffle
4 no-host configure.ocaml 410,347 0 0 0 5,120 0 1,948 146 bash
12 no-host configure.ocaml 390,457 0 0 0 5,112 0 1,888 150 dash
20 no-host configure.ocaml 647,339 0 0 0 5,112 0 1,853 174 osh-cpython
28 no-host configure.ocaml 413,661 0 0 0 5,120 0 1,931 262 osh-native
36 no-host configure.ocaml 412,346 0 0 0 5,120 0 1,928 169 osh-native-souffle
5 no-host configure.tcc 6,536 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,095 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,891 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,101,969 0 0 0 42,400 0 18,610 1,023 bash
11 no-host configure.util-linux 2,258,766 0 0 0 42,584 0 17,470 1,229 dash
19 no-host configure.util-linux 5,391,810 12 0 0 39,112 0 16,930 1,365 osh-cpython
27 no-host configure.util-linux 1,992,979 1 0 0 39,120 0 16,950 942 osh-native
35 no-host configure.util-linux 1,987,579 0 0 0 39,136 0 16,948 941 osh-native-souffle
6 no-host configure.yash 256,084 0 0 0 4,120 0 871 102 bash
14 no-host configure.yash 244,707 0 0 0 3,720 0 870 88 dash
22 no-host configure.yash 389,316 0 0 0 3,728 0 850 91 osh-cpython
30 no-host configure.yash 257,643 0 0 0 3,736 0 855 75 osh-native
38 no-host configure.yash 257,853 0 0 0 3,736 0 854 92 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,950 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-48461962
dash dash-0ebcf347
osh-cpython osh-39e1cf25
osh-native osh-d1fd00ac
osh-native-souffle osh-f8035fee
host label host id
no-host no-host-556df3ee