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.28 1.16
bin-true no-host 609 437 804 797 653 1.32 1.07
configure.cpython no-host 13,821 13,791 13,507 13,490 12,946 0.98 0.94
configure.ocaml no-host 3,639 3,614 3,676 3,736 3,642 1.01 1.00
configure.tcc no-host 46 41 47 46 43 1.02 0.93
configure.util-linux no-host 12,531 13,173 12,470 12,536 12,039 1.00 0.96
configure.yash no-host 1,712 1,635 1,682 1,693 1,694 0.98 0.99
hello-world no-host 1 1 3 3 1 2.27 0.96

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,374 1,202 3,363 3,467 2,806 1.42 1.18
bin-true no-host 100,431 49,364 135,566 137,600 111,347 1.35 1.11
configure.cpython no-host 1,634,109 1,640,982 1,599,250 1,619,301 1,521,138 0.98 0.93
configure.ocaml no-host 299,243 280,715 306,430 306,664 299,859 1.02 1.00
configure.tcc no-host 5,230 4,207 5,624 5,656 5,123 1.08 0.98
configure.util-linux no-host 1,538,483 1,695,462 1,506,265 1,502,584 1,449,879 0.98 0.94
configure.yash no-host 173,173 159,499 177,125 176,830 172,711 1.02 1.00
hello-world no-host 152 86 391 395 180 2.57 1.18

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 4.1 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.3 1.7 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.4 34.7 34.7 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.6 28.6 28.7 28.8 28.5 1.00 1.00
configure.tcc no-host 26.2 26.3 26.4 26.3 26.3 1.01 1.01
configure.util-linux no-host 39.6 39.6 39.7 39.5 39.5 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.3 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 804 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,507 1 66 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,470 3 64 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,676 1 2 2.8 28.7 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.4 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,682 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.6 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 797 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,490 1 65 14.9 34.5 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,536 3 64 21.6 39.5 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,736 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 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,693 1 2 2.7 33.3 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 9 7 4.8 bash
15 no-host abuild-print-help 9 4 6 4.1 dash
23 no-host abuild-print-help 20 11 10 9.6 osh-native
31 no-host abuild-print-help 21 15 7 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 609 314 333 3.3 bash
9 no-host bin-true 437 267 175 1.7 dash
17 no-host bin-true 804 301 519 8.8 osh-native
25 no-host bin-true 797 302 511 9.2 osh-nosouffle
33 no-host bin-true 653 301 369 5.1 osh-static
2 no-host configure.cpython 13,821 7,524 6,682 34.4 bash
10 no-host configure.cpython 13,791 7,581 6,611 34.7 dash
18 no-host configure.cpython 13,507 7,146 6,635 34.7 osh-native
26 no-host configure.cpython 13,490 7,176 6,587 34.5 osh-nosouffle
34 no-host configure.cpython 12,946 7,121 6,056 34.5 osh-static
4 no-host configure.ocaml 3,639 1,441 1,233 28.6 bash
12 no-host configure.ocaml 3,614 1,494 1,144 28.6 dash
20 no-host configure.ocaml 3,676 1,488 1,226 28.7 osh-native
28 no-host configure.ocaml 3,736 1,453 1,324 28.8 osh-nosouffle
36 no-host configure.ocaml 3,642 1,426 1,246 28.5 osh-static
5 no-host configure.tcc 46 24 22 26.2 bash
13 no-host configure.tcc 41 28 13 26.3 dash
21 no-host configure.tcc 47 24 23 26.4 osh-native
29 no-host configure.tcc 46 22 25 26.3 osh-nosouffle
37 no-host configure.tcc 43 25 18 26.3 osh-static
3 no-host configure.util-linux 12,531 6,630 6,365 39.6 bash
11 no-host configure.util-linux 13,173 6,579 7,084 39.6 dash
19 no-host configure.util-linux 12,470 6,229 6,460 39.7 osh-native
27 no-host configure.util-linux 12,536 6,252 6,496 39.5 osh-nosouffle
35 no-host configure.util-linux 12,039 6,156 6,095 39.5 osh-static
6 no-host configure.yash 1,712 968 752 33.4 bash
14 no-host configure.yash 1,635 937 700 33.3 dash
22 no-host configure.yash 1,682 935 750 33.4 osh-native
30 no-host configure.yash 1,693 931 764 33.3 osh-nosouffle
38 no-host configure.yash 1,694 964 730 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 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,374 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,202 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,363 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,467 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,806 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 100,431 0 0 0 8 0 1,995 41 bash
9 no-host bin-true 49,364 0 0 0 8 0 2,995 52 dash
17 no-host bin-true 135,566 0 0 0 16 0 1,998 86 osh-native
25 no-host bin-true 137,600 0 0 0 16 0 1,998 82 osh-nosouffle
33 no-host bin-true 111,347 0 0 0 8 0 1,999 90 osh-static
2 no-host configure.cpython 1,634,109 0 0 0 25,272 0 14,068 1,046 bash
10 no-host configure.cpython 1,640,982 1 0 0 25,272 0 14,143 1,032 dash
18 no-host configure.cpython 1,599,250 0 0 0 25,280 0 11,294 798 osh-native
26 no-host configure.cpython 1,619,301 0 0 0 25,280 0 11,313 853 osh-nosouffle
34 no-host configure.cpython 1,521,138 0 0 0 25,272 0 11,288 840 osh-static
4 no-host configure.ocaml 299,243 0 0 0 4,432 0 2,019 202 bash
12 no-host configure.ocaml 280,715 0 0 0 4,432 0 2,107 168 dash
20 no-host configure.ocaml 306,430 0 0 0 4,440 0 1,998 216 osh-native
28 no-host configure.ocaml 306,664 0 0 0 4,440 0 2,002 203 osh-nosouffle
36 no-host configure.ocaml 299,859 0 0 0 4,432 0 1,991 234 osh-static
5 no-host configure.tcc 5,230 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,624 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,656 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,123 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,538,483 0 0 0 35,944 0 18,997 1,052 bash
11 no-host configure.util-linux 1,695,462 0 0 0 35,936 0 17,115 1,151 dash
19 no-host configure.util-linux 1,506,265 2 0 0 35,952 0 16,140 944 osh-native
27 no-host configure.util-linux 1,502,584 1 0 0 35,944 0 16,176 959 osh-nosouffle
35 no-host configure.util-linux 1,449,879 2 0 0 35,944 0 16,195 873 osh-static
6 no-host configure.yash 173,173 0 0 0 3,616 0 879 92 bash
14 no-host configure.yash 159,499 0 0 0 3,624 0 1,002 102 dash
22 no-host configure.yash 177,125 0 0 0 3,624 0 857 98 osh-native
30 no-host configure.yash 176,830 0 0 0 3,624 0 858 110 osh-nosouffle
38 no-host configure.yash 172,711 0 0 0 3,624 0 859 98 osh-static
0 no-host hello-world 152 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 395 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 180 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-9ea34007
osh-nosouffle osh-4e3715a2
osh-static osh-static-a7e6ce3d
host label host id
no-host no-host-44ad0cc8