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 10 20 22 18 1.30 1.16
bin-true no-host 618 436 806 796 645 1.30 1.04
configure.cpython no-host 13,551 13,746 13,156 13,201 12,718 0.97 0.94
configure.ocaml no-host 3,599 3,547 3,639 3,636 3,619 1.01 1.01
configure.tcc no-host 45 41 46 47 43 1.03 0.96
configure.util-linux no-host 12,309 13,146 12,286 12,254 11,842 1.00 0.96
configure.yash no-host 1,687 1,635 1,659 1,660 1,646 0.98 0.98
hello-world no-host 1 1 3 3 1 2.41 1.05

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,366 1,155 3,289 3,407 2,800 1.39 1.18
bin-true no-host 102,377 49,453 134,324 133,942 110,013 1.31 1.07
configure.cpython no-host 1,626,546 1,636,937 1,584,706 1,608,134 1,522,640 0.97 0.94
configure.ocaml no-host 299,175 280,621 305,661 306,214 300,759 1.02 1.01
configure.tcc no-host 5,258 4,211 5,584 5,652 5,132 1.06 0.98
configure.util-linux no-host 1,538,467 1,695,929 1,497,750 1,514,718 1,458,406 0.97 0.95
configure.yash no-host 173,170 159,628 176,548 177,008 173,104 1.02 1.00
hello-world no-host 156 85 392 396 182 2.51 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.7 3.9 9.6 10.0 6.4 2.03 1.36
bin-true no-host 3.1 1.6 8.7 9.0 5.2 2.75 1.67
configure.cpython no-host 34.4 34.5 34.6 34.5 34.7 1.01 1.01
configure.ocaml no-host 28.6 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.0 26.0 26.3 26.1 0.99 1.00
configure.util-linux no-host 39.7 39.7 39.7 39.7 39.5 1.00 0.99
configure.yash no-host 33.4 33.3 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.8 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 806 1 2 3.5 8.7 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,156 1 63 14.8 34.6 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,286 3 62 21.6 39.7 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,639 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.0 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,659 1 2 2.7 33.4 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.8 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 796 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,201 1 62 14.8 34.5 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,254 3 62 21.6 39.7 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,636 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,660 1 2 2.7 33.4 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,212 65,788 41,998 4,969 54,592 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.7 bash
15 no-host abuild-print-help 10 4 6 3.9 dash
23 no-host abuild-print-help 20 12 9 9.6 osh-native
31 no-host abuild-print-help 22 10 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 618 317 338 3.1 bash
9 no-host bin-true 436 272 167 1.6 dash
17 no-host bin-true 806 313 510 8.7 osh-native
25 no-host bin-true 796 318 497 9.0 osh-nosouffle
33 no-host bin-true 645 314 349 5.2 osh-static
2 no-host configure.cpython 13,551 7,406 6,532 34.4 bash
10 no-host configure.cpython 13,746 7,454 6,691 34.5 dash
18 no-host configure.cpython 13,156 7,104 6,311 34.6 osh-native
26 no-host configure.cpython 13,201 6,968 6,515 34.5 osh-nosouffle
34 no-host configure.cpython 12,718 7,040 5,913 34.7 osh-static
4 no-host configure.ocaml 3,599 1,449 1,189 28.6 bash
12 no-host configure.ocaml 3,547 1,437 1,133 28.6 dash
20 no-host configure.ocaml 3,639 1,435 1,243 28.7 osh-native
28 no-host configure.ocaml 3,636 1,451 1,226 28.7 osh-nosouffle
36 no-host configure.ocaml 3,619 1,465 1,185 28.7 osh-static
5 no-host configure.tcc 45 22 24 26.2 bash
13 no-host configure.tcc 41 28 13 26.0 dash
21 no-host configure.tcc 46 26 21 26.0 osh-native
29 no-host configure.tcc 47 23 24 26.3 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.1 osh-static
3 no-host configure.util-linux 12,309 6,556 6,213 39.7 bash
11 no-host configure.util-linux 13,146 6,497 7,134 39.7 dash
19 no-host configure.util-linux 12,286 6,043 6,383 39.7 osh-native
27 no-host configure.util-linux 12,254 6,097 6,379 39.7 osh-nosouffle
35 no-host configure.util-linux 11,842 5,984 6,072 39.5 osh-static
6 no-host configure.yash 1,687 937 758 33.4 bash
14 no-host configure.yash 1,635 929 708 33.3 dash
22 no-host configure.yash 1,659 937 724 33.4 osh-native
30 no-host configure.yash 1,660 928 735 33.4 osh-nosouffle
38 no-host configure.yash 1,646 916 734 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.8 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,366 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,289 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,407 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,800 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,377 0 0 0 8 0 2,000 59 bash
9 no-host bin-true 49,453 0 0 0 8 0 2,993 52 dash
17 no-host bin-true 134,324 0 0 0 16 0 1,995 58 osh-native
25 no-host bin-true 133,942 0 0 0 16 0 1,998 73 osh-nosouffle
33 no-host bin-true 110,013 0 0 0 8 0 1,999 66 osh-static
2 no-host configure.cpython 1,626,546 0 0 0 25,272 0 14,083 1,018 bash
10 no-host configure.cpython 1,636,937 0 0 0 25,272 0 14,125 1,066 dash
18 no-host configure.cpython 1,584,706 0 0 0 25,280 0 11,299 837 osh-native
26 no-host configure.cpython 1,608,134 0 0 0 25,280 0 11,322 818 osh-nosouffle
34 no-host configure.cpython 1,522,640 0 0 0 25,272 0 11,295 871 osh-static
4 no-host configure.ocaml 299,175 0 0 0 4,432 0 2,023 184 bash
12 no-host configure.ocaml 280,621 0 0 0 4,432 0 2,108 181 dash
20 no-host configure.ocaml 305,661 0 0 0 4,440 0 2,000 225 osh-native
28 no-host configure.ocaml 306,214 0 0 0 4,440 0 1,994 197 osh-nosouffle
36 no-host configure.ocaml 300,759 0 0 0 4,432 0 1,997 201 osh-static
5 no-host configure.tcc 5,258 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,584 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,652 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,132 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,538,467 1 0 232 35,944 0 18,975 1,049 bash
11 no-host configure.util-linux 1,695,929 2 0 0 35,936 0 17,064 1,191 dash
19 no-host configure.util-linux 1,497,750 1 0 0 35,952 0 16,134 956 osh-native
27 no-host configure.util-linux 1,514,718 1 0 0 35,952 0 16,162 906 osh-nosouffle
35 no-host configure.util-linux 1,458,406 0 0 0 35,936 0 16,146 881 osh-static
6 no-host configure.yash 173,170 0 0 0 3,616 0 880 100 bash
14 no-host configure.yash 159,628 0 0 0 3,616 0 1,001 122 dash
22 no-host configure.yash 176,548 0 0 0 3,624 0 859 107 osh-native
30 no-host configure.yash 177,008 0 0 0 3,624 0 857 110 osh-nosouffle
38 no-host configure.yash 173,104 0 0 0 3,624 0 857 87 osh-static
0 no-host hello-world 156 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 1 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 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-145aeee4
osh-nosouffle osh-ded9365d
osh-static osh-static-7e2fe6de
host label host id
no-host no-host-9c670df1