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.27 1.13
bin-true no-host 614 436 806 795 645 1.31 1.05
configure.cpython no-host 13,397 13,749 13,208 13,083 12,544 0.99 0.94
configure.ocaml no-host 3,608 3,662 3,608 3,617 3,586 1.00 0.99
configure.tcc no-host 45 41 45 46 42 1.00 0.93
configure.util-linux no-host 12,220 13,586 12,133 12,160 11,740 0.99 0.96
configure.yash no-host 1,667 1,650 1,647 1,645 1,621 0.99 0.97
hello-world no-host 1 1 3 3 1 2.50 1.03

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,399 1,148 3,306 3,429 2,802 1.38 1.17
bin-true no-host 101,508 49,462 134,533 134,572 111,332 1.33 1.10
configure.cpython no-host 1,625,813 1,638,344 1,585,719 1,618,147 1,520,464 0.98 0.94
configure.ocaml no-host 299,318 281,170 305,546 307,009 299,977 1.02 1.00
configure.tcc no-host 5,228 4,225 5,617 5,719 5,127 1.07 0.98
configure.util-linux no-host 1,540,046 1,702,424 1,501,000 1,512,180 1,449,759 0.97 0.94
configure.yash no-host 173,134 159,531 176,982 177,558 172,644 1.02 1.00
hello-world no-host 152 90 391 398 182 2.57 1.20

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.4 10.1 6.4 1.95 1.32
bin-true no-host 3.1 1.6 8.7 9.0 5.2 2.75 1.67
configure.cpython no-host 34.5 34.7 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.4 26.1 26.2 26.0 26.2 0.99 0.99
configure.util-linux no-host 39.5 39.7 39.6 39.5 39.6 1.00 1.00
configure.yash no-host 33.3 33.4 33.2 33.3 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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 806 1 2 3.5 8.7 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,208 1 61 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,133 3 59 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,608 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 45 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,647 1 2 2.7 33.2 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 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 795 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,083 1 59 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,160 3 59 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,617 1 2 2.8 28.7 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.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,645 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.1 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.9 dash
23 no-host abuild-print-help 20 10 11 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 614 311 340 3.1 bash
9 no-host bin-true 436 275 168 1.6 dash
17 no-host bin-true 806 311 510 8.7 osh-native
25 no-host bin-true 795 303 509 9.0 osh-nosouffle
33 no-host bin-true 645 320 342 5.2 osh-static
2 no-host configure.cpython 13,397 7,360 6,414 34.5 bash
10 no-host configure.cpython 13,749 7,601 6,542 34.7 dash
18 no-host configure.cpython 13,208 7,061 6,382 34.5 osh-native
26 no-host configure.cpython 13,083 6,966 6,399 34.5 osh-nosouffle
34 no-host configure.cpython 12,544 6,959 5,816 34.4 osh-static
4 no-host configure.ocaml 3,608 1,435 1,212 28.7 bash
12 no-host configure.ocaml 3,662 1,461 1,226 28.7 dash
20 no-host configure.ocaml 3,608 1,433 1,213 28.7 osh-native
28 no-host configure.ocaml 3,617 1,420 1,237 28.7 osh-nosouffle
36 no-host configure.ocaml 3,586 1,427 1,189 28.6 osh-static
5 no-host configure.tcc 45 25 21 26.4 bash
13 no-host configure.tcc 41 24 18 26.1 dash
21 no-host configure.tcc 45 22 24 26.2 osh-native
29 no-host configure.tcc 46 25 21 26.0 osh-nosouffle
37 no-host configure.tcc 42 22 21 26.2 osh-static
3 no-host configure.util-linux 12,220 6,457 6,229 39.5 bash
11 no-host configure.util-linux 13,586 6,666 7,415 39.7 dash
19 no-host configure.util-linux 12,133 5,989 6,363 39.6 osh-native
27 no-host configure.util-linux 12,160 6,070 6,309 39.5 osh-nosouffle
35 no-host configure.util-linux 11,740 6,013 5,935 39.6 osh-static
6 no-host configure.yash 1,667 927 748 33.3 bash
14 no-host configure.yash 1,650 929 723 33.4 dash
22 no-host configure.yash 1,647 928 721 33.2 osh-native
30 no-host configure.yash 1,645 925 722 33.3 osh-nosouffle
38 no-host configure.yash 1,621 935 689 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 0 3 6.6 osh-native
24 no-host hello-world 3 1 2 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,399 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,148 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,306 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,429 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,802 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,508 0 0 0 8 0 2,000 71 bash
9 no-host bin-true 49,462 0 0 0 8 0 2,992 45 dash
17 no-host bin-true 134,533 0 0 0 16 0 1,998 83 osh-native
25 no-host bin-true 134,572 0 0 0 16 0 1,995 78 osh-nosouffle
33 no-host bin-true 111,332 0 0 0 8 0 1,997 56 osh-static
2 no-host configure.cpython 1,625,813 0 0 0 25,272 0 14,069 1,027 bash
10 no-host configure.cpython 1,638,344 0 0 0 25,272 0 14,112 1,018 dash
18 no-host configure.cpython 1,585,719 0 0 0 25,280 0 11,299 788 osh-native
26 no-host configure.cpython 1,618,147 0 0 0 25,280 0 11,312 916 osh-nosouffle
34 no-host configure.cpython 1,520,464 1 0 0 25,272 0 11,301 832 osh-static
4 no-host configure.ocaml 299,318 0 0 0 4,432 0 2,017 210 bash
12 no-host configure.ocaml 281,170 0 0 0 4,432 0 2,105 209 dash
20 no-host configure.ocaml 305,546 0 0 8 4,440 0 2,003 232 osh-native
28 no-host configure.ocaml 307,009 0 0 0 4,440 0 1,996 191 osh-nosouffle
36 no-host configure.ocaml 299,977 0 0 0 4,432 0 2,004 236 osh-static
5 no-host configure.tcc 5,228 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,225 0 0 0 88 0 53 2 dash
21 no-host configure.tcc 5,617 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,719 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,127 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,540,046 1 0 0 35,944 0 18,962 1,046 bash
11 no-host configure.util-linux 1,702,424 1 0 0 35,936 0 17,122 1,297 dash
19 no-host configure.util-linux 1,501,000 0 0 0 35,952 0 16,147 941 osh-native
27 no-host configure.util-linux 1,512,180 1 0 0 35,944 0 16,213 901 osh-nosouffle
35 no-host configure.util-linux 1,449,759 0 0 0 35,944 0 16,152 969 osh-static
6 no-host configure.yash 173,134 0 0 0 3,616 0 879 88 bash
14 no-host configure.yash 159,531 0 0 0 3,616 0 1,002 108 dash
22 no-host configure.yash 176,982 0 0 0 3,624 0 858 100 osh-native
30 no-host configure.yash 177,558 0 0 0 3,624 0 858 102 osh-nosouffle
38 no-host configure.yash 172,644 0 0 0 3,616 0 859 89 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 90 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 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-17b7bed1
osh-nosouffle osh-4a0e885d
osh-static osh-static-d46d22a1
host label host id
no-host no-host-9c670df1