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 15 9 21 22 18 1.34 1.16
bin-true no-host 639 437 811 817 661 1.27 1.03
configure.cpython no-host 13,945 13,878 13,616 13,659 13,166 0.98 0.94
configure.ocaml no-host 3,662 3,692 3,698 3,734 3,758 1.01 1.03
configure.tcc no-host 46 41 47 47 48 1.02 1.05
configure.util-linux no-host 12,720 13,516 12,475 12,331 12,342 0.98 0.97
configure.yash no-host 1,686 1,680 1,714 1,684 1,725 1.02 1.02
hello-world no-host 1 1 3 3 1 2.32 0.98

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,372 1,161 3,345 3,438 2,798 1.41 1.18
bin-true no-host 102,406 49,412 134,546 137,494 110,959 1.31 1.08
configure.cpython no-host 1,622,671 1,637,972 1,587,257 1,610,660 1,524,329 0.98 0.94
configure.ocaml no-host 299,247 280,657 306,378 305,640 300,248 1.02 1.00
configure.tcc no-host 5,229 4,194 5,575 5,694 5,137 1.07 0.98
configure.util-linux no-host 1,545,048 1,701,390 1,493,762 1,509,448 1,456,677 0.97 0.94
configure.yash no-host 173,132 159,527 176,845 176,930 173,068 1.02 1.00
hello-world no-host 150 86 391 395 183 2.61 1.22

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.3 1.6 8.8 9.4 5.4 2.68 1.64
configure.cpython no-host 34.5 34.5 34.4 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.6 28.8 28.7 1.00 1.00
configure.tcc no-host 26.4 26.2 26.2 26.1 26.2 0.99 0.99
configure.util-linux no-host 39.7 39.7 39.5 39.6 39.9 0.99 1.00
configure.yash no-host 33.3 33.2 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 1.08

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 811 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,616 1 69 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,475 3 65 21.6 39.5 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,698 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 47 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,714 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 817 1 2 3.5 9.4 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,659 1 63 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,331 3 61 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,734 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,684 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 15 7 9 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 13 8 9.6 osh-native
31 no-host abuild-print-help 22 11 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.4 osh-static
1 no-host bin-true 639 309 370 3.3 bash
9 no-host bin-true 437 283 160 1.6 dash
17 no-host bin-true 811 320 507 8.8 osh-native
25 no-host bin-true 817 305 529 9.4 osh-nosouffle
33 no-host bin-true 661 320 358 5.4 osh-static
2 no-host configure.cpython 13,945 7,625 6,705 34.5 bash
10 no-host configure.cpython 13,878 7,565 6,712 34.5 dash
18 no-host configure.cpython 13,616 7,297 6,590 34.4 osh-native
26 no-host configure.cpython 13,659 7,050 6,617 34.5 osh-nosouffle
34 no-host configure.cpython 13,166 7,259 6,141 34.4 osh-static
4 no-host configure.ocaml 3,662 1,470 1,232 28.7 bash
12 no-host configure.ocaml 3,692 1,490 1,226 28.6 dash
20 no-host configure.ocaml 3,698 1,507 1,232 28.6 osh-native
28 no-host configure.ocaml 3,734 1,510 1,263 28.8 osh-nosouffle
36 no-host configure.ocaml 3,758 1,507 1,273 28.7 osh-static
5 no-host configure.tcc 46 29 18 26.4 bash
13 no-host configure.tcc 41 23 19 26.2 dash
21 no-host configure.tcc 47 28 19 26.2 osh-native
29 no-host configure.tcc 47 28 19 26.1 osh-nosouffle
37 no-host configure.tcc 48 20 27 26.2 osh-static
3 no-host configure.util-linux 12,720 6,660 6,519 39.7 bash
11 no-host configure.util-linux 13,516 6,542 7,470 39.7 dash
19 no-host configure.util-linux 12,475 6,296 6,396 39.5 osh-native
27 no-host configure.util-linux 12,331 6,157 6,395 39.6 osh-nosouffle
35 no-host configure.util-linux 12,342 6,221 6,313 39.9 osh-static
6 no-host configure.yash 1,686 922 771 33.3 bash
14 no-host configure.yash 1,680 960 717 33.2 dash
22 no-host configure.yash 1,714 976 741 33.4 osh-native
30 no-host configure.yash 1,684 933 753 33.4 osh-nosouffle
38 no-host configure.yash 1,725 951 773 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 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 3.4 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,372 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 41 0 dash
23 no-host abuild-print-help 3,345 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,438 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,798 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,406 0 0 0 8 0 1,999 63 bash
9 no-host bin-true 49,412 0 0 0 8 0 2,998 40 dash
17 no-host bin-true 134,546 0 0 0 16 0 2,000 64 osh-native
25 no-host bin-true 137,494 0 0 0 16 0 1,998 67 osh-nosouffle
33 no-host bin-true 110,959 0 0 0 8 0 1,994 83 osh-static
2 no-host configure.cpython 1,622,671 1 0 0 25,272 0 14,068 1,022 bash
10 no-host configure.cpython 1,637,972 0 0 0 25,272 0 14,089 1,082 dash
18 no-host configure.cpython 1,587,257 0 0 0 25,280 0 11,295 862 osh-native
26 no-host configure.cpython 1,610,660 0 0 0 25,280 0 11,326 894 osh-nosouffle
34 no-host configure.cpython 1,524,329 0 0 0 25,272 0 11,306 873 osh-static
4 no-host configure.ocaml 299,247 0 0 0 4,432 0 2,017 201 bash
12 no-host configure.ocaml 280,657 0 0 0 4,432 0 2,107 182 dash
20 no-host configure.ocaml 306,378 0 0 0 4,440 0 1,998 207 osh-native
28 no-host configure.ocaml 305,640 0 0 0 4,440 0 2,003 193 osh-nosouffle
36 no-host configure.ocaml 300,248 0 0 0 4,432 0 2,002 223 osh-static
5 no-host configure.tcc 5,229 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,194 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,575 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,694 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,137 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,545,048 0 0 232 35,944 0 18,974 1,077 bash
11 no-host configure.util-linux 1,701,390 0 0 0 35,936 0 17,073 1,237 dash
19 no-host configure.util-linux 1,493,762 0 0 0 35,952 0 16,206 898 osh-native
27 no-host configure.util-linux 1,509,448 1 0 0 35,944 0 16,142 905 osh-nosouffle
35 no-host configure.util-linux 1,456,677 2 0 0 35,944 0 16,127 899 osh-static
6 no-host configure.yash 173,132 0 0 0 3,616 0 878 105 bash
14 no-host configure.yash 159,527 0 0 0 3,624 0 1,003 101 dash
22 no-host configure.yash 176,845 0 0 0 3,624 0 856 100 osh-native
30 no-host configure.yash 176,930 0 0 0 3,624 0 861 98 osh-nosouffle
38 no-host configure.yash 173,068 0 0 0 3,616 0 857 99 osh-static
0 no-host hello-world 150 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 0 osh-nosouffle
32 no-host hello-world 183 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-574f5092
osh-nosouffle osh-1bb8aead
osh-static osh-static-4af5b9f6
host label host id
no-host no-host-9c670df1