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 517 22 21 26.64 1.14
bin-true no-host 671 550 2,280 811 818 3.40 1.21
configure.cpython no-host 15,143 15,160 28,842 15,380 15,527 1.90 1.02
configure.ocaml no-host 3,805 3,773 4,668 3,837 3,847 1.23 1.01
configure.tcc no-host 47 41 196 49 49 4.14 1.03
configure.util-linux no-host 14,106 14,983 31,356 14,450 14,376 2.22 1.02
configure.yash no-host 1,840 1,794 2,471 1,860 1,840 1.34 1.01
hello-world no-host 2 1 51 3 3 33.80 1.96

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,542 1,096 23,172 3,150 3,127 9.12 1.24
bin-true no-host 104,380 66,473 765,906 124,891 125,814 7.34 1.20
configure.cpython no-host 2,216,784 2,240,361 6,237,050 2,226,226 2,210,946 2.81 1.00
configure.ocaml no-host 410,567 391,076 646,617 412,659 412,278 1.57 1.01
configure.tcc no-host 6,534 5,469 23,705 6,945 6,922 3.63 1.06
configure.util-linux no-host 2,105,194 2,259,325 5,356,021 2,002,508 1,994,625 2.54 0.95
configure.yash no-host 255,707 245,213 388,113 257,786 258,264 1.52 1.01
hello-world no-host 152 83 3,739 353 343 24.60 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.5 3.4 21.9 9.0 8.7 4.91 2.03
bin-true no-host 3.0 1.4 17.7 8.1 7.6 5.86 2.70
configure.cpython no-host 27.5 27.5 27.4 27.3 27.4 1.00 0.99
configure.ocaml no-host 20.4 20.6 20.7 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.4 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.4 30.0 30.3 30.5 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.4 1.01 1.01
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,773 3,773 0 695 1,850 1,228 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.1 154,738 13,220 2,877 9,745 78,319 66,674 3,008 3 50,000 0
configure.cpython no-host 15,380 1 64 15.0 27.3 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,450 3 62 21.3 30.5 2,703,488 29,745 65,870 109,676 1,320,577 1,273,235 27,391 41 131,740 1
configure.ocaml no-host 3,837 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,860 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 9.0 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 818 1 2 2.6 7.6 154,737 13,063 2,815 9,746 78,319 66,672 3,008 3 50,000 0
configure.cpython no-host 15,527 1 66 14.9 27.4 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,376 3 62 21.3 30.1 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,847 1 2 2.6 20.6 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.4 30,579 30,579 0 1,523 14,774 14,282 226 0 50,000 0
configure.yash no-host 1,840 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.7 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 19 18 2 4.5 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 517 467 53 21.9 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 21 13 9 8.7 osh-native-souffle
1 no-host bin-true 671 500 204 3.0 bash
9 no-host bin-true 550 422 137 1.4 dash
17 no-host bin-true 2,280 1,458 1,089 17.7 osh-cpython
25 no-host bin-true 811 592 234 8.1 osh-native
33 no-host bin-true 818 580 254 7.6 osh-native-souffle
2 no-host configure.cpython 15,143 9,138 6,409 27.5 bash
10 no-host configure.cpython 15,160 9,005 6,570 27.5 dash
18 no-host configure.cpython 28,842 17,731 12,993 27.4 osh-cpython
26 no-host configure.cpython 15,380 9,111 6,531 27.3 osh-native
34 no-host configure.cpython 15,527 8,969 6,629 27.4 osh-native-souffle
4 no-host configure.ocaml 3,805 1,617 1,227 20.4 bash
12 no-host configure.ocaml 3,773 1,666 1,126 20.6 dash
20 no-host configure.ocaml 4,668 2,268 1,611 20.7 osh-cpython
28 no-host configure.ocaml 3,837 1,548 1,328 20.6 osh-native
36 no-host configure.ocaml 3,847 1,556 1,329 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 41 20 22 19.4 dash
21 no-host configure.tcc 196 152 47 19.3 osh-cpython
29 no-host configure.tcc 49 27 23 19.4 osh-native
37 no-host configure.tcc 49 34 15 19.4 osh-native-souffle
3 no-host configure.util-linux 14,106 8,954 5,627 30.4 bash
11 no-host configure.util-linux 14,983 9,178 6,304 30.0 dash
19 no-host configure.util-linux 31,356 20,956 11,514 30.3 osh-cpython
27 no-host configure.util-linux 14,450 8,781 5,875 30.5 osh-native
35 no-host configure.util-linux 14,376 8,741 5,828 30.1 osh-native-souffle
6 no-host configure.yash 1,840 1,051 798 24.2 bash
14 no-host configure.yash 1,794 964 834 24.4 dash
22 no-host configure.yash 2,471 1,524 991 24.4 osh-cpython
30 no-host configure.yash 1,860 1,042 822 24.4 osh-native
38 no-host configure.yash 1,840 1,097 747 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 51 24 27 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 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,542 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,172 0 0 0 8 0 44 8 osh-cpython
31 no-host abuild-print-help 3,150 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,127 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,380 0 0 0 8 0 1,993 75 bash
9 no-host bin-true 66,473 0 0 0 8 0 1,991 71 dash
17 no-host bin-true 765,906 0 0 0 8 0 1,995 206 osh-cpython
25 no-host bin-true 124,891 0 0 0 16 0 1,991 97 osh-native
33 no-host bin-true 125,814 0 0 0 16 0 1,993 98 osh-native-souffle
2 no-host configure.cpython 2,216,784 1 0 0 32,928 0 14,558 1,101 bash
10 no-host configure.cpython 2,240,361 1 0 0 32,992 0 14,648 1,182 dash
18 no-host configure.cpython 6,237,050 0 0 0 27,512 0 13,274 1,106 osh-cpython
26 no-host configure.cpython 2,226,226 0 0 0 27,520 0 13,139 1,008 osh-native
34 no-host configure.cpython 2,210,946 0 0 0 27,520 0 13,226 1,255 osh-native-souffle
4 no-host configure.ocaml 410,567 0 0 0 5,120 0 1,948 185 bash
12 no-host configure.ocaml 391,076 0 0 0 5,112 0 1,939 149 dash
20 no-host configure.ocaml 646,617 0 0 0 5,112 0 1,863 209 osh-cpython
28 no-host configure.ocaml 412,659 0 0 0 5,120 0 1,926 190 osh-native
36 no-host configure.ocaml 412,278 0 0 0 5,120 0 1,929 158 osh-native-souffle
5 no-host configure.tcc 6,534 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,705 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,945 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,922 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,105,194 1 0 0 42,400 0 18,565 1,109 bash
11 no-host configure.util-linux 2,259,325 2 0 0 42,584 0 17,414 1,116 dash
19 no-host configure.util-linux 5,356,021 12 0 0 39,120 0 16,947 1,222 osh-cpython
27 no-host configure.util-linux 2,002,508 0 0 0 39,120 0 16,942 998 osh-native
35 no-host configure.util-linux 1,994,625 0 0 0 39,128 0 16,978 962 osh-native-souffle
6 no-host configure.yash 255,707 0 0 0 4,120 0 871 97 bash
14 no-host configure.yash 245,213 0 0 0 3,720 0 867 82 dash
22 no-host configure.yash 388,113 0 0 0 3,728 0 856 90 osh-cpython
30 no-host configure.yash 257,786 0 0 0 3,736 0 851 79 osh-native
38 no-host configure.yash 258,264 0 0 0 3,736 0 850 71 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,739 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-305375c5
dash dash-0ebcf347
osh-cpython osh-d8d6dcb9
osh-native osh-77b32de5
osh-native-souffle osh-94b1b01f
host label host id
no-host no-host-556df3ee