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 22 19 1.30 1.17
bin-true no-host 615 459 802 808 656 1.30 1.07
configure.cpython no-host 13,708 13,807 13,463 13,587 13,016 0.98 0.95
configure.ocaml no-host 3,641 3,600 3,699 3,722 3,667 1.02 1.01
configure.tcc no-host 46 41 47 47 43 1.04 0.94
configure.util-linux no-host 12,468 13,223 12,434 12,571 12,114 1.00 0.97
configure.yash no-host 1,680 1,638 1,695 1,699 1,671 1.01 0.99
hello-world no-host 1 1 3 3 1 2.44 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,384 1,163 3,307 3,446 2,794 1.39 1.17
bin-true no-host 100,437 49,430 133,605 133,565 110,968 1.33 1.10
configure.cpython no-host 1,620,431 1,639,506 1,591,348 1,597,962 1,522,543 0.98 0.94
configure.ocaml no-host 298,571 281,082 306,087 306,738 300,304 1.03 1.01
configure.tcc no-host 5,243 4,231 5,608 5,677 5,126 1.07 0.98
configure.util-linux no-host 1,540,362 1,695,710 1,501,305 1,509,072 1,457,348 0.97 0.95
configure.yash no-host 173,268 159,580 176,602 176,540 173,027 1.02 1.00
hello-world no-host 150 86 394 396 181 2.63 1.21

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.8 9.4 10.1 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.4 34.5 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.5 28.5 28.7 28.6 28.8 1.01 1.01
configure.tcc no-host 26.2 26.2 26.1 26.0 26.3 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.5 39.6 39.9 0.99 1.00
configure.yash no-host 33.4 33.4 33.3 33.2 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 802 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,463 1 67 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,434 3 66 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,699 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.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,695 1 2 2.7 33.3 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.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 808 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,587 1 67 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,571 3 65 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,722 1 2 2.8 28.6 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.0 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.2 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.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 7 9 4.8 bash
15 no-host abuild-print-help 9 4 5 3.8 dash
23 no-host abuild-print-help 21 10 11 9.4 osh-native
31 no-host abuild-print-help 22 9 13 10.1 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.4 osh-static
1 no-host bin-true 615 296 357 3.3 bash
9 no-host bin-true 459 278 188 1.6 dash
17 no-host bin-true 802 305 517 8.8 osh-native
25 no-host bin-true 808 315 513 9.2 osh-nosouffle
33 no-host bin-true 656 307 366 5.2 osh-static
2 no-host configure.cpython 13,708 7,508 6,590 34.4 bash
10 no-host configure.cpython 13,807 7,588 6,622 34.5 dash
18 no-host configure.cpython 13,463 7,080 6,656 34.4 osh-native
26 no-host configure.cpython 13,587 7,237 6,633 34.5 osh-nosouffle
34 no-host configure.cpython 13,016 7,053 6,205 34.5 osh-static
4 no-host configure.ocaml 3,641 1,450 1,230 28.5 bash
12 no-host configure.ocaml 3,600 1,477 1,146 28.5 dash
20 no-host configure.ocaml 3,699 1,489 1,249 28.7 osh-native
28 no-host configure.ocaml 3,722 1,486 1,278 28.6 osh-nosouffle
36 no-host configure.ocaml 3,667 1,495 1,204 28.8 osh-static
5 no-host configure.tcc 46 23 23 26.2 bash
13 no-host configure.tcc 41 24 17 26.2 dash
21 no-host configure.tcc 47 22 26 26.1 osh-native
29 no-host configure.tcc 47 31 17 26.0 osh-nosouffle
37 no-host configure.tcc 43 23 21 26.3 osh-static
3 no-host configure.util-linux 12,468 6,504 6,430 39.7 bash
11 no-host configure.util-linux 13,223 6,483 7,231 39.6 dash
19 no-host configure.util-linux 12,434 6,099 6,560 39.5 osh-native
27 no-host configure.util-linux 12,571 6,200 6,599 39.6 osh-nosouffle
35 no-host configure.util-linux 12,114 6,135 6,197 39.9 osh-static
6 no-host configure.yash 1,680 928 760 33.4 bash
14 no-host configure.yash 1,638 951 689 33.4 dash
22 no-host configure.yash 1,695 970 728 33.3 osh-native
30 no-host configure.yash 1,699 949 752 33.2 osh-nosouffle
38 no-host configure.yash 1,671 962 712 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 2 1 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,384 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,307 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,446 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,794 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 100,437 0 0 0 8 0 1,999 57 bash
9 no-host bin-true 49,430 0 0 0 8 0 2,992 46 dash
17 no-host bin-true 133,605 0 0 0 16 0 1,998 61 osh-native
25 no-host bin-true 133,565 0 0 0 16 0 1,999 66 osh-nosouffle
33 no-host bin-true 110,968 0 0 0 8 0 1,997 79 osh-static
2 no-host configure.cpython 1,620,431 0 0 0 25,272 0 14,084 1,021 bash
10 no-host configure.cpython 1,639,506 0 0 0 25,272 0 14,118 1,026 dash
18 no-host configure.cpython 1,591,348 0 0 0 25,280 0 11,274 782 osh-native
26 no-host configure.cpython 1,597,962 0 0 0 25,280 0 11,312 961 osh-nosouffle
34 no-host configure.cpython 1,522,543 0 0 0 25,272 0 11,301 862 osh-static
4 no-host configure.ocaml 298,571 0 0 0 4,432 0 2,015 195 bash
12 no-host configure.ocaml 281,082 0 0 0 4,432 0 2,112 191 dash
20 no-host configure.ocaml 306,087 0 0 0 4,440 0 1,995 229 osh-native
28 no-host configure.ocaml 306,738 0 0 0 4,440 0 2,000 208 osh-nosouffle
36 no-host configure.ocaml 300,304 0 0 0 4,432 0 1,996 200 osh-static
5 no-host configure.tcc 5,243 0 0 0 80 0 48 0 bash
13 no-host configure.tcc 4,231 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,608 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,126 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,540,362 1 0 232 35,944 0 18,983 1,037 bash
11 no-host configure.util-linux 1,695,710 0 0 0 35,936 0 17,067 1,254 dash
19 no-host configure.util-linux 1,501,305 0 0 0 35,952 0 16,219 961 osh-native
27 no-host configure.util-linux 1,509,072 0 0 0 35,944 0 16,147 925 osh-nosouffle
35 no-host configure.util-linux 1,457,348 0 0 0 35,936 0 16,194 929 osh-static
6 no-host configure.yash 173,268 0 0 0 3,616 0 880 103 bash
14 no-host configure.yash 159,580 0 0 0 3,616 0 1,000 101 dash
22 no-host configure.yash 176,602 0 0 0 3,624 0 858 101 osh-native
30 no-host configure.yash 176,540 0 0 0 3,632 0 857 113 osh-nosouffle
38 no-host configure.yash 173,027 0 0 0 3,616 0 859 98 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 394 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-dd41dff3
osh-nosouffle osh-c806edfa
osh-static osh-static-e5fb2176
host label host id
no-host no-host-9c670df1