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 22 18 1.27 1.14
bin-true no-host 615 453 817 803 652 1.33 1.06
configure.cpython no-host 13,734 13,834 13,403 13,431 13,051 0.98 0.95
configure.ocaml no-host 3,694 3,610 3,679 3,731 3,645 1.00 0.99
configure.tcc no-host 46 41 46 47 42 1.01 0.93
configure.util-linux no-host 12,445 13,153 12,470 12,688 12,157 1.00 0.98
configure.yash no-host 1,707 1,637 1,677 1,699 1,674 0.98 0.98
hello-world no-host 1 1 3 3 1 2.42 1.07

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,398 1,172 3,343 3,474 2,802 1.39 1.17
bin-true no-host 101,437 49,381 138,855 135,592 110,331 1.37 1.09
configure.cpython no-host 1,618,944 1,641,032 1,597,718 1,613,650 1,522,105 0.99 0.94
configure.ocaml no-host 299,203 280,755 306,715 306,496 300,043 1.03 1.00
configure.tcc no-host 5,228 4,228 5,604 5,708 5,130 1.07 0.98
configure.util-linux no-host 1,534,944 1,702,362 1,504,647 1,511,044 1,449,686 0.98 0.94
configure.yash no-host 173,321 159,497 176,643 177,209 172,703 1.02 1.00
hello-world no-host 154 87 389 398 179 2.53 1.16

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.6 4.1 9.6 10.0 6.4 2.09 1.40
bin-true no-host 3.3 1.6 8.8 8.9 5.1 2.68 1.56
configure.cpython no-host 34.4 34.5 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.8 28.5 28.7 1.00 1.00
configure.tcc no-host 26.3 26.1 26.1 26.3 26.3 0.99 1.00
configure.util-linux no-host 39.9 39.6 39.6 39.7 39.7 0.99 1.00
configure.yash no-host 33.1 33.3 33.1 33.4 33.1 1.00 1.00
hello-world no-host 3.3 1.6 6.4 7.1 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 817 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,403 1 65 14.8 34.4 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 63 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,679 1 2 2.8 28.8 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.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,677 1 2 2.7 33.1 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 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 803 1 2 3.5 8.9 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,431 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,688 3 66 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,731 1 2 2.8 28.5 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.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,699 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 22 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 8 4.6 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 20 9 12 9.6 osh-native
31 no-host abuild-print-help 22 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 8 6.4 osh-static
1 no-host bin-true 615 309 342 3.3 bash
9 no-host bin-true 453 280 180 1.6 dash
17 no-host bin-true 817 313 519 8.8 osh-native
25 no-host bin-true 803 309 510 8.9 osh-nosouffle
33 no-host bin-true 652 327 341 5.1 osh-static
2 no-host configure.cpython 13,734 7,523 6,597 34.4 bash
10 no-host configure.cpython 13,834 7,573 6,627 34.5 dash
18 no-host configure.cpython 13,403 7,172 6,503 34.4 osh-native
26 no-host configure.cpython 13,431 7,149 6,564 34.5 osh-nosouffle
34 no-host configure.cpython 13,051 7,202 6,064 34.5 osh-static
4 no-host configure.ocaml 3,694 1,506 1,229 28.7 bash
12 no-host configure.ocaml 3,610 1,487 1,147 28.7 dash
20 no-host configure.ocaml 3,679 1,475 1,244 28.8 osh-native
28 no-host configure.ocaml 3,731 1,472 1,301 28.5 osh-nosouffle
36 no-host configure.ocaml 3,645 1,437 1,241 28.7 osh-static
5 no-host configure.tcc 46 24 22 26.3 bash
13 no-host configure.tcc 41 22 19 26.1 dash
21 no-host configure.tcc 46 21 25 26.1 osh-native
29 no-host configure.tcc 47 22 25 26.3 osh-nosouffle
37 no-host configure.tcc 42 27 16 26.3 osh-static
3 no-host configure.util-linux 12,445 6,594 6,312 39.9 bash
11 no-host configure.util-linux 13,153 6,455 7,188 39.6 dash
19 no-host configure.util-linux 12,470 6,151 6,503 39.6 osh-native
27 no-host configure.util-linux 12,688 6,262 6,649 39.7 osh-nosouffle
35 no-host configure.util-linux 12,157 6,190 6,179 39.7 osh-static
6 no-host configure.yash 1,707 913 802 33.1 bash
14 no-host configure.yash 1,637 920 718 33.3 dash
22 no-host configure.yash 1,677 933 748 33.1 osh-native
30 no-host configure.yash 1,699 969 734 33.4 osh-nosouffle
38 no-host configure.yash 1,674 953 723 33.1 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 0 3 7.1 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,398 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,172 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,343 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,474 0 0 0 16 0 38 4 osh-nosouffle
39 no-host abuild-print-help 2,802 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,437 0 0 0 8 0 1,997 62 bash
9 no-host bin-true 49,381 0 0 0 8 0 2,990 42 dash
17 no-host bin-true 138,855 0 0 0 16 0 1,998 99 osh-native
25 no-host bin-true 135,592 0 0 0 16 0 2,000 94 osh-nosouffle
33 no-host bin-true 110,331 0 0 0 8 0 1,999 71 osh-static
2 no-host configure.cpython 1,618,944 1 0 0 25,272 0 14,077 1,134 bash
10 no-host configure.cpython 1,641,032 0 0 0 25,272 0 14,102 1,009 dash
18 no-host configure.cpython 1,597,718 0 0 0 25,280 0 11,298 866 osh-native
26 no-host configure.cpython 1,613,650 0 0 0 25,280 0 11,299 850 osh-nosouffle
34 no-host configure.cpython 1,522,105 0 0 0 25,272 0 11,302 805 osh-static
4 no-host configure.ocaml 299,203 0 0 0 4,432 0 2,016 187 bash
12 no-host configure.ocaml 280,755 0 0 0 4,432 0 2,108 187 dash
20 no-host configure.ocaml 306,715 0 0 8 4,440 0 2,001 239 osh-native
28 no-host configure.ocaml 306,496 0 0 0 4,440 0 2,000 194 osh-nosouffle
36 no-host configure.ocaml 300,043 0 0 0 4,432 0 1,996 196 osh-static
5 no-host configure.tcc 5,228 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,228 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,604 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,708 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,130 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,944 1 0 0 35,944 0 18,991 1,050 bash
11 no-host configure.util-linux 1,702,362 0 0 0 35,936 0 17,055 1,168 dash
19 no-host configure.util-linux 1,504,647 2 0 0 35,952 0 16,193 901 osh-native
27 no-host configure.util-linux 1,511,044 2 0 0 35,944 0 16,120 919 osh-nosouffle
35 no-host configure.util-linux 1,449,686 2 0 0 35,936 0 16,203 910 osh-static
6 no-host configure.yash 173,321 0 0 0 3,616 0 880 107 bash
14 no-host configure.yash 159,497 0 0 0 3,616 0 1,003 99 dash
22 no-host configure.yash 176,643 0 0 0 3,632 0 858 103 osh-native
30 no-host configure.yash 177,209 0 0 0 3,624 0 856 104 osh-nosouffle
38 no-host configure.yash 172,703 0 0 0 3,616 0 857 101 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 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 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 179 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-6e018e35
osh-nosouffle osh-089cd70d
osh-static osh-static-d30eebd7
host label host id
no-host no-host-9c670df1