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.31 1.16
bin-true no-host 623 444 805 803 656 1.29 1.05
configure.cpython no-host 14,081 14,031 13,750 13,757 13,197 0.98 0.94
configure.ocaml no-host 3,710 3,651 3,736 3,750 3,719 1.01 1.00
configure.tcc no-host 46 41 46 47 44 1.01 0.97
configure.util-linux no-host 12,843 13,470 12,661 12,751 12,332 0.99 0.96
configure.yash no-host 1,711 1,665 1,721 1,730 1,699 1.01 0.99
hello-world no-host 1 1 3 3 1 2.28 0.99

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,407 1,196 3,348 3,408 2,797 1.39 1.16
bin-true no-host 101,487 49,391 134,557 134,555 110,362 1.33 1.09
configure.cpython no-host 1,624,437 1,641,891 1,597,436 1,608,904 1,521,328 0.98 0.94
configure.ocaml no-host 299,108 280,934 306,177 306,771 299,610 1.02 1.00
configure.tcc no-host 5,243 4,206 5,563 5,647 5,126 1.06 0.98
configure.util-linux no-host 1,541,501 1,703,137 1,496,142 1,503,066 1,449,622 0.97 0.94
configure.yash no-host 173,351 159,519 176,460 176,780 172,731 1.02 1.00
hello-world no-host 151 86 391 398 179 2.59 1.19

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.8 3.8 9.4 10.0 6.4 1.95 1.32
bin-true no-host 3.1 1.7 8.8 9.0 5.1 2.79 1.62
configure.cpython no-host 34.7 34.6 34.5 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.6 28.8 28.5 1.00 0.99
configure.tcc no-host 26.1 26.0 26.3 26.0 26.2 1.01 1.00
configure.util-linux no-host 39.6 39.6 39.7 39.6 39.6 1.00 1.00
configure.yash no-host 33.2 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.3 2.08 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.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 805 1 2 3.5 8.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,750 2 67 14.8 34.5 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,661 3 66 21.6 39.7 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,736 1 2 2.8 28.6 149,932 12,652 6,557 9,207 70,540 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,721 1 2 2.7 33.4 143,736 11,764 6,618 7,160 70,796 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 803 1 2 3.5 9.0 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,757 1 66 14.9 34.6 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,751 3 66 21.6 39.6 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,750 1 2 2.8 28.8 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.7 33.4 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 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 10 6 4.8 bash
15 no-host abuild-print-help 9 5 4 3.8 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.4 osh-static
1 no-host bin-true 623 313 349 3.1 bash
9 no-host bin-true 444 271 175 1.7 dash
17 no-host bin-true 805 307 515 8.8 osh-native
25 no-host bin-true 803 313 506 9.0 osh-nosouffle
33 no-host bin-true 656 315 358 5.1 osh-static
2 no-host configure.cpython 14,081 7,682 6,765 34.7 bash
10 no-host configure.cpython 14,031 7,587 6,829 34.6 dash
18 no-host configure.cpython 13,750 7,343 6,680 34.5 osh-native
26 no-host configure.cpython 13,757 7,247 6,791 34.6 osh-nosouffle
34 no-host configure.cpython 13,197 7,235 6,169 34.5 osh-static
4 no-host configure.ocaml 3,710 1,445 1,290 28.7 bash
12 no-host configure.ocaml 3,651 1,486 1,190 28.5 dash
20 no-host configure.ocaml 3,736 1,490 1,286 28.6 osh-native
28 no-host configure.ocaml 3,750 1,527 1,258 28.8 osh-nosouffle
36 no-host configure.ocaml 3,719 1,511 1,238 28.5 osh-static
5 no-host configure.tcc 46 26 21 26.1 bash
13 no-host configure.tcc 41 24 17 26.0 dash
21 no-host configure.tcc 46 26 21 26.3 osh-native
29 no-host configure.tcc 47 22 25 26.0 osh-nosouffle
37 no-host configure.tcc 44 21 24 26.2 osh-static
3 no-host configure.util-linux 12,843 6,750 6,558 39.6 bash
11 no-host configure.util-linux 13,470 6,637 7,320 39.6 dash
19 no-host configure.util-linux 12,661 6,299 6,563 39.7 osh-native
27 no-host configure.util-linux 12,751 6,307 6,656 39.6 osh-nosouffle
35 no-host configure.util-linux 12,332 6,318 6,207 39.6 osh-static
6 no-host configure.yash 1,711 953 766 33.2 bash
14 no-host configure.yash 1,665 938 726 33.4 dash
22 no-host configure.yash 1,721 946 777 33.4 osh-native
30 no-host configure.yash 1,730 952 780 33.4 osh-nosouffle
38 no-host configure.yash 1,699 970 731 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 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,407 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,196 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,348 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,408 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,797 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,487 0 0 0 8 0 1,997 42 bash
9 no-host bin-true 49,391 0 0 0 8 0 2,998 80 dash
17 no-host bin-true 134,557 0 0 0 16 0 2,000 76 osh-native
25 no-host bin-true 134,555 0 0 0 16 0 1,998 80 osh-nosouffle
33 no-host bin-true 110,362 0 0 0 8 0 1,996 59 osh-static
2 no-host configure.cpython 1,624,437 0 0 0 25,272 0 14,082 1,004 bash
10 no-host configure.cpython 1,641,891 0 0 0 25,272 0 14,122 1,082 dash
18 no-host configure.cpython 1,597,436 0 0 0 25,280 0 11,289 836 osh-native
26 no-host configure.cpython 1,608,904 0 0 0 25,280 0 11,299 790 osh-nosouffle
34 no-host configure.cpython 1,521,328 0 0 0 25,272 0 11,302 818 osh-static
4 no-host configure.ocaml 299,108 0 0 0 4,432 0 2,022 197 bash
12 no-host configure.ocaml 280,934 0 0 0 4,432 0 2,108 197 dash
20 no-host configure.ocaml 306,177 0 0 0 4,440 0 1,997 212 osh-native
28 no-host configure.ocaml 306,771 0 0 0 4,440 0 1,996 216 osh-nosouffle
36 no-host configure.ocaml 299,610 0 0 0 4,432 0 1,996 218 osh-static
5 no-host configure.tcc 5,243 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,563 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,647 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,126 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,541,501 0 0 0 35,944 0 19,031 1,069 bash
11 no-host configure.util-linux 1,703,137 1 0 0 35,936 0 17,088 1,174 dash
19 no-host configure.util-linux 1,496,142 1 0 0 35,952 0 16,208 946 osh-native
27 no-host configure.util-linux 1,503,066 4 0 0 35,944 0 16,209 887 osh-nosouffle
35 no-host configure.util-linux 1,449,622 3 0 0 35,936 0 16,131 904 osh-static
6 no-host configure.yash 173,351 0 0 0 3,616 0 876 90 bash
14 no-host configure.yash 159,519 0 0 0 3,616 0 1,003 101 dash
22 no-host configure.yash 176,460 0 0 8 3,624 0 858 107 osh-native
30 no-host configure.yash 176,780 0 0 0 3,624 0 856 105 osh-nosouffle
38 no-host configure.yash 172,731 0 0 0 3,624 0 857 108 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 179 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-3606ce7d
osh-nosouffle osh-658f30e5
osh-static osh-static-c56c31a6
host label host id
no-host no-host-9c670df1