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 464 22 20 24.40 1.18
bin-true no-host 664 539 2,284 822 802 3.44 1.24
configure.cpython no-host 14,791 14,947 28,728 15,139 15,102 1.94 1.02
configure.ocaml no-host 3,743 3,757 4,706 3,798 3,792 1.26 1.01
configure.tcc no-host 47 42 205 48 48 4.33 1.03
configure.util-linux no-host 13,794 15,017 31,146 14,221 14,161 2.26 1.03
configure.yash no-host 1,809 1,786 2,433 1,831 1,797 1.34 1.01
hello-world no-host 1 1 56 3 3 38.12 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,545 1,093 23,783 3,187 3,103 9.34 1.25
bin-true no-host 106,319 66,425 772,542 128,184 126,174 7.27 1.21
configure.cpython no-host 2,224,090 2,248,859 6,249,819 2,217,114 2,203,232 2.81 1.00
configure.ocaml no-host 410,254 391,159 647,246 412,347 412,739 1.58 1.01
configure.tcc no-host 6,558 5,473 24,119 6,962 6,893 3.68 1.06
configure.util-linux no-host 2,094,899 2,263,327 5,397,151 1,992,285 1,993,135 2.58 0.95
configure.yash no-host 256,458 244,583 389,625 257,520 257,690 1.52 1.00
hello-world no-host 153 80 3,937 341 339 25.73 2.23

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 22.7 9.0 8.5 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.9 6.37 2.82
configure.cpython no-host 27.4 28.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.3 20.6 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.3 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.9 1.4 18.2 6.3 6.0 6.31 2.18

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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 822 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,139 1 60 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,221 3 58 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,798 1 2 2.6 20.3 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,831 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,102 1 58 14.9 27.5 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,161 3 58 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,792 0 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,797 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 6 4.3 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 464 428 39 22.7 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 20 11 10 8.5 osh-native-souffle
1 no-host bin-true 664 489 209 2.9 bash
9 no-host bin-true 539 429 119 1.4 dash
17 no-host bin-true 2,284 1,476 1,068 18.4 osh-cpython
25 no-host bin-true 822 583 250 8.1 osh-native
33 no-host bin-true 802 563 254 7.9 osh-native-souffle
2 no-host configure.cpython 14,791 8,831 6,356 27.4 bash
10 no-host configure.cpython 14,947 8,949 6,412 28.4 dash
18 no-host configure.cpython 28,728 17,382 13,207 27.4 osh-cpython
26 no-host configure.cpython 15,139 9,005 6,394 27.4 osh-native
34 no-host configure.cpython 15,102 8,913 6,328 27.5 osh-native-souffle
4 no-host configure.ocaml 3,743 1,557 1,227 20.6 bash
12 no-host configure.ocaml 3,757 1,596 1,179 20.6 dash
20 no-host configure.ocaml 4,706 2,294 1,628 20.6 osh-cpython
28 no-host configure.ocaml 3,798 1,638 1,198 20.3 osh-native
36 no-host configure.ocaml 3,792 1,615 1,212 20.6 osh-native-souffle
5 no-host configure.tcc 47 24 23 19.3 bash
13 no-host configure.tcc 42 28 14 19.4 dash
21 no-host configure.tcc 205 137 71 19.3 osh-cpython
29 no-host configure.tcc 48 22 27 19.3 osh-native
37 no-host configure.tcc 48 31 17 19.4 osh-native-souffle
3 no-host configure.util-linux 13,794 8,747 5,515 30.3 bash
11 no-host configure.util-linux 15,017 9,160 6,333 30.1 dash
19 no-host configure.util-linux 31,146 20,837 11,383 30.1 osh-cpython
27 no-host configure.util-linux 14,221 8,517 5,901 30.1 osh-native
35 no-host configure.util-linux 14,161 8,547 5,815 30.3 osh-native-souffle
6 no-host configure.yash 1,809 1,092 721 24.4 bash
14 no-host configure.yash 1,786 1,092 696 24.2 dash
22 no-host configure.yash 2,433 1,562 911 24.2 osh-cpython
30 no-host configure.yash 1,831 1,066 769 24.4 osh-native
38 no-host configure.yash 1,797 1,058 743 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 40 16 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 6.0 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,545 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,783 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,187 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,103 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,319 0 0 0 8 0 1,992 58 bash
9 no-host bin-true 66,425 0 0 0 8 0 1,990 69 dash
17 no-host bin-true 772,542 0 0 0 8 0 1,998 157 osh-cpython
25 no-host bin-true 128,184 0 0 0 16 0 1,992 90 osh-native
33 no-host bin-true 126,174 0 0 0 16 0 1,993 97 osh-native-souffle
2 no-host configure.cpython 2,224,090 1 0 0 32,928 0 14,561 917 bash
10 no-host configure.cpython 2,248,859 0 0 0 32,992 0 14,514 1,141 dash
18 no-host configure.cpython 6,249,819 1 0 0 27,512 0 13,245 1,117 osh-cpython
26 no-host configure.cpython 2,217,114 0 0 0 27,520 0 13,258 955 osh-native
34 no-host configure.cpython 2,203,232 0 0 0 27,520 0 13,295 974 osh-native-souffle
4 no-host configure.ocaml 410,254 0 0 0 5,120 0 1,950 170 bash
12 no-host configure.ocaml 391,159 0 0 0 5,112 0 1,875 127 dash
20 no-host configure.ocaml 647,246 0 0 0 5,112 0 1,855 169 osh-cpython
28 no-host configure.ocaml 412,347 0 0 0 5,120 0 1,920 159 osh-native
36 no-host configure.ocaml 412,739 0 0 0 5,120 0 1,930 160 osh-native-souffle
5 no-host configure.tcc 6,558 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 24,119 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,962 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,893 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,094,899 0 0 0 42,400 0 18,592 966 bash
11 no-host configure.util-linux 2,263,327 0 0 0 42,592 0 17,468 1,059 dash
19 no-host configure.util-linux 5,397,151 18 0 0 39,112 0 16,948 1,212 osh-cpython
27 no-host configure.util-linux 1,992,285 0 0 0 39,120 0 16,983 997 osh-native
35 no-host configure.util-linux 1,993,135 0 0 0 39,128 0 16,955 893 osh-native-souffle
6 no-host configure.yash 256,458 0 0 0 4,120 0 881 101 bash
14 no-host configure.yash 244,583 0 0 0 3,720 0 864 85 dash
22 no-host configure.yash 389,625 0 0 0 3,728 0 853 76 osh-cpython
30 no-host configure.yash 257,520 0 0 0 3,736 0 850 77 osh-native
38 no-host configure.yash 257,690 0 0 0 3,736 0 850 69 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,937 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ea2eef11
dash dash-0ebcf347
osh-cpython osh-ba43dc06
osh-native osh-6a2dcd76
osh-native-souffle osh-6b282a17
host label host id
no-host no-host-556df3ee