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 459 55 21 24.16 2.90
bin-true no-host 681 539 2,297 819 815 3.37 1.20
configure.cpython no-host 15,004 15,058 29,381 15,211 15,290 1.96 1.01
configure.ocaml no-host 3,818 3,750 4,637 3,822 3,795 1.21 1.00
configure.tcc no-host 48 41 196 48 48 4.11 1.01
configure.util-linux no-host 13,991 14,843 33,394 14,319 14,344 2.39 1.02
configure.yash no-host 1,805 1,775 2,465 1,834 1,828 1.37 1.02
hello-world no-host 1 1 49 3 6 33.73 1.95

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,547 1,109 23,416 3,139 3,129 9.19 1.23
bin-true no-host 104,374 66,373 777,960 127,867 125,925 7.45 1.23
configure.cpython no-host 2,220,805 2,235,878 6,227,541 2,215,774 2,215,361 2.80 1.00
configure.ocaml no-host 410,372 391,525 645,267 413,147 411,271 1.57 1.01
configure.tcc no-host 6,558 5,483 23,714 6,942 6,951 3.62 1.06
configure.util-linux no-host 2,101,393 2,259,966 5,367,678 2,004,316 1,996,284 2.55 0.95
configure.yash no-host 256,133 245,004 387,604 258,430 257,999 1.51 1.01
hello-world no-host 150 82 3,747 350 345 24.98 2.33

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.8 5.12 2.09
bin-true no-host 3.0 1.4 17.6 8.0 7.6 5.83 2.65
configure.cpython no-host 27.5 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.7 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.4 30.1 30.4 1.01 1.00
configure.yash no-host 24.2 24.5 24.4 24.4 24.5 1.01 1.01
hello-world no-host 2.8 1.6 17.7 6.3 5.9 6.42 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,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 819 1 2 2.6 8.0 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,211 1 62 15.0 27.4 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,319 4 60 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,584 1,273,235 27,391 41 131,794 1
configure.ocaml no-host 3,822 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,834 1 2 2.6 24.4 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 55 1 4 2.8 9.0 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 6 0 0 0.2 5.9 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 815 1 2 2.6 7.6 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,290 1 61 14.9 27.3 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,344 3 61 21.3 30.4 2,703,495 42,748 65,835 109,678 1,320,584 1,273,233 27,391 41 131,670 1
configure.ocaml no-host 3,795 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,828 1 2 2.6 24.5 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 459 402 60 22.2 osh-cpython
31 no-host abuild-print-help 55 30 26 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.8 osh-native-souffle
1 no-host bin-true 681 497 214 3.0 bash
9 no-host bin-true 539 415 133 1.4 dash
17 no-host bin-true 2,297 1,491 1,075 17.6 osh-cpython
25 no-host bin-true 819 603 231 8.0 osh-native
33 no-host bin-true 815 598 232 7.6 osh-native-souffle
2 no-host configure.cpython 15,004 9,144 6,265 27.5 bash
10 no-host configure.cpython 15,058 9,089 6,392 27.4 dash
18 no-host configure.cpython 29,381 17,812 13,480 27.4 osh-cpython
26 no-host configure.cpython 15,211 9,075 6,405 27.4 osh-native
34 no-host configure.cpython 15,290 8,866 6,561 27.3 osh-native-souffle
4 no-host configure.ocaml 3,818 1,606 1,246 20.6 bash
12 no-host configure.ocaml 3,750 1,566 1,203 20.7 dash
20 no-host configure.ocaml 4,637 2,316 1,534 20.6 osh-cpython
28 no-host configure.ocaml 3,822 1,667 1,196 20.6 osh-native
36 no-host configure.ocaml 3,795 1,610 1,220 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 41 27 15 19.3 dash
21 no-host configure.tcc 196 158 42 19.3 osh-cpython
29 no-host configure.tcc 48 35 14 19.3 osh-native
37 no-host configure.tcc 48 18 30 19.4 osh-native-souffle
3 no-host configure.util-linux 13,991 8,940 5,529 30.1 bash
11 no-host configure.util-linux 14,843 9,118 6,222 30.0 dash
19 no-host configure.util-linux 33,394 21,747 12,829 30.4 osh-cpython
27 no-host configure.util-linux 14,319 8,539 5,983 30.1 osh-native
35 no-host configure.util-linux 14,344 8,661 5,873 30.4 osh-native-souffle
6 no-host configure.yash 1,805 1,075 739 24.2 bash
14 no-host configure.yash 1,775 1,031 747 24.5 dash
22 no-host configure.yash 2,465 1,502 1,005 24.4 osh-cpython
30 no-host configure.yash 1,834 1,068 770 24.4 osh-native
38 no-host configure.yash 1,828 1,037 796 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 29 20 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 6 3 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,547 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,416 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,139 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,129 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 104,374 0 0 0 8 0 1,988 243 bash
9 no-host bin-true 66,373 0 0 0 8 0 1,987 31 dash
17 no-host bin-true 777,960 0 0 0 8 0 1,995 367 osh-cpython
25 no-host bin-true 127,867 0 0 0 16 0 1,990 105 osh-native
33 no-host bin-true 125,925 0 0 0 16 0 1,984 60 osh-native-souffle
2 no-host configure.cpython 2,220,805 2 0 0 32,928 0 14,522 1,128 bash
10 no-host configure.cpython 2,235,878 0 0 0 32,992 0 14,667 897 dash
18 no-host configure.cpython 6,227,541 2 0 0 27,512 0 13,280 1,278 osh-cpython
26 no-host configure.cpython 2,215,774 2 0 0 27,520 0 13,242 890 osh-native
34 no-host configure.cpython 2,215,361 0 0 0 27,520 0 13,279 1,089 osh-native-souffle
4 no-host configure.ocaml 410,372 0 0 0 5,120 0 1,962 159 bash
12 no-host configure.ocaml 391,525 0 0 0 5,112 0 1,914 157 dash
20 no-host configure.ocaml 645,267 0 0 0 5,112 0 1,863 179 osh-cpython
28 no-host configure.ocaml 413,147 0 0 0 5,120 0 1,925 165 osh-native
36 no-host configure.ocaml 411,271 0 0 0 5,120 0 1,928 151 osh-native-souffle
5 no-host configure.tcc 6,558 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,714 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,942 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,951 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,101,393 0 0 0 42,400 0 18,601 1,048 bash
11 no-host configure.util-linux 2,259,966 0 0 0 42,584 0 17,434 994 dash
19 no-host configure.util-linux 5,367,678 13 0 0 39,112 0 16,963 1,300 osh-cpython
27 no-host configure.util-linux 2,004,316 1 0 0 39,120 0 16,954 894 osh-native
35 no-host configure.util-linux 1,996,284 1 0 0 39,136 0 16,979 919 osh-native-souffle
6 no-host configure.yash 256,133 0 0 0 4,120 0 869 69 bash
14 no-host configure.yash 245,004 0 0 0 3,720 0 867 76 dash
22 no-host configure.yash 387,604 0 0 0 3,728 0 848 95 osh-cpython
30 no-host configure.yash 258,430 0 0 0 3,736 0 851 148 osh-native
38 no-host configure.yash 257,999 0 0 0 3,736 0 849 82 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,747 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-79e31ce6
dash dash-0ebcf347
osh-cpython osh-8368f367
osh-native osh-64e82dff
osh-native-souffle osh-469b9218
host label host id
no-host no-host-556df3ee