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 508 23 22 24.96 1.11
bin-true no-host 708 547 2,558 822 817 3.61 1.16
configure.cpython no-host 16,119 15,952 31,365 15,757 15,425 1.95 0.98
configure.ocaml no-host 4,067 3,913 4,891 3,895 3,903 1.20 0.96
configure.tcc no-host 51 43 218 49 49 4.23 0.95
configure.util-linux no-host 14,819 15,826 34,258 14,815 14,575 2.31 1.00
configure.yash no-host 1,972 1,871 2,624 1,866 1,884 1.33 0.95
hello-world no-host 1 1 64 3 3 44.72 2.06

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,527 1,115 24,195 3,207 3,058 9.57 1.27
bin-true no-host 106,323 66,389 804,015 126,207 126,243 7.56 1.19
configure.cpython no-host 1,998,830 2,017,320 6,120,422 2,011,292 1,998,261 3.06 1.01
configure.ocaml no-host 373,274 353,861 615,827 376,799 376,052 1.65 1.01
configure.tcc no-host 6,088 5,011 24,116 6,496 6,450 3.96 1.07
configure.util-linux no-host 1,913,063 2,074,790 5,306,948 1,822,418 1,806,473 2.77 0.95
configure.yash no-host 233,741 222,292 369,619 235,358 234,448 1.58 1.01
hello-world no-host 148 73 3,981 345 338 26.90 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.5 22.7 9.0 8.7 5.26 2.09
bin-true no-host 3.0 1.4 18.5 8.1 7.7 6.15 2.70
configure.cpython no-host 29.2 29.2 29.2 29.3 29.3 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.6 19.8 19.6 19.5 1.01 0.99
configure.util-linux no-host 30.2 30.3 30.3 30.2 30.2 1.00 1.00
configure.yash no-host 26.4 26.3 26.3 26.4 26.4 1.00 1.00
hello-world no-host 2.9 1.3 18.4 6.3 5.9 6.38 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.3 6.3 3,806 3,806 0 701 1,870 1,235 2 0 50,000 0
bin-true no-host 822 1 2 2.6 8.1 156,773 15,415 2,902 8,753 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 15,757 2 75 15.5 29.3 1,785,014 30,560 28,527 91,506 886,575 806,933 25,736 61 50,000 0
configure.util-linux no-host 14,815 4 71 21.6 30.2 2,709,215 53,762 65,706 114,373 1,295,038 1,299,804 32,241 41 131,412 1
configure.ocaml no-host 3,895 1 2 2.6 22.6 149,860 11,179 5,222 7,734 70,874 71,252 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.6 30,576 30,576 0 1,543 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,866 1 2 2.6 26.4 139,882 8,046 6,701 6,398 68,339 65,145 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,338 64,420 42,628 4,545 54,462 57,331 277 3 85,256 1
hello-world no-host 3 0 0 0.3 5.9 3,805 3,805 0 702 1,870 1,233 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.7 156,772 15,410 2,897 8,754 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 15,425 1 72 15.4 29.3 1,785,013 30,547 28,522 91,507 886,575 806,931 25,736 61 50,000 0
configure.util-linux no-host 14,575 3 69 21.6 30.2 2,709,215 53,739 65,701 114,375 1,295,038 1,299,802 32,241 41 131,402 1
configure.ocaml no-host 3,903 1 2 2.6 22.6 149,860 11,174 5,217 7,736 70,874 71,250 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.5 30,576 30,576 0 1,545 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,884 1 3 2.6 26.4 139,882 8,035 6,690 6,400 68,339 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,337 64,415 42,623 4,546 54,462 57,329 277 3 85,246 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 11 10 4.3 bash
15 no-host abuild-print-help 10 2 8 3.5 dash
23 no-host abuild-print-help 508 442 70 22.7 osh-cpython
31 no-host abuild-print-help 23 11 12 9.0 osh-native
39 no-host abuild-print-help 22 10 12 8.7 osh-native-souffle
1 no-host bin-true 708 302 424 3.0 bash
9 no-host bin-true 547 272 286 1.4 dash
17 no-host bin-true 2,558 870 1,953 18.5 osh-cpython
25 no-host bin-true 822 308 521 8.1 osh-native
33 no-host bin-true 817 292 538 7.7 osh-native-souffle
2 no-host configure.cpython 16,119 7,088 9,435 29.2 bash
10 no-host configure.cpython 15,952 7,061 9,335 29.2 dash
18 no-host configure.cpython 31,365 15,731 17,734 29.2 osh-cpython
26 no-host configure.cpython 15,757 6,829 9,224 29.3 osh-native
34 no-host configure.cpython 15,425 6,762 8,955 29.3 osh-native-souffle
4 no-host configure.ocaml 4,067 1,437 1,667 22.6 bash
12 no-host configure.ocaml 3,913 1,347 1,577 22.6 dash
20 no-host configure.ocaml 4,891 1,974 2,154 22.6 osh-cpython
28 no-host configure.ocaml 3,895 1,353 1,585 22.6 osh-native
36 no-host configure.ocaml 3,903 1,348 1,593 22.6 osh-native-souffle
5 no-host configure.tcc 51 24 28 19.7 bash
13 no-host configure.tcc 43 19 25 19.6 dash
21 no-host configure.tcc 218 152 70 19.8 osh-cpython
29 no-host configure.tcc 49 18 32 19.6 osh-native
37 no-host configure.tcc 49 26 23 19.5 osh-native-souffle
3 no-host configure.util-linux 14,819 6,297 9,044 30.2 bash
11 no-host configure.util-linux 15,826 6,441 9,922 30.3 dash
19 no-host configure.util-linux 34,258 19,515 15,942 30.3 osh-cpython
27 no-host configure.util-linux 14,815 5,726 9,297 30.2 osh-native
35 no-host configure.util-linux 14,575 5,732 9,053 30.2 osh-native-souffle
6 no-host configure.yash 1,972 953 1,030 26.4 bash
14 no-host configure.yash 1,871 953 922 26.3 dash
22 no-host configure.yash 2,624 1,387 1,280 26.3 osh-cpython
30 no-host configure.yash 1,866 904 967 26.4 osh-native
38 no-host configure.yash 1,884 908 975 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 64 45 19 18.4 osh-cpython
24 no-host hello-world 3 1 2 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,527 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,195 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 40 5 osh-native
39 no-host abuild-print-help 3,058 0 0 0 16 0 40 0 osh-native-souffle
1 no-host bin-true 106,323 0 0 0 8 0 1,979 187 bash
9 no-host bin-true 66,389 0 0 0 8 0 1,979 84 dash
17 no-host bin-true 804,015 0 0 0 8 0 1,997 283 osh-cpython
25 no-host bin-true 126,207 0 0 0 16 0 1,984 170 osh-native
33 no-host bin-true 126,243 0 0 0 16 0 1,989 234 osh-native-souffle
2 no-host configure.cpython 1,998,830 0 0 0 32,928 0 14,245 990 bash
10 no-host configure.cpython 2,017,320 0 0 0 32,992 0 14,372 1,018 dash
18 no-host configure.cpython 6,120,422 1 0 0 27,512 0 13,082 1,153 osh-cpython
26 no-host configure.cpython 2,011,292 1 0 0 27,520 0 13,011 981 osh-native
34 no-host configure.cpython 1,998,261 0 0 0 27,520 0 12,988 978 osh-native-souffle
4 no-host configure.ocaml 373,274 0 0 0 5,120 0 1,952 200 bash
12 no-host configure.ocaml 353,861 0 0 0 5,112 0 1,927 198 dash
20 no-host configure.ocaml 615,827 0 0 0 5,112 0 1,845 189 osh-cpython
28 no-host configure.ocaml 376,799 0 0 0 5,120 0 1,922 202 osh-native
36 no-host configure.ocaml 376,052 0 0 0 5,120 0 1,931 203 osh-native-souffle
5 no-host configure.tcc 6,088 0 0 0 104 0 49 13 bash
13 no-host configure.tcc 5,011 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,116 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,496 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,450 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,913,063 1 0 0 42,408 0 18,574 1,134 bash
11 no-host configure.util-linux 2,074,790 1 0 0 42,592 0 17,443 1,307 dash
19 no-host configure.util-linux 5,306,948 11 0 0 39,112 0 17,005 1,216 osh-cpython
27 no-host configure.util-linux 1,822,418 0 0 0 39,128 0 17,102 1,159 osh-native
35 no-host configure.util-linux 1,806,473 0 0 0 39,136 0 16,993 1,158 osh-native-souffle
6 no-host configure.yash 233,741 0 0 0 4,120 0 867 98 bash
14 no-host configure.yash 222,292 0 0 0 3,720 0 867 84 dash
22 no-host configure.yash 369,619 0 0 0 3,728 0 855 85 osh-cpython
30 no-host configure.yash 235,358 0 0 0 3,736 0 851 87 osh-native
38 no-host configure.yash 234,448 0 0 0 3,736 0 848 77 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 73 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,981 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8bf24435
dash dash-0ebcf347
osh-cpython osh-e5bbf334
osh-native osh-1c7c4f3c
osh-native-souffle osh-5c6731c4
host label host id
no-host no-host-e4839999