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 19 1.28 1.18
bin-true no-host 624 445 811 809 665 1.30 1.07
configure.cpython no-host 13,830 13,753 13,354 13,737 13,619 0.97 0.98
configure.ocaml no-host 3,715 3,597 3,679 3,858 3,844 0.99 1.03
configure.tcc no-host 46 41 48 52 45 1.04 0.98
configure.util-linux no-host 12,519 13,263 12,317 13,005 12,857 0.98 1.03
configure.yash no-host 1,700 1,638 1,698 1,757 1,754 1.00 1.03
hello-world no-host 1 1 3 3 1 2.16 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,392 1,154 3,247 3,422 2,806 1.36 1.17
bin-true no-host 100,445 49,355 133,564 136,567 110,946 1.33 1.10
configure.cpython no-host 1,626,352 1,634,890 1,578,372 1,607,139 1,522,991 0.97 0.94
configure.ocaml no-host 299,113 280,580 305,312 306,502 300,166 1.02 1.00
configure.tcc no-host 5,223 4,203 5,582 5,677 5,140 1.07 0.98
configure.util-linux no-host 1,538,219 1,699,872 1,506,146 1,512,880 1,456,145 0.98 0.95
configure.yash no-host 173,432 159,571 176,927 176,936 173,039 1.02 1.00
hello-world no-host 152 88 388 397 182 2.55 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.7 3.8 9.4 10.0 6.4 2.00 1.36
bin-true no-host 3.1 1.4 8.8 9.3 5.2 2.79 1.67
configure.cpython no-host 34.4 34.4 34.7 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.5 28.6 28.8 28.7 28.7 1.01 1.00
configure.tcc no-host 26.2 26.1 26.3 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.6 39.6 39.6 39.7 1.00 1.01
configure.yash no-host 33.1 33.1 33.4 33.3 33.3 1.01 1.00
hello-world no-host 3.1 1.6 6.4 6.9 3.4 2.04 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.4 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,354 1 68 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,317 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,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 48 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,698 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.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 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 809 1 2 3.5 9.3 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,737 1 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 13,005 3 68 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,858 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 52 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,757 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 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 8 8 4.7 bash
15 no-host abuild-print-help 9 2 7 3.8 dash
23 no-host abuild-print-help 20 9 11 9.4 osh-native
31 no-host abuild-print-help 22 13 10 10.0 osh-nosouffle
39 no-host abuild-print-help 19 10 10 6.4 osh-static
1 no-host bin-true 624 317 345 3.1 bash
9 no-host bin-true 445 276 175 1.4 dash
17 no-host bin-true 811 319 508 8.8 osh-native
25 no-host bin-true 809 309 517 9.3 osh-nosouffle
33 no-host bin-true 665 333 351 5.2 osh-static
2 no-host configure.cpython 13,830 7,695 6,522 34.4 bash
10 no-host configure.cpython 13,753 7,479 6,682 34.4 dash
18 no-host configure.cpython 13,354 7,081 6,539 34.7 osh-native
26 no-host configure.cpython 13,737 7,319 6,707 34.5 osh-nosouffle
34 no-host configure.cpython 13,619 7,414 6,454 34.5 osh-static
4 no-host configure.ocaml 3,715 1,485 1,274 28.5 bash
12 no-host configure.ocaml 3,597 1,454 1,167 28.6 dash
20 no-host configure.ocaml 3,679 1,446 1,272 28.8 osh-native
28 no-host configure.ocaml 3,858 1,562 1,338 28.7 osh-nosouffle
36 no-host configure.ocaml 3,844 1,533 1,342 28.7 osh-static
5 no-host configure.tcc 46 26 21 26.2 bash
13 no-host configure.tcc 41 24 17 26.1 dash
21 no-host configure.tcc 48 27 21 26.3 osh-native
29 no-host configure.tcc 52 21 32 26.2 osh-nosouffle
37 no-host configure.tcc 45 25 20 26.2 osh-static
3 no-host configure.util-linux 12,519 6,577 6,413 39.5 bash
11 no-host configure.util-linux 13,263 6,495 7,262 39.6 dash
19 no-host configure.util-linux 12,317 6,124 6,418 39.6 osh-native
27 no-host configure.util-linux 13,005 6,397 6,843 39.6 osh-nosouffle
35 no-host configure.util-linux 12,857 6,475 6,607 39.7 osh-static
6 no-host configure.yash 1,700 933 776 33.1 bash
14 no-host configure.yash 1,638 941 699 33.1 dash
22 no-host configure.yash 1,698 962 739 33.4 osh-native
30 no-host configure.yash 1,757 954 806 33.3 osh-nosouffle
38 no-host configure.yash 1,754 988 767 33.3 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 1 2 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.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,392 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,247 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,422 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,806 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,445 0 0 0 8 0 1,997 58 bash
9 no-host bin-true 49,355 0 0 0 8 0 2,997 48 dash
17 no-host bin-true 133,564 0 0 0 16 0 2,000 99 osh-native
25 no-host bin-true 136,567 0 0 0 16 0 1,992 74 osh-nosouffle
33 no-host bin-true 110,946 0 0 0 8 0 1,997 60 osh-static
2 no-host configure.cpython 1,626,352 0 0 0 25,272 0 14,059 1,047 bash
10 no-host configure.cpython 1,634,890 0 0 0 25,272 0 14,122 1,001 dash
18 no-host configure.cpython 1,578,372 0 0 0 25,280 0 11,307 830 osh-native
26 no-host configure.cpython 1,607,139 0 0 0 25,280 0 11,302 872 osh-nosouffle
34 no-host configure.cpython 1,522,991 0 0 0 25,272 0 11,297 910 osh-static
4 no-host configure.ocaml 299,113 0 0 0 4,432 0 2,015 209 bash
12 no-host configure.ocaml 280,580 0 0 0 4,432 0 2,104 194 dash
20 no-host configure.ocaml 305,312 0 0 0 4,440 0 1,999 222 osh-native
28 no-host configure.ocaml 306,502 0 0 0 4,440 0 1,999 210 osh-nosouffle
36 no-host configure.ocaml 300,166 0 0 0 4,432 0 1,994 228 osh-static
5 no-host configure.tcc 5,223 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,582 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,677 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,140 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,538,219 0 0 232 35,944 0 18,976 1,176 bash
11 no-host configure.util-linux 1,699,872 1 0 0 35,936 0 17,049 1,188 dash
19 no-host configure.util-linux 1,506,146 1 0 0 35,952 0 16,210 888 osh-native
27 no-host configure.util-linux 1,512,880 2 0 0 35,944 0 16,220 904 osh-nosouffle
35 no-host configure.util-linux 1,456,145 0 0 0 35,936 0 16,264 894 osh-static
6 no-host configure.yash 173,432 0 0 0 3,616 0 878 80 bash
14 no-host configure.yash 159,571 0 0 0 3,616 0 1,002 107 dash
22 no-host configure.yash 176,927 0 0 0 3,632 0 856 98 osh-native
30 no-host configure.yash 176,936 0 0 0 3,624 0 857 105 osh-nosouffle
38 no-host configure.yash 173,039 0 0 0 3,624 0 859 107 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 397 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-39654b63
osh-nosouffle osh-947cc3c1
osh-static osh-static-1360c4e5
host label host id
no-host no-host-9c670df1