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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 20 21 18 1.29 1.15
bin-true no-host 621 442 812 819 649 1.31 1.05
configure.cpython no-host 13,608 13,905 13,209 13,513 12,711 0.97 0.93
configure.ocaml no-host 3,666 3,553 3,686 3,645 3,612 1.01 0.99
configure.tcc no-host 46 41 46 46 43 1.00 0.93
configure.util-linux no-host 12,461 13,115 12,261 12,313 11,879 0.98 0.95
configure.yash no-host 1,685 1,602 1,688 1,660 1,640 1.00 0.97
hello-world no-host 1 1 3 3 1 2.32 0.97

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,386 1,154 3,323 3,431 2,805 1.39 1.18
bin-true no-host 103,400 49,399 137,590 137,841 111,327 1.33 1.08
configure.cpython no-host 1,618,416 1,638,308 1,592,069 1,603,422 1,518,279 0.98 0.94
configure.ocaml no-host 298,687 280,808 305,853 307,489 299,571 1.02 1.00
configure.tcc no-host 5,206 4,225 5,618 5,679 5,116 1.08 0.98
configure.util-linux no-host 1,545,014 1,697,097 1,502,113 1,514,840 1,449,153 0.97 0.94
configure.yash no-host 173,221 159,524 176,996 176,759 172,992 1.02 1.00
hello-world no-host 151 88 389 399 182 2.58 1.21

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.7 3.9 9.4 9.8 6.3 2.00 1.33
bin-true no-host 3.3 1.6 8.9 9.3 5.1 2.72 1.56
configure.cpython no-host 34.5 34.5 34.7 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.8 28.6 28.7 1.01 1.00
configure.tcc no-host 26.3 26.2 26.1 26.3 26.1 0.99 0.99
configure.util-linux no-host 39.5 39.4 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.2 33.4 33.4 33.3 33.1 1.00 1.00
hello-world no-host 3.1 1.7 6.4 6.9 3.3 2.04 1.04

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.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 812 1 2 3.5 8.9 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,209 1 63 14.8 34.7 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,261 3 61 21.6 39.6 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,686 1 2 2.8 28.8 149,933 12,653 6,558 9,207 70,541 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,688 1 2 2.7 33.4 143,737 11,765 6,619 7,160 70,797 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 819 1 2 3.5 9.3 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,513 1 64 14.9 34.4 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,313 3 63 21.6 39.7 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,645 1 2 2.8 28.6 149,933 12,658 6,563 9,207 70,541 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,660 1 2 2.7 33.3 143,737 11,769 6,623 7,160 70,797 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.8 117,251 65,788 41,998 4,969 54,631 57,651 277 3 83,996 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 16 9 7 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 20 10 11 9.4 osh-native
31 no-host abuild-print-help 21 11 10 9.8 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 621 311 347 3.3 bash
9 no-host bin-true 442 270 178 1.6 dash
17 no-host bin-true 812 307 520 8.9 osh-native
25 no-host bin-true 819 312 523 9.3 osh-nosouffle
33 no-host bin-true 649 323 343 5.1 osh-static
2 no-host configure.cpython 13,608 7,538 6,451 34.5 bash
10 no-host configure.cpython 13,905 7,625 6,676 34.5 dash
18 no-host configure.cpython 13,209 7,017 6,459 34.7 osh-native
26 no-host configure.cpython 13,513 7,118 6,669 34.4 osh-nosouffle
34 no-host configure.cpython 12,711 6,995 5,914 34.5 osh-static
4 no-host configure.ocaml 3,666 1,459 1,246 28.6 bash
12 no-host configure.ocaml 3,553 1,472 1,105 28.8 dash
20 no-host configure.ocaml 3,686 1,453 1,272 28.8 osh-native
28 no-host configure.ocaml 3,645 1,426 1,261 28.6 osh-nosouffle
36 no-host configure.ocaml 3,612 1,430 1,213 28.7 osh-static
5 no-host configure.tcc 46 25 22 26.3 bash
13 no-host configure.tcc 41 24 18 26.2 dash
21 no-host configure.tcc 46 24 23 26.1 osh-native
29 no-host configure.tcc 46 24 23 26.3 osh-nosouffle
37 no-host configure.tcc 43 22 21 26.1 osh-static
3 no-host configure.util-linux 12,461 6,524 6,412 39.5 bash
11 no-host configure.util-linux 13,115 6,322 7,285 39.4 dash
19 no-host configure.util-linux 12,261 6,119 6,360 39.6 osh-native
27 no-host configure.util-linux 12,313 6,188 6,349 39.7 osh-nosouffle
35 no-host configure.util-linux 11,879 6,079 6,005 39.6 osh-static
6 no-host configure.yash 1,685 1,001 692 33.2 bash
14 no-host configure.yash 1,602 919 686 33.4 dash
22 no-host configure.yash 1,688 937 754 33.4 osh-native
30 no-host configure.yash 1,660 925 738 33.3 osh-nosouffle
38 no-host configure.yash 1,640 925 717 33.1 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 0 3 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 3.3 osh-static

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,386 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,323 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,431 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,805 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,400 0 0 0 8 0 1,999 55 bash
9 no-host bin-true 49,399 0 0 0 8 0 2,995 52 dash
17 no-host bin-true 137,590 0 0 0 16 0 1,997 94 osh-native
25 no-host bin-true 137,841 0 0 0 16 0 1,998 80 osh-nosouffle
33 no-host bin-true 111,327 0 0 0 8 0 1,997 67 osh-static
2 no-host configure.cpython 1,618,416 0 0 0 25,272 0 14,090 1,044 bash
10 no-host configure.cpython 1,638,308 0 0 0 25,272 0 14,123 1,036 dash
18 no-host configure.cpython 1,592,069 0 0 0 25,280 0 11,304 865 osh-native
26 no-host configure.cpython 1,603,422 0 0 0 25,280 0 11,312 953 osh-nosouffle
34 no-host configure.cpython 1,518,279 1 0 0 25,272 0 11,310 837 osh-static
4 no-host configure.ocaml 298,687 0 0 0 4,432 0 2,021 198 bash
12 no-host configure.ocaml 280,808 0 0 0 4,432 0 2,115 205 dash
20 no-host configure.ocaml 305,853 0 0 0 4,440 0 2,000 219 osh-native
28 no-host configure.ocaml 307,489 0 0 0 4,440 0 2,000 203 osh-nosouffle
36 no-host configure.ocaml 299,571 0 0 0 4,432 0 2,000 240 osh-static
5 no-host configure.tcc 5,206 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,225 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,618 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,679 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,545,014 2 0 0 35,944 0 18,952 1,055 bash
11 no-host configure.util-linux 1,697,097 2 0 0 35,936 0 17,044 1,158 dash
19 no-host configure.util-linux 1,502,113 2 0 0 35,952 0 16,202 928 osh-native
27 no-host configure.util-linux 1,514,840 2 0 0 35,952 0 16,225 958 osh-nosouffle
35 no-host configure.util-linux 1,449,153 1 0 0 35,936 0 16,148 950 osh-static
6 no-host configure.yash 173,221 0 0 0 3,616 0 878 93 bash
14 no-host configure.yash 159,524 0 0 0 3,616 0 1,001 107 dash
22 no-host configure.yash 176,996 0 0 8 3,624 0 857 106 osh-native
30 no-host configure.yash 176,759 0 0 0 3,624 0 859 93 osh-nosouffle
38 no-host configure.yash 172,992 0 0 0 3,624 0 859 101 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 389 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 182 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-e77b766f
osh-nosouffle osh-32e9a23e
osh-static osh-static-5605ab3f
host label host id
no-host no-host-9c670df1