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 462 22 21 21.14 1.02
bin-true no-host 684 543 2,287 812 808 3.34 1.19
configure.cpython no-host 15,124 15,207 28,893 15,378 15,417 1.91 1.02
configure.ocaml no-host 3,847 3,756 4,654 3,850 3,838 1.21 1.00
configure.tcc no-host 48 42 198 49 49 4.10 1.03
configure.util-linux no-host 14,148 15,007 31,292 14,568 14,460 2.21 1.03
configure.yash no-host 1,829 1,794 2,470 1,836 1,841 1.35 1.00
hello-world no-host 2 1 49 3 3 32.44 1.91

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,549 1,102 23,310 3,152 3,098 9.14 1.24
bin-true no-host 106,297 66,440 768,302 125,815 125,860 7.23 1.18
configure.cpython no-host 2,215,701 2,242,185 6,231,156 2,224,521 2,203,174 2.81 1.00
configure.ocaml no-host 410,881 390,420 646,235 412,559 412,715 1.57 1.00
configure.tcc no-host 6,603 5,485 23,704 6,996 6,923 3.59 1.06
configure.util-linux no-host 2,104,718 2,257,738 5,336,245 1,999,218 1,995,967 2.54 0.95
configure.yash no-host 256,305 244,073 388,219 258,071 258,268 1.51 1.01
hello-world no-host 149 81 3,738 353 345 25.09 2.37

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 21.9 8.8 8.5 4.91 1.97
bin-true no-host 2.9 1.4 17.5 8.0 7.7 6.07 2.77
configure.cpython no-host 27.1 27.4 27.4 27.4 27.1 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.8 1.6 17.6 6.4 5.9 6.38 2.33

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.4 3,773 3,773 0 695 1,850 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.0 154,738 13,220 2,877 9,745 78,319 66,674 3,008 3 50,000 0
configure.cpython no-host 15,378 1 63 15.0 27.4 1,772,720 49,854 28,587 86,398 908,071 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,568 3 62 21.3 30.1 2,703,488 29,146 65,890 109,676 1,320,577 1,273,235 27,391 41 131,780 1
configure.ocaml no-host 3,850 1 2 2.6 20.6 150,094 11,051 5,221 7,532 71,604 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,579 30,579 0 1,521 14,774 14,284 226 0 50,000 0
configure.yash no-host 1,836 1 2 2.6 24.4 139,747 8,020 6,679 6,337 70,279 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,322 64,530 42,740 4,572 54,519 57,231 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,772 3,772 0 696 1,850 1,226 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.7 154,737 13,063 2,815 9,746 78,319 66,672 3,008 3 50,000 0
configure.cpython no-host 15,417 1 60 14.9 27.1 1,772,719 49,105 28,525 86,399 908,071 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,460 3 61 21.3 30.0 2,703,488 42,741 65,828 109,678 1,320,577 1,273,233 27,391 41 131,656 1
configure.ocaml no-host 3,838 1 2 2.6 20.4 150,094 10,989 5,159 7,534 71,604 70,956 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,579 30,579 0 1,523 14,774 14,282 226 0 50,000 0
configure.yash no-host 1,841 1 2 2.6 24.4 139,747 7,958 6,617 6,339 70,279 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,321 64,468 42,678 4,573 54,519 57,229 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 14 6 4.5 bash
15 no-host abuild-print-help 9 7 3 3.5 dash
23 no-host abuild-print-help 462 428 38 21.9 osh-cpython
31 no-host abuild-print-help 22 16 7 8.8 osh-native
39 no-host abuild-print-help 21 17 5 8.5 osh-native-souffle
1 no-host bin-true 684 490 228 2.9 bash
9 no-host bin-true 543 412 140 1.4 dash
17 no-host bin-true 2,287 1,489 1,076 17.5 osh-cpython
25 no-host bin-true 812 606 221 8.0 osh-native
33 no-host bin-true 808 599 225 7.7 osh-native-souffle
2 no-host configure.cpython 15,124 9,168 6,350 27.1 bash
10 no-host configure.cpython 15,207 9,252 6,368 27.4 dash
18 no-host configure.cpython 28,893 17,538 13,251 27.4 osh-cpython
26 no-host configure.cpython 15,378 8,934 6,703 27.4 osh-native
34 no-host configure.cpython 15,417 9,054 6,469 27.1 osh-native-souffle
4 no-host configure.ocaml 3,847 1,587 1,289 20.6 bash
12 no-host configure.ocaml 3,756 1,571 1,204 20.6 dash
20 no-host configure.ocaml 4,654 2,197 1,671 20.6 osh-cpython
28 no-host configure.ocaml 3,850 1,646 1,239 20.6 osh-native
36 no-host configure.ocaml 3,838 1,619 1,248 20.4 osh-native-souffle
5 no-host configure.tcc 48 33 15 19.3 bash
13 no-host configure.tcc 42 17 25 19.3 dash
21 no-host configure.tcc 198 131 70 19.3 osh-cpython
29 no-host configure.tcc 49 36 14 19.4 osh-native
37 no-host configure.tcc 49 23 26 19.3 osh-native-souffle
3 no-host configure.util-linux 14,148 8,837 5,790 30.1 bash
11 no-host configure.util-linux 15,007 9,251 6,240 30.3 dash
19 no-host configure.util-linux 31,292 21,019 11,387 30.1 osh-cpython
27 no-host configure.util-linux 14,568 8,649 6,104 30.1 osh-native
35 no-host configure.util-linux 14,460 8,654 5,992 30.0 osh-native-souffle
6 no-host configure.yash 1,829 1,057 782 24.2 bash
14 no-host configure.yash 1,794 1,031 767 24.2 dash
22 no-host configure.yash 2,470 1,557 957 24.2 osh-cpython
30 no-host configure.yash 1,836 1,069 771 24.4 osh-native
38 no-host configure.yash 1,841 1,102 742 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.6 dash
16 no-host hello-world 49 31 19 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,549 0 0 0 16 0 42 2 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,310 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,152 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,098 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,297 0 0 0 8 0 1,996 59 bash
9 no-host bin-true 66,440 0 0 0 8 0 1,988 61 dash
17 no-host bin-true 768,302 0 0 0 8 0 1,995 227 osh-cpython
25 no-host bin-true 125,815 0 0 0 16 0 1,984 49 osh-native
33 no-host bin-true 125,860 0 0 0 16 0 1,991 55 osh-native-souffle
2 no-host configure.cpython 2,215,701 0 0 0 32,928 0 14,462 1,166 bash
10 no-host configure.cpython 2,242,185 0 0 0 32,992 0 14,649 1,179 dash
18 no-host configure.cpython 6,231,156 0 0 0 27,512 0 13,149 1,329 osh-cpython
26 no-host configure.cpython 2,224,521 0 0 0 27,520 0 13,308 1,222 osh-native
34 no-host configure.cpython 2,203,174 0 0 0 27,520 0 13,208 1,082 osh-native-souffle
4 no-host configure.ocaml 410,881 0 0 0 5,120 0 1,972 159 bash
12 no-host configure.ocaml 390,420 0 0 0 5,112 0 1,875 141 dash
20 no-host configure.ocaml 646,235 0 0 0 5,112 0 1,854 161 osh-cpython
28 no-host configure.ocaml 412,559 0 0 0 5,120 0 1,924 163 osh-native
36 no-host configure.ocaml 412,715 0 0 0 5,120 0 1,929 153 osh-native-souffle
5 no-host configure.tcc 6,603 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,704 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,996 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,923 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,104,718 0 0 0 42,408 0 18,615 1,008 bash
11 no-host configure.util-linux 2,257,738 0 0 0 42,592 0 17,477 1,106 dash
19 no-host configure.util-linux 5,336,245 8 0 0 39,112 0 17,102 1,252 osh-cpython
27 no-host configure.util-linux 1,999,218 3 0 0 39,120 0 16,955 1,115 osh-native
35 no-host configure.util-linux 1,995,967 1 0 0 39,128 0 17,007 1,204 osh-native-souffle
6 no-host configure.yash 256,305 0 0 0 4,120 0 870 68 bash
14 no-host configure.yash 244,073 0 0 0 3,720 0 869 78 dash
22 no-host configure.yash 388,219 0 0 0 3,728 0 855 90 osh-cpython
30 no-host configure.yash 258,071 0 0 0 3,736 0 850 77 osh-native
38 no-host configure.yash 258,268 0 0 0 3,736 0 848 82 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,738 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5590f15c
dash dash-0ebcf347
osh-cpython osh-c245fd80
osh-native osh-04199f66
osh-native-souffle osh-56edf06c
host label host id
no-host no-host-556df3ee