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 20 10 478 23 21 23.90 1.14
bin-true no-host 685 565 2,314 832 839 3.38 1.21
configure.cpython no-host 15,669 15,771 30,474 16,000 16,149 1.94 1.02
configure.ocaml no-host 3,979 3,886 4,837 3,986 3,951 1.22 1.00
configure.tcc no-host 49 42 205 52 50 4.13 1.04
configure.util-linux no-host 14,663 15,580 32,976 15,164 15,051 2.25 1.03
configure.yash no-host 1,902 1,848 2,581 1,923 1,913 1.36 1.01
hello-world no-host 2 1 53 3 3 30.16 1.66

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,550 1,093 23,263 3,188 3,099 9.12 1.25
bin-true no-host 106,258 66,430 759,258 125,851 126,917 7.15 1.18
configure.cpython no-host 2,222,475 2,234,530 6,238,323 2,222,325 2,213,204 2.81 1.00
configure.ocaml no-host 410,504 390,681 645,857 413,043 412,285 1.57 1.01
configure.tcc no-host 6,551 5,463 23,720 6,951 6,907 3.62 1.06
configure.util-linux no-host 2,106,332 2,259,930 5,361,110 1,994,713 1,995,170 2.55 0.95
configure.yash no-host 255,764 244,593 387,874 257,734 258,332 1.52 1.01
hello-world no-host 154 80 3,734 349 342 24.25 2.27

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 21.8 8.9 8.7 5.03 2.06
bin-true no-host 3.0 1.4 17.7 8.0 7.6 5.87 2.65
configure.cpython no-host 27.4 27.5 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.3 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.6 17.7 6.2 5.9 6.43 2.24

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,773 3,773 0 695 1,850 1,228 2 0 50,000 0
bin-true no-host 832 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 16,000 1 64 15.0 27.5 1,772,720 49,854 28,587 86,398 908,071 778,251 22,694 60 50,000 0
configure.util-linux no-host 15,164 3 65 21.3 30.1 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,986 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 52 0 0 1.3 19.3 30,579 30,579 0 1,521 14,774 14,284 226 0 50,000 0
configure.yash no-host 1,923 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 23 1 2 2.8 8.9 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 839 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 16,149 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 15,051 3 66 21.3 30.0 2,703,488 42,741 65,808 109,678 1,320,577 1,273,233 27,391 41 131,616 1
configure.ocaml no-host 3,951 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 50 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,913 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 20 16 4 4.3 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 478 414 67 21.8 osh-cpython
31 no-host abuild-print-help 23 18 5 8.9 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 685 514 203 3.0 bash
9 no-host bin-true 565 423 149 1.4 dash
17 no-host bin-true 2,314 1,521 1,073 17.7 osh-cpython
25 no-host bin-true 832 572 273 8.0 osh-native
33 no-host bin-true 839 576 277 7.6 osh-native-souffle
2 no-host configure.cpython 15,669 9,419 6,667 27.4 bash
10 no-host configure.cpython 15,771 9,383 6,819 27.5 dash
18 no-host configure.cpython 30,474 18,201 14,299 27.4 osh-cpython
26 no-host configure.cpython 16,000 9,240 7,027 27.5 osh-native
34 no-host configure.cpython 16,149 9,235 7,091 27.4 osh-native-souffle
4 no-host configure.ocaml 3,979 1,667 1,328 20.3 bash
12 no-host configure.ocaml 3,886 1,676 1,228 20.6 dash
20 no-host configure.ocaml 4,837 2,293 1,761 20.6 osh-cpython
28 no-host configure.ocaml 3,986 1,738 1,287 20.6 osh-native
36 no-host configure.ocaml 3,951 1,658 1,328 20.6 osh-native-souffle
5 no-host configure.tcc 49 33 17 19.3 bash
13 no-host configure.tcc 42 25 18 19.3 dash
21 no-host configure.tcc 205 163 44 19.3 osh-cpython
29 no-host configure.tcc 52 38 14 19.3 osh-native
37 no-host configure.tcc 50 31 20 19.3 osh-native-souffle
3 no-host configure.util-linux 14,663 8,903 6,244 30.1 bash
11 no-host configure.util-linux 15,580 9,613 6,466 30.3 dash
19 no-host configure.util-linux 32,976 22,103 12,029 30.1 osh-cpython
27 no-host configure.util-linux 15,164 9,066 6,283 30.1 osh-native
35 no-host configure.util-linux 15,051 8,965 6,273 30.0 osh-native-souffle
6 no-host configure.yash 1,902 1,081 828 24.4 bash
14 no-host configure.yash 1,848 1,068 783 24.2 dash
22 no-host configure.yash 2,581 1,568 1,058 24.2 osh-cpython
30 no-host configure.yash 1,923 1,063 864 24.4 osh-native
38 no-host configure.yash 1,913 1,164 753 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.6 dash
16 no-host hello-world 53 41 12 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,550 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,263 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,258 0 0 0 8 0 1,994 51 bash
9 no-host bin-true 66,430 0 0 0 8 0 1,990 105 dash
17 no-host bin-true 759,258 0 0 0 8 0 1,997 213 osh-cpython
25 no-host bin-true 125,851 0 0 0 16 0 1,992 73 osh-native
33 no-host bin-true 126,917 0 0 0 16 0 1,988 56 osh-native-souffle
2 no-host configure.cpython 2,222,475 2 0 0 32,928 0 14,486 1,048 bash
10 no-host configure.cpython 2,234,530 1 0 0 32,992 0 14,642 1,158 dash
18 no-host configure.cpython 6,238,323 0 0 0 27,512 0 13,168 1,334 osh-cpython
26 no-host configure.cpython 2,222,325 0 0 0 27,520 0 13,241 1,065 osh-native
34 no-host configure.cpython 2,213,204 0 0 0 27,520 0 13,292 1,027 osh-native-souffle
4 no-host configure.ocaml 410,504 0 0 0 5,120 0 1,951 138 bash
12 no-host configure.ocaml 390,681 0 0 0 5,112 0 1,889 170 dash
20 no-host configure.ocaml 645,857 0 0 0 5,112 0 1,849 203 osh-cpython
28 no-host configure.ocaml 413,043 0 0 0 5,120 0 1,927 172 osh-native
36 no-host configure.ocaml 412,285 0 0 0 5,120 0 1,935 237 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,720 0 0 0 96 0 53 18 osh-cpython
29 no-host configure.tcc 6,951 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,907 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,106,332 4 0 0 42,400 0 18,569 1,023 bash
11 no-host configure.util-linux 2,259,930 0 0 0 42,584 0 17,426 1,295 dash
19 no-host configure.util-linux 5,361,110 10 0 0 39,128 0 16,903 1,352 osh-cpython
27 no-host configure.util-linux 1,994,713 4 0 0 39,128 0 16,950 1,057 osh-native
35 no-host configure.util-linux 1,995,170 0 0 0 39,136 0 16,971 997 osh-native-souffle
6 no-host configure.yash 255,764 0 0 0 4,120 0 872 82 bash
14 no-host configure.yash 244,593 0 0 0 3,720 0 868 69 dash
22 no-host configure.yash 387,874 0 0 0 3,728 0 854 83 osh-cpython
30 no-host configure.yash 257,734 0 0 0 3,736 0 848 89 osh-native
38 no-host configure.yash 258,332 0 0 0 3,736 0 849 92 osh-native-souffle
0 no-host hello-world 154 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,734 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-33609ac4
dash dash-0ebcf347
osh-cpython osh-490fdf8c
osh-native osh-2669bda1
osh-native-souffle osh-080ac191
host label host id
no-host no-host-556df3ee