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.31 1.17
bin-true no-host 625 445 810 828 659 1.30 1.05
configure.cpython no-host 14,002 13,974 13,532 13,671 13,087 0.97 0.93
configure.ocaml no-host 3,674 3,616 3,709 3,789 3,761 1.01 1.02
configure.tcc no-host 47 42 47 49 45 1.02 0.96
configure.util-linux no-host 12,719 13,307 12,482 12,691 12,508 0.98 0.98
configure.yash no-host 1,721 1,653 1,708 1,755 1,718 0.99 1.00
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,368 1,194 3,340 3,418 2,802 1.41 1.18
bin-true no-host 100,478 49,415 133,624 139,514 111,351 1.33 1.11
configure.cpython no-host 1,623,566 1,636,955 1,586,354 1,608,851 1,522,644 0.98 0.94
configure.ocaml no-host 299,403 280,509 305,934 307,358 299,747 1.02 1.00
configure.tcc no-host 5,197 4,207 5,598 5,708 5,104 1.08 0.98
configure.util-linux no-host 1,538,098 1,695,713 1,502,823 1,512,027 1,450,036 0.98 0.94
configure.yash no-host 173,477 159,546 176,526 177,504 172,687 1.02 1.00
hello-world no-host 154 83 390 400 180 2.53 1.17

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.1 6.4 1.95 1.32
bin-true no-host 3.1 1.6 8.8 9.0 5.1 2.79 1.62
configure.cpython no-host 34.6 34.6 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.3 26.1 26.3 26.3 26.1 1.00 1.00
configure.util-linux no-host 39.9 39.6 39.6 39.5 39.6 0.99 0.99
configure.yash no-host 33.4 33.3 33.4 33.5 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 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 810 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,532 1 69 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,482 3 66 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,709 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.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,708 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 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 828 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,671 2 69 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,691 3 67 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,789 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 49 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,755 1 2 2.7 33.5 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 10 4.8 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 21 13 9 9.4 osh-native
31 no-host abuild-print-help 22 12 11 10.1 osh-nosouffle
39 no-host abuild-print-help 19 13 7 6.4 osh-static
1 no-host bin-true 625 314 349 3.1 bash
9 no-host bin-true 445 280 169 1.6 dash
17 no-host bin-true 810 325 504 8.8 osh-native
25 no-host bin-true 828 303 539 9.0 osh-nosouffle
33 no-host bin-true 659 322 355 5.1 osh-static
2 no-host configure.cpython 14,002 7,744 6,651 34.6 bash
10 no-host configure.cpython 13,974 7,660 6,724 34.6 dash
18 no-host configure.cpython 13,532 7,218 6,596 34.5 osh-native
26 no-host configure.cpython 13,671 7,260 6,703 34.5 osh-nosouffle
34 no-host configure.cpython 13,087 7,232 6,097 34.5 osh-static
4 no-host configure.ocaml 3,674 1,494 1,221 28.6 bash
12 no-host configure.ocaml 3,616 1,463 1,179 28.8 dash
20 no-host configure.ocaml 3,709 1,475 1,275 28.7 osh-native
28 no-host configure.ocaml 3,789 1,498 1,337 28.7 osh-nosouffle
36 no-host configure.ocaml 3,761 1,539 1,254 28.6 osh-static
5 no-host configure.tcc 47 26 21 26.3 bash
13 no-host configure.tcc 42 24 18 26.1 dash
21 no-host configure.tcc 47 23 25 26.3 osh-native
29 no-host configure.tcc 49 23 26 26.3 osh-nosouffle
37 no-host configure.tcc 45 23 23 26.1 osh-static
3 no-host configure.util-linux 12,719 6,740 6,464 39.9 bash
11 no-host configure.util-linux 13,307 6,662 7,142 39.6 dash
19 no-host configure.util-linux 12,482 6,194 6,512 39.6 osh-native
27 no-host configure.util-linux 12,691 6,275 6,647 39.5 osh-nosouffle
35 no-host configure.util-linux 12,508 6,421 6,307 39.6 osh-static
6 no-host configure.yash 1,721 953 776 33.4 bash
14 no-host configure.yash 1,653 944 711 33.3 dash
22 no-host configure.yash 1,708 941 771 33.4 osh-native
30 no-host configure.yash 1,755 981 777 33.5 osh-nosouffle
38 no-host configure.yash 1,718 956 764 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 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 0 3 7.1 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,368 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,194 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,340 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,418 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,802 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,478 0 0 0 8 0 1,998 55 bash
9 no-host bin-true 49,415 0 0 0 8 0 2,991 58 dash
17 no-host bin-true 133,624 0 0 0 16 0 1,997 73 osh-native
25 no-host bin-true 139,514 0 0 0 16 0 1,998 89 osh-nosouffle
33 no-host bin-true 111,351 0 0 0 8 0 1,999 69 osh-static
2 no-host configure.cpython 1,623,566 0 0 0 25,272 0 14,083 1,074 bash
10 no-host configure.cpython 1,636,955 0 0 0 25,272 0 14,122 1,028 dash
18 no-host configure.cpython 1,586,354 0 0 0 25,280 0 11,314 851 osh-native
26 no-host configure.cpython 1,608,851 1 0 0 25,280 0 11,318 863 osh-nosouffle
34 no-host configure.cpython 1,522,644 0 0 0 25,272 0 11,308 829 osh-static
4 no-host configure.ocaml 299,403 0 0 0 4,432 0 2,020 199 bash
12 no-host configure.ocaml 280,509 0 0 0 4,432 0 2,110 195 dash
20 no-host configure.ocaml 305,934 0 0 0 4,440 0 2,001 210 osh-native
28 no-host configure.ocaml 307,358 0 0 0 4,440 0 1,998 200 osh-nosouffle
36 no-host configure.ocaml 299,747 0 0 0 4,432 0 1,997 253 osh-static
5 no-host configure.tcc 5,197 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,598 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,708 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,104 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,538,098 1 0 0 35,944 0 18,861 1,089 bash
11 no-host configure.util-linux 1,695,713 1 0 0 35,936 0 17,107 1,255 dash
19 no-host configure.util-linux 1,502,823 0 0 8 35,952 0 16,163 1,069 osh-native
27 no-host configure.util-linux 1,512,027 0 0 0 35,944 0 16,234 874 osh-nosouffle
35 no-host configure.util-linux 1,450,036 0 0 0 35,936 0 16,201 1,013 osh-static
6 no-host configure.yash 173,477 0 0 0 3,616 0 876 124 bash
14 no-host configure.yash 159,546 0 0 0 3,616 0 1,003 90 dash
22 no-host configure.yash 176,526 0 0 0 3,624 0 858 98 osh-native
30 no-host configure.yash 177,504 0 0 0 3,632 0 856 105 osh-nosouffle
38 no-host configure.yash 172,687 0 0 0 3,616 0 855 88 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 400 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-d5cbd194
osh-nosouffle osh-19df2a26
osh-static osh-static-b20d9472
host label host id
no-host no-host-9c670df1