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 464 22 23 24.36 1.18
bin-true no-host 685 554 2,364 820 822 3.45 1.20
configure.cpython no-host 15,630 15,721 29,657 15,950 16,023 1.90 1.02
configure.ocaml no-host 3,918 3,847 4,819 3,946 3,941 1.23 1.01
configure.tcc no-host 49 43 203 52 50 4.18 1.07
configure.util-linux no-host 14,535 15,459 32,552 14,917 14,938 2.24 1.03
configure.yash no-host 1,890 1,836 2,551 1,898 1,886 1.35 1.00
hello-world no-host 2 1 55 3 3 35.18 1.82

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,524 1,140 23,251 3,165 3,050 9.21 1.25
bin-true no-host 103,402 66,511 772,533 126,835 127,901 7.47 1.23
configure.cpython no-host 2,219,541 2,240,438 6,222,482 2,230,771 2,211,534 2.80 1.01
configure.ocaml no-host 410,296 391,307 646,995 413,004 412,881 1.58 1.01
configure.tcc no-host 6,574 5,462 23,638 6,978 6,917 3.60 1.06
configure.util-linux no-host 2,108,638 2,258,580 5,350,003 2,000,885 1,994,803 2.54 0.95
configure.yash no-host 256,635 244,136 388,800 257,957 258,140 1.51 1.01
hello-world no-host 150 79 3,739 348 346 24.93 2.32

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.3 3.4 22.2 9.0 8.4 5.12 2.09
bin-true no-host 3.0 1.4 17.7 8.1 7.7 5.87 2.70
configure.cpython no-host 27.4 27.3 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.1 19.3 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.3 30.4 30.1 1.00 1.01
configure.yash no-host 24.4 24.2 24.5 24.2 24.2 1.01 0.99
hello-world no-host 2.6 1.4 17.6 6.2 5.8 6.70 2.35

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,775 3,775 0 696 1,852 1,227 2 0 50,000 0
bin-true no-host 820 1 2 2.6 8.1 154,740 13,220 2,877 9,746 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,950 1 66 15.0 27.5 1,772,722 49,854 28,587 86,399 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,917 3 65 21.3 30.4 2,703,490 29,745 65,870 109,677 1,320,579 1,273,234 27,391 41 131,740 1
configure.ocaml no-host 3,946 1 2 2.6 20.6 150,096 11,051 5,221 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,898 1 2 2.6 24.2 139,749 8,020 6,679 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,324 64,530 42,740 4,573 54,521 57,230 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.8 3,774 3,774 0 697 1,852 1,225 2 0 50,000 0
bin-true no-host 822 1 2 2.6 7.7 154,739 13,063 2,815 9,747 78,321 66,671 3,008 3 50,000 0
configure.cpython no-host 16,023 1 66 14.9 27.4 1,772,721 49,105 28,525 86,400 908,073 778,248 22,694 60 50,000 0
configure.util-linux no-host 14,938 3 65 21.3 30.1 2,703,490 42,741 65,808 109,679 1,320,579 1,273,232 27,391 41 131,616 1
configure.ocaml no-host 3,941 1 2 2.6 20.6 150,096 10,989 5,159 7,535 71,606 70,955 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,581 30,581 0 1,524 14,776 14,281 226 0 50,000 0
configure.yash no-host 1,886 1 2 2.6 24.2 139,749 7,958 6,617 6,340 70,281 63,128 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.4 116,323 64,468 42,678 4,574 54,521 57,228 270 3 85,356 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 12 8 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 464 424 43 22.2 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 23 11 12 8.4 osh-native-souffle
1 no-host bin-true 685 513 204 3.0 bash
9 no-host bin-true 554 420 143 1.4 dash
17 no-host bin-true 2,364 1,545 1,090 17.7 osh-cpython
25 no-host bin-true 820 586 249 8.1 osh-native
33 no-host bin-true 822 611 225 7.7 osh-native-souffle
2 no-host configure.cpython 15,630 9,426 6,620 27.4 bash
10 no-host configure.cpython 15,721 9,520 6,640 27.3 dash
18 no-host configure.cpython 29,657 17,862 13,734 27.3 osh-cpython
26 no-host configure.cpython 15,950 9,469 6,765 27.5 osh-native
34 no-host configure.cpython 16,023 9,371 6,751 27.4 osh-native-souffle
4 no-host configure.ocaml 3,918 1,629 1,329 20.6 bash
12 no-host configure.ocaml 3,847 1,626 1,240 20.6 dash
20 no-host configure.ocaml 4,819 2,407 1,636 20.4 osh-cpython
28 no-host configure.ocaml 3,946 1,680 1,304 20.6 osh-native
36 no-host configure.ocaml 3,941 1,748 1,230 20.6 osh-native-souffle
5 no-host configure.tcc 49 29 20 19.1 bash
13 no-host configure.tcc 43 27 16 19.3 dash
21 no-host configure.tcc 203 143 63 19.3 osh-cpython
29 no-host configure.tcc 52 32 20 19.3 osh-native
37 no-host configure.tcc 50 30 20 19.4 osh-native-souffle
3 no-host configure.util-linux 14,535 9,119 5,919 30.1 bash
11 no-host configure.util-linux 15,459 9,634 6,335 30.3 dash
19 no-host configure.util-linux 32,552 21,514 12,191 30.3 osh-cpython
27 no-host configure.util-linux 14,917 8,945 6,178 30.4 osh-native
35 no-host configure.util-linux 14,938 8,961 6,180 30.1 osh-native-souffle
6 no-host configure.yash 1,890 1,103 797 24.4 bash
14 no-host configure.yash 1,836 995 844 24.2 dash
22 no-host configure.yash 2,551 1,584 1,013 24.5 osh-cpython
30 no-host configure.yash 1,898 1,041 861 24.2 osh-native
38 no-host configure.yash 1,886 1,071 818 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 55 30 25 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 0 3 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,524 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,140 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,251 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,050 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 103,402 0 0 0 8 0 1,991 49 bash
9 no-host bin-true 66,511 0 0 0 8 0 1,993 135 dash
17 no-host bin-true 772,533 0 0 0 8 0 1,998 310 osh-cpython
25 no-host bin-true 126,835 0 0 0 16 0 1,991 156 osh-native
33 no-host bin-true 127,901 0 0 0 16 0 1,989 51 osh-native-souffle
2 no-host configure.cpython 2,219,541 0 0 0 32,928 0 14,509 1,067 bash
10 no-host configure.cpython 2,240,438 1 0 0 32,992 0 14,606 1,107 dash
18 no-host configure.cpython 6,222,482 0 0 0 27,512 0 13,257 1,276 osh-cpython
26 no-host configure.cpython 2,230,771 0 0 0 27,520 0 13,254 1,004 osh-native
34 no-host configure.cpython 2,211,534 0 0 0 27,520 0 13,215 1,089 osh-native-souffle
4 no-host configure.ocaml 410,296 0 0 0 5,120 0 1,950 153 bash
12 no-host configure.ocaml 391,307 0 0 0 5,112 0 1,910 154 dash
20 no-host configure.ocaml 646,995 1 0 0 5,112 0 1,855 259 osh-cpython
28 no-host configure.ocaml 413,004 0 0 0 5,120 0 1,919 178 osh-native
36 no-host configure.ocaml 412,881 0 0 0 5,120 0 1,925 178 osh-native-souffle
5 no-host configure.tcc 6,574 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,462 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,638 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,917 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,108,638 1 0 0 42,408 0 18,685 1,070 bash
11 no-host configure.util-linux 2,258,580 0 0 0 42,592 0 17,468 1,165 dash
19 no-host configure.util-linux 5,350,003 5 0 0 39,120 0 16,936 1,296 osh-cpython
27 no-host configure.util-linux 2,000,885 0 0 0 39,128 0 17,085 1,093 osh-native
35 no-host configure.util-linux 1,994,803 3 0 0 39,136 0 16,965 1,143 osh-native-souffle
6 no-host configure.yash 256,635 0 0 0 4,120 0 867 90 bash
14 no-host configure.yash 244,136 0 0 0 3,720 0 865 79 dash
22 no-host configure.yash 388,800 0 0 0 3,728 0 849 96 osh-cpython
30 no-host configure.yash 257,957 0 0 0 3,736 0 848 97 osh-native
38 no-host configure.yash 258,140 0 0 0 3,736 0 849 80 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,739 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-f785eebc
dash dash-0ebcf347
osh-cpython osh-4866927e
osh-native osh-e26e86c4
osh-native-souffle osh-f64e80eb
host label host id
no-host no-host-556df3ee