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 18 1.33 1.13
bin-true no-host 615 460 802 805 661 1.30 1.07
configure.cpython no-host 13,910 14,138 13,830 13,772 13,234 0.99 0.95
configure.ocaml no-host 3,699 3,726 3,800 3,748 3,685 1.03 1.00
configure.tcc no-host 46 42 48 47 43 1.04 0.92
configure.util-linux no-host 12,618 13,603 12,883 12,844 12,193 1.02 0.97
configure.yash no-host 1,742 1,677 1,739 1,733 1,678 1.00 0.96
hello-world no-host 1 1 3 3 1 2.39 1.00

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,393 1,161 3,318 3,431 2,795 1.39 1.17
bin-true no-host 101,403 49,336 133,581 133,557 111,320 1.32 1.10
configure.cpython no-host 1,632,059 1,637,562 1,595,554 1,607,276 1,522,499 0.98 0.93
configure.ocaml no-host 299,253 281,447 305,793 307,369 299,854 1.02 1.00
configure.tcc no-host 5,204 4,202 5,588 5,641 5,119 1.07 0.98
configure.util-linux no-host 1,540,657 1,696,864 1,498,410 1,505,717 1,449,992 0.97 0.94
configure.yash no-host 173,119 159,553 176,935 177,234 172,692 1.02 1.00
hello-world no-host 152 87 388 398 180 2.55 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 10.0 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.8 9.0 5.2 2.68 1.60
configure.cpython no-host 34.5 34.3 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.6 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.1 26.3 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.6 39.5 39.5 39.7 1.00 1.01
configure.yash no-host 33.3 33.4 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.9 3.3 2.04 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.4 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,830 1 67 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,883 3 68 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,800 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 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,739 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 805 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,772 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,844 3 66 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,748 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.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,733 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 11 6 4.8 bash
15 no-host abuild-print-help 9 7 2 3.9 dash
23 no-host abuild-print-help 21 13 9 9.4 osh-native
31 no-host abuild-print-help 22 14 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 14 5 6.4 osh-static
1 no-host bin-true 615 307 346 3.3 bash
9 no-host bin-true 460 272 194 1.6 dash
17 no-host bin-true 802 317 501 8.8 osh-native
25 no-host bin-true 805 313 506 9.0 osh-nosouffle
33 no-host bin-true 661 330 349 5.2 osh-static
2 no-host configure.cpython 13,910 7,595 6,701 34.5 bash
10 no-host configure.cpython 14,138 7,578 6,961 34.3 dash
18 no-host configure.cpython 13,830 7,249 6,860 34.5 osh-native
26 no-host configure.cpython 13,772 7,303 6,735 34.5 osh-nosouffle
34 no-host configure.cpython 13,234 7,309 6,158 34.4 osh-static
4 no-host configure.ocaml 3,699 1,459 1,281 28.6 bash
12 no-host configure.ocaml 3,726 1,487 1,252 28.7 dash
20 no-host configure.ocaml 3,800 1,519 1,319 28.6 osh-native
28 no-host configure.ocaml 3,748 1,536 1,252 28.6 osh-nosouffle
36 no-host configure.ocaml 3,685 1,491 1,226 28.7 osh-static
5 no-host configure.tcc 46 20 27 26.2 bash
13 no-host configure.tcc 42 26 16 26.2 dash
21 no-host configure.tcc 48 27 22 26.1 osh-native
29 no-host configure.tcc 47 28 20 26.3 osh-nosouffle
37 no-host configure.tcc 43 20 23 26.2 osh-static
3 no-host configure.util-linux 12,618 6,619 6,467 39.5 bash
11 no-host configure.util-linux 13,603 6,713 7,369 39.6 dash
19 no-host configure.util-linux 12,883 6,367 6,744 39.5 osh-native
27 no-host configure.util-linux 12,844 6,329 6,737 39.5 osh-nosouffle
35 no-host configure.util-linux 12,193 6,218 6,167 39.7 osh-static
6 no-host configure.yash 1,742 982 768 33.3 bash
14 no-host configure.yash 1,677 934 745 33.4 dash
22 no-host configure.yash 1,739 986 756 33.4 osh-native
30 no-host configure.yash 1,733 969 767 33.3 osh-nosouffle
38 no-host configure.yash 1,678 929 750 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 2 1 6.4 osh-native
24 no-host hello-world 3 0 3 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,393 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,318 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,431 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,795 0 0 0 8 0 40 0 osh-static
1 no-host bin-true 101,403 0 0 0 8 0 1,997 53 bash
9 no-host bin-true 49,336 0 0 0 8 0 2,989 58 dash
17 no-host bin-true 133,581 0 0 0 16 0 2,001 67 osh-native
25 no-host bin-true 133,557 0 0 0 16 0 1,998 89 osh-nosouffle
33 no-host bin-true 111,320 0 0 0 8 0 1,999 53 osh-static
2 no-host configure.cpython 1,632,059 0 0 0 25,272 0 14,079 1,143 bash
10 no-host configure.cpython 1,637,562 0 0 0 25,272 0 14,139 1,042 dash
18 no-host configure.cpython 1,595,554 0 0 0 25,280 0 11,298 871 osh-native
26 no-host configure.cpython 1,607,276 0 0 0 25,280 0 11,285 851 osh-nosouffle
34 no-host configure.cpython 1,522,499 0 0 0 25,272 0 11,300 833 osh-static
4 no-host configure.ocaml 299,253 0 0 0 4,432 0 2,022 215 bash
12 no-host configure.ocaml 281,447 0 0 0 4,432 0 2,102 213 dash
20 no-host configure.ocaml 305,793 0 0 8 4,440 0 1,999 196 osh-native
28 no-host configure.ocaml 307,369 0 0 0 4,440 0 1,997 301 osh-nosouffle
36 no-host configure.ocaml 299,854 0 0 0 4,432 0 1,995 233 osh-static
5 no-host configure.tcc 5,204 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,588 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,641 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,540,657 1 0 0 35,944 0 18,988 1,038 bash
11 no-host configure.util-linux 1,696,864 1 0 0 35,936 0 17,148 1,263 dash
19 no-host configure.util-linux 1,498,410 3 0 0 35,952 0 16,127 960 osh-native
27 no-host configure.util-linux 1,505,717 1 0 0 35,944 0 16,185 923 osh-nosouffle
35 no-host configure.util-linux 1,449,992 0 0 0 35,944 0 16,141 922 osh-static
6 no-host configure.yash 173,119 0 0 0 3,616 0 875 96 bash
14 no-host configure.yash 159,553 0 0 0 3,616 0 1,002 100 dash
22 no-host configure.yash 176,935 0 0 0 3,624 0 856 103 osh-native
30 no-host configure.yash 177,234 0 0 0 3,624 0 856 97 osh-nosouffle
38 no-host configure.yash 172,692 0 0 0 3,624 0 857 109 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 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 398 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-757bec8e
osh-nosouffle osh-d20b7824
osh-static osh-static-eeba22f6
host label host id
no-host no-host-9c670df1