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 22 9 454 22 21 20.43 0.99
bin-true no-host 678 540 2,283 813 824 3.37 1.20
configure.cpython no-host 15,165 15,154 28,881 15,388 15,383 1.90 1.01
configure.ocaml no-host 3,813 3,783 4,661 3,866 3,847 1.22 1.01
configure.tcc no-host 47 42 198 49 49 4.18 1.04
configure.util-linux no-host 14,044 14,913 31,768 14,541 14,371 2.26 1.04
configure.yash no-host 1,827 1,785 2,469 1,889 1,829 1.35 1.03
hello-world no-host 2 1 49 3 3 27.86 1.63

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,531 1,106 23,359 3,173 3,106 9.23 1.25
bin-true no-host 108,367 65,446 778,988 125,830 128,763 7.19 1.16
configure.cpython no-host 2,226,889 2,243,832 6,221,545 2,225,169 2,223,233 2.79 1.00
configure.ocaml no-host 410,573 390,778 646,745 413,372 412,255 1.58 1.01
configure.tcc no-host 6,566 5,498 23,656 6,979 6,911 3.60 1.06
configure.util-linux no-host 2,103,296 2,265,565 5,367,532 1,997,610 1,993,181 2.55 0.95
configure.yash no-host 256,727 244,416 388,608 257,880 257,214 1.51 1.00
hello-world no-host 153 80 3,735 352 342 24.41 2.30

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.5 21.8 9.0 8.7 5.03 2.09
bin-true no-host 3.0 1.4 17.7 8.0 7.7 5.87 2.65
configure.cpython no-host 27.4 27.4 27.4 27.5 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.4 30.0 30.4 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.6 6.3 5.9 6.38 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,775 3,775 0 696 1,852 1,227 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.0 154,740 13,220 2,877 9,746 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,388 1 62 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,541 3 62 21.3 30.3 2,703,490 29,146 65,890 109,677 1,320,579 1,273,234 27,391 41 131,780 1
configure.ocaml no-host 3,866 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 49 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,889 1 2 2.6 24.4 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.9 3,774 3,774 0 697 1,852 1,225 2 0 50,000 0
bin-true no-host 824 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 15,383 2 61 14.9 27.3 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,371 3 60 21.3 30.1 2,703,490 42,741 65,828 109,679 1,320,579 1,273,232 27,391 41 131,656 1
configure.ocaml no-host 3,847 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 49 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,829 1 2 2.6 24.4 139,749 7,958 6,617 6,340 70,281 63,128 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 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 22 12 8 4.3 bash
15 no-host abuild-print-help 9 6 4 3.5 dash
23 no-host abuild-print-help 454 400 58 21.8 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 678 505 205 3.0 bash
9 no-host bin-true 540 415 136 1.4 dash
17 no-host bin-true 2,283 1,486 1,068 17.7 osh-cpython
25 no-host bin-true 813 565 264 8.0 osh-native
33 no-host bin-true 824 571 268 7.7 osh-native-souffle
2 no-host configure.cpython 15,165 9,148 6,425 27.4 bash
10 no-host configure.cpython 15,154 9,223 6,351 27.4 dash
18 no-host configure.cpython 28,881 17,587 13,194 27.4 osh-cpython
26 no-host configure.cpython 15,388 9,141 6,506 27.5 osh-native
34 no-host configure.cpython 15,383 8,780 6,792 27.3 osh-native-souffle
4 no-host configure.ocaml 3,813 1,706 1,149 20.6 bash
12 no-host configure.ocaml 3,783 1,663 1,138 20.6 dash
20 no-host configure.ocaml 4,661 2,302 1,573 20.6 osh-cpython
28 no-host configure.ocaml 3,866 1,673 1,233 20.6 osh-native
36 no-host configure.ocaml 3,847 1,676 1,203 20.6 osh-native-souffle
5 no-host configure.tcc 47 34 14 19.3 bash
13 no-host configure.tcc 42 29 13 19.4 dash
21 no-host configure.tcc 198 132 70 19.3 osh-cpython
29 no-host configure.tcc 49 22 27 19.3 osh-native
37 no-host configure.tcc 49 33 17 19.4 osh-native-souffle
3 no-host configure.util-linux 14,044 8,846 5,680 30.4 bash
11 no-host configure.util-linux 14,913 9,078 6,332 30.0 dash
19 no-host configure.util-linux 31,768 21,155 11,750 30.4 osh-cpython
27 no-host configure.util-linux 14,541 8,665 6,075 30.3 osh-native
35 no-host configure.util-linux 14,371 8,541 6,014 30.1 osh-native-souffle
6 no-host configure.yash 1,827 1,043 792 24.4 bash
14 no-host configure.yash 1,785 1,060 728 24.2 dash
22 no-host configure.yash 2,469 1,545 968 24.4 osh-cpython
30 no-host configure.yash 1,889 1,089 804 24.4 osh-native
38 no-host configure.yash 1,829 1,012 821 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 37 12 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 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,531 0 0 0 16 0 42 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,359 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,106 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 108,367 0 0 0 8 0 1,992 48 bash
9 no-host bin-true 65,446 0 0 0 8 0 1,988 87 dash
17 no-host bin-true 778,988 0 0 0 8 0 1,990 175 osh-cpython
25 no-host bin-true 125,830 0 0 0 16 0 1,991 74 osh-native
33 no-host bin-true 128,763 0 0 0 16 0 1,994 180 osh-native-souffle
2 no-host configure.cpython 2,226,889 0 0 0 32,928 0 14,515 1,010 bash
10 no-host configure.cpython 2,243,832 0 0 0 32,992 0 14,550 1,107 dash
18 no-host configure.cpython 6,221,545 0 0 0 27,512 0 13,150 1,262 osh-cpython
26 no-host configure.cpython 2,225,169 0 0 0 27,520 0 13,246 1,104 osh-native
34 no-host configure.cpython 2,223,233 0 0 0 27,520 0 13,251 1,090 osh-native-souffle
4 no-host configure.ocaml 410,573 0 0 0 5,120 0 1,947 169 bash
12 no-host configure.ocaml 390,778 0 0 0 5,112 0 1,905 146 dash
20 no-host configure.ocaml 646,745 1 0 0 5,112 0 1,854 179 osh-cpython
28 no-host configure.ocaml 413,372 0 0 0 5,120 0 1,936 154 osh-native
36 no-host configure.ocaml 412,255 0 0 0 5,120 0 1,931 242 osh-native-souffle
5 no-host configure.tcc 6,566 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,498 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,656 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,911 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,103,296 0 0 0 42,400 0 18,618 943 bash
11 no-host configure.util-linux 2,265,565 0 0 0 42,584 0 17,406 1,110 dash
19 no-host configure.util-linux 5,367,532 14 0 0 39,120 0 17,081 1,237 osh-cpython
27 no-host configure.util-linux 1,997,610 0 0 0 39,120 0 16,946 1,033 osh-native
35 no-host configure.util-linux 1,993,181 0 0 0 39,128 0 16,953 978 osh-native-souffle
6 no-host configure.yash 256,727 0 0 0 4,120 0 869 91 bash
14 no-host configure.yash 244,416 0 0 0 3,720 0 868 79 dash
22 no-host configure.yash 388,608 0 0 0 3,728 0 853 86 osh-cpython
30 no-host configure.yash 257,880 0 0 0 3,736 0 851 84 osh-native
38 no-host configure.yash 257,214 0 0 0 3,736 0 847 68 osh-native-souffle
0 no-host hello-world 153 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,735 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8f0593a1
dash dash-0ebcf347
osh-cpython osh-c731274f
osh-native osh-12b7a1e2
osh-native-souffle osh-e0366c4e
host label host id
no-host no-host-556df3ee