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 21 21 18 1.29 1.15
bin-true no-host 616 438 819 841 658 1.33 1.07
configure.cpython no-host 14,053 14,139 13,763 13,914 13,252 0.98 0.94
configure.ocaml no-host 3,723 3,673 3,775 3,774 3,713 1.01 1.00
configure.tcc no-host 45 41 47 47 43 1.04 0.95
configure.util-linux no-host 12,766 13,524 12,757 12,819 12,408 1.00 0.97
configure.yash no-host 1,733 1,673 1,755 1,752 1,701 1.01 0.98
hello-world no-host 1 1 3 3 1 2.41 1.09

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,408 1,189 3,357 3,437 2,804 1.39 1.16
bin-true no-host 100,417 49,372 138,862 138,610 111,396 1.38 1.11
configure.cpython no-host 1,622,112 1,640,178 1,584,255 1,600,408 1,520,953 0.98 0.94
configure.ocaml no-host 299,116 280,583 305,417 306,686 299,799 1.02 1.00
configure.tcc no-host 5,182 4,203 5,602 5,695 5,117 1.08 0.99
configure.util-linux no-host 1,531,207 1,695,767 1,499,657 1,508,010 1,450,613 0.98 0.95
configure.yash no-host 173,353 159,597 176,990 177,509 172,681 1.02 1.00
hello-world no-host 152 88 388 396 179 2.55 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 3.9 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.8 9.2 5.2 2.79 1.67
configure.cpython no-host 34.5 34.5 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.8 28.6 28.7 28.8 28.5 1.00 0.99
configure.tcc no-host 26.0 26.1 26.0 26.1 26.1 1.00 1.01
configure.util-linux no-host 39.7 39.6 39.6 39.6 39.7 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.1 33.4 1.00 1.00
hello-world no-host 3.3 1.7 6.4 6.9 3.3 1.96 1.00

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 819 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,763 1 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,757 3 67 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,775 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.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,755 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 21 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 841 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,914 2 68 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,819 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,774 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.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,752 1 2 2.7 33.1 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 5 5 3.9 dash
23 no-host abuild-print-help 21 12 9 9.6 osh-native
31 no-host abuild-print-help 21 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.4 osh-static
1 no-host bin-true 616 314 338 3.1 bash
9 no-host bin-true 438 270 174 1.6 dash
17 no-host bin-true 819 313 522 8.8 osh-native
25 no-host bin-true 841 296 564 9.2 osh-nosouffle
33 no-host bin-true 658 317 358 5.2 osh-static
2 no-host configure.cpython 14,053 7,687 6,752 34.5 bash
10 no-host configure.cpython 14,139 7,707 6,837 34.5 dash
18 no-host configure.cpython 13,763 7,291 6,733 34.5 osh-native
26 no-host configure.cpython 13,914 7,389 6,804 34.5 osh-nosouffle
34 no-host configure.cpython 13,252 7,365 6,123 34.4 osh-static
4 no-host configure.ocaml 3,723 1,519 1,244 28.8 bash
12 no-host configure.ocaml 3,673 1,507 1,191 28.6 dash
20 no-host configure.ocaml 3,775 1,544 1,268 28.7 osh-native
28 no-host configure.ocaml 3,774 1,543 1,271 28.8 osh-nosouffle
36 no-host configure.ocaml 3,713 1,479 1,265 28.5 osh-static
5 no-host configure.tcc 45 25 21 26.0 bash
13 no-host configure.tcc 41 20 22 26.1 dash
21 no-host configure.tcc 47 24 23 26.0 osh-native
29 no-host configure.tcc 47 27 21 26.1 osh-nosouffle
37 no-host configure.tcc 43 26 17 26.1 osh-static
3 no-host configure.util-linux 12,766 6,761 6,474 39.7 bash
11 no-host configure.util-linux 13,524 6,681 7,341 39.6 dash
19 no-host configure.util-linux 12,757 6,312 6,666 39.6 osh-native
27 no-host configure.util-linux 12,819 6,292 6,750 39.6 osh-nosouffle
35 no-host configure.util-linux 12,408 6,361 6,257 39.7 osh-static
6 no-host configure.yash 1,733 965 777 33.3 bash
14 no-host configure.yash 1,673 943 731 33.4 dash
22 no-host configure.yash 1,755 954 802 33.4 osh-native
30 no-host configure.yash 1,752 987 766 33.1 osh-nosouffle
38 no-host configure.yash 1,701 948 755 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.7 dash
16 no-host hello-world 3 0 3 6.4 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,408 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,189 0 0 0 8 0 40 2 dash
23 no-host abuild-print-help 3,357 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,437 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,804 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 100,417 0 0 0 8 0 2,000 65 bash
9 no-host bin-true 49,372 0 0 0 8 0 2,993 51 dash
17 no-host bin-true 138,862 0 0 0 16 0 1,998 69 osh-native
25 no-host bin-true 138,610 0 0 0 16 0 1,998 87 osh-nosouffle
33 no-host bin-true 111,396 0 0 0 8 0 1,998 81 osh-static
2 no-host configure.cpython 1,622,112 0 0 0 25,272 0 14,072 1,044 bash
10 no-host configure.cpython 1,640,178 0 0 0 25,272 0 14,137 1,029 dash
18 no-host configure.cpython 1,584,255 0 0 0 25,280 0 11,291 797 osh-native
26 no-host configure.cpython 1,600,408 0 0 0 25,280 0 11,295 908 osh-nosouffle
34 no-host configure.cpython 1,520,953 0 0 0 25,272 0 11,299 795 osh-static
4 no-host configure.ocaml 299,116 0 0 0 4,432 0 2,020 191 bash
12 no-host configure.ocaml 280,583 0 0 0 4,432 0 2,105 194 dash
20 no-host configure.ocaml 305,417 0 0 0 4,440 0 1,998 210 osh-native
28 no-host configure.ocaml 306,686 0 0 0 4,440 0 1,999 209 osh-nosouffle
36 no-host configure.ocaml 299,799 0 0 0 4,432 0 1,997 236 osh-static
5 no-host configure.tcc 5,182 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,203 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,602 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,695 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,117 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,531,207 1 0 0 35,944 0 19,048 1,048 bash
11 no-host configure.util-linux 1,695,767 1 0 0 35,936 0 17,039 1,168 dash
19 no-host configure.util-linux 1,499,657 0 0 0 35,952 0 16,216 910 osh-native
27 no-host configure.util-linux 1,508,010 2 0 0 35,944 0 16,231 940 osh-nosouffle
35 no-host configure.util-linux 1,450,613 0 0 0 35,936 0 16,232 939 osh-static
6 no-host configure.yash 173,353 0 0 0 3,616 0 879 94 bash
14 no-host configure.yash 159,597 0 0 0 3,616 0 1,001 100 dash
22 no-host configure.yash 176,990 0 0 0 3,624 0 855 101 osh-native
30 no-host configure.yash 177,509 0 0 0 3,624 0 858 103 osh-nosouffle
38 no-host configure.yash 172,681 0 0 0 3,624 0 857 108 osh-static
0 no-host hello-world 152 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 388 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 179 0 0 0 8 0 1 2 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-e417f606
osh-nosouffle osh-1b835c12
osh-static osh-static-7ed5bb29
host label host id
no-host no-host-44ad0cc8