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 25 19 1.33 1.20
bin-true no-host 621 455 821 822 665 1.32 1.07
configure.cpython no-host 13,961 13,962 13,623 13,678 13,325 0.98 0.95
configure.ocaml no-host 3,694 3,639 3,751 3,751 3,770 1.02 1.02
configure.tcc no-host 47 42 47 48 45 1.01 0.95
configure.util-linux no-host 12,627 13,432 12,630 12,684 12,580 1.00 1.00
configure.yash no-host 1,719 1,670 1,711 1,731 1,725 1.00 1.00
hello-world no-host 1 1 3 3 1 2.41 1.04

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,186 3,339 3,456 2,803 1.39 1.17
bin-true no-host 100,451 49,444 138,905 138,606 111,354 1.38 1.11
configure.cpython no-host 1,625,668 1,635,795 1,596,246 1,602,740 1,524,958 0.98 0.94
configure.ocaml no-host 298,793 280,838 306,021 306,422 300,067 1.02 1.00
configure.tcc no-host 5,196 4,226 5,611 5,646 5,133 1.08 0.99
configure.util-linux no-host 1,542,840 1,703,547 1,504,293 1,511,628 1,451,285 0.98 0.94
configure.yash no-host 173,214 159,557 176,885 177,190 172,884 1.02 1.00
hello-world no-host 153 86 393 397 180 2.57 1.18

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 9.8 6.2 1.95 1.27
bin-true no-host 3.3 1.7 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.6 34.4 34.6 34.6 34.1 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.4 26.0 26.2 26.1 26.2 0.99 0.99
configure.util-linux no-host 39.6 39.7 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.1 1.00 0.99
hello-world no-host 3.3 1.4 6.6 6.9 3.3 2.00 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.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 821 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,623 1 67 14.8 34.6 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,630 3 67 21.6 39.7 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,751 1 2 2.8 28.5 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,711 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.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 822 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,678 1 68 14.9 34.6 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,684 3 67 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,751 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 48 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,731 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 25 1 2 3.0 9.8 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 9 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 10 11 9.4 osh-native
31 no-host abuild-print-help 25 15 10 9.8 osh-nosouffle
39 no-host abuild-print-help 19 9 11 6.2 osh-static
1 no-host bin-true 621 301 357 3.3 bash
9 no-host bin-true 455 282 179 1.7 dash
17 no-host bin-true 821 303 534 8.8 osh-native
25 no-host bin-true 822 317 522 9.2 osh-nosouffle
33 no-host bin-true 665 343 341 5.1 osh-static
2 no-host configure.cpython 13,961 7,655 6,690 34.6 bash
10 no-host configure.cpython 13,962 7,675 6,691 34.4 dash
18 no-host configure.cpython 13,623 7,205 6,697 34.6 osh-native
26 no-host configure.cpython 13,678 7,229 6,737 34.6 osh-nosouffle
34 no-host configure.cpython 13,325 7,274 6,289 34.1 osh-static
4 no-host configure.ocaml 3,694 1,496 1,238 28.7 bash
12 no-host configure.ocaml 3,639 1,484 1,177 28.7 dash
20 no-host configure.ocaml 3,751 1,532 1,260 28.5 osh-native
28 no-host configure.ocaml 3,751 1,463 1,329 28.7 osh-nosouffle
36 no-host configure.ocaml 3,770 1,538 1,263 28.7 osh-static
5 no-host configure.tcc 47 23 25 26.4 bash
13 no-host configure.tcc 42 24 18 26.0 dash
21 no-host configure.tcc 47 22 26 26.2 osh-native
29 no-host configure.tcc 48 22 26 26.1 osh-nosouffle
37 no-host configure.tcc 45 23 22 26.2 osh-static
3 no-host configure.util-linux 12,627 6,643 6,455 39.6 bash
11 no-host configure.util-linux 13,432 6,567 7,371 39.7 dash
19 no-host configure.util-linux 12,630 6,266 6,589 39.7 osh-native
27 no-host configure.util-linux 12,684 6,270 6,641 39.6 osh-nosouffle
35 no-host configure.util-linux 12,580 6,341 6,467 39.7 osh-static
6 no-host configure.yash 1,719 949 778 33.4 bash
14 no-host configure.yash 1,670 946 725 33.4 dash
22 no-host configure.yash 1,711 976 738 33.4 osh-native
30 no-host configure.yash 1,731 962 771 33.4 osh-nosouffle
38 no-host configure.yash 1,725 952 776 33.1 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 0 3 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.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,186 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,339 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,456 0 0 0 16 0 37 8 osh-nosouffle
39 no-host abuild-print-help 2,803 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,451 0 0 0 8 0 2,000 72 bash
9 no-host bin-true 49,444 0 0 0 8 0 2,984 53 dash
17 no-host bin-true 138,905 0 0 0 16 0 1,996 88 osh-native
25 no-host bin-true 138,606 0 0 0 16 0 1,998 75 osh-nosouffle
33 no-host bin-true 111,354 0 0 0 8 0 2,000 85 osh-static
2 no-host configure.cpython 1,625,668 0 0 0 25,272 0 14,072 1,076 bash
10 no-host configure.cpython 1,635,795 0 0 0 25,272 0 14,115 1,036 dash
18 no-host configure.cpython 1,596,246 0 0 0 25,280 0 11,298 972 osh-native
26 no-host configure.cpython 1,602,740 0 0 0 25,280 0 11,306 822 osh-nosouffle
34 no-host configure.cpython 1,524,958 0 0 0 25,272 0 11,297 877 osh-static
4 no-host configure.ocaml 298,793 0 0 0 4,432 0 2,020 195 bash
12 no-host configure.ocaml 280,838 0 0 0 4,432 0 2,106 192 dash
20 no-host configure.ocaml 306,021 0 0 0 4,440 0 2,001 226 osh-native
28 no-host configure.ocaml 306,422 0 0 0 4,440 0 1,996 220 osh-nosouffle
36 no-host configure.ocaml 300,067 0 0 0 4,432 0 2,002 231 osh-static
5 no-host configure.tcc 5,196 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,226 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,611 0 0 0 96 0 44 1 osh-native
29 no-host configure.tcc 5,646 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,133 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,542,840 0 0 0 35,944 0 18,951 1,055 bash
11 no-host configure.util-linux 1,703,547 0 0 0 35,936 0 17,064 1,226 dash
19 no-host configure.util-linux 1,504,293 0 0 8 35,952 0 16,144 888 osh-native
27 no-host configure.util-linux 1,511,628 1 0 0 35,944 0 16,214 904 osh-nosouffle
35 no-host configure.util-linux 1,451,285 0 0 0 35,936 0 16,185 858 osh-static
6 no-host configure.yash 173,214 0 0 0 3,616 0 878 98 bash
14 no-host configure.yash 159,557 0 0 0 3,616 0 1,001 98 dash
22 no-host configure.yash 176,885 0 0 0 3,624 0 858 95 osh-native
30 no-host configure.yash 177,190 0 0 0 3,632 0 856 108 osh-nosouffle
38 no-host configure.yash 172,884 0 0 0 3,616 0 856 93 osh-static
0 no-host hello-world 153 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 393 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 397 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-3f35d086
osh-nosouffle osh-0177fc6d
osh-static osh-static-c1ee813a
host label host id
no-host no-host-9c670df1