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.33 1.18
bin-true no-host 623 443 806 817 655 1.29 1.05
configure.cpython no-host 14,000 14,134 13,874 14,144 13,358 0.99 0.95
configure.ocaml no-host 3,742 3,670 3,766 3,804 3,766 1.01 1.01
configure.tcc no-host 47 41 47 47 44 1.01 0.95
configure.util-linux no-host 12,817 13,495 12,827 12,916 12,526 1.00 0.98
configure.yash no-host 1,730 1,682 1,740 1,736 1,721 1.01 0.99
hello-world no-host 1 1 3 3 1 2.39 0.99

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,370 1,154 3,348 3,467 2,810 1.41 1.19
bin-true no-host 101,429 49,432 133,569 136,604 111,325 1.32 1.10
configure.cpython no-host 1,617,268 1,637,616 1,583,824 1,607,267 1,521,917 0.98 0.94
configure.ocaml no-host 299,523 280,806 306,621 308,127 299,700 1.02 1.00
configure.tcc no-host 5,219 4,216 5,555 5,640 5,116 1.06 0.98
configure.util-linux no-host 1,541,647 1,702,254 1,500,636 1,504,465 1,450,007 0.97 0.94
configure.yash no-host 173,319 159,596 176,528 177,515 172,670 1.02 1.00
hello-world no-host 152 85 391 396 181 2.57 1.19

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.1 6.4 2.03 1.36
bin-true no-host 3.1 1.4 8.8 9.2 5.2 2.79 1.67
configure.cpython no-host 34.3 34.6 34.7 34.7 34.5 1.01 1.00
configure.ocaml no-host 28.6 28.7 28.5 28.8 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.1 26.4 1.01 1.01
configure.util-linux no-host 39.7 39.6 39.6 39.5 39.7 1.00 1.00
configure.yash no-host 33.3 33.1 33.3 33.1 33.3 1.00 1.00
hello-world no-host 3.1 1.4 6.6 6.9 3.3 2.08 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.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.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,874 1 72 14.8 34.7 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,827 3 70 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,766 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.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,740 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.6 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 817 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 14,144 1 73 14.9 34.7 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,916 3 72 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,804 1 2 2.8 28.8 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.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,736 1 2 2.7 33.1 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 8 9 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 12 10 9.6 osh-native
31 no-host abuild-print-help 22 11 12 10.1 osh-nosouffle
39 no-host abuild-print-help 19 12 8 6.4 osh-static
1 no-host bin-true 623 327 334 3.1 bash
9 no-host bin-true 443 272 176 1.4 dash
17 no-host bin-true 806 319 503 8.8 osh-native
25 no-host bin-true 817 314 520 9.2 osh-nosouffle
33 no-host bin-true 655 309 362 5.2 osh-static
2 no-host configure.cpython 14,000 7,710 6,682 34.3 bash
10 no-host configure.cpython 14,134 7,754 6,790 34.6 dash
18 no-host configure.cpython 13,874 7,318 6,822 34.7 osh-native
26 no-host configure.cpython 14,144 7,485 6,951 34.7 osh-nosouffle
34 no-host configure.cpython 13,358 7,326 6,267 34.5 osh-static
4 no-host configure.ocaml 3,742 1,509 1,274 28.6 bash
12 no-host configure.ocaml 3,670 1,483 1,211 28.7 dash
20 no-host configure.ocaml 3,766 1,484 1,322 28.5 osh-native
28 no-host configure.ocaml 3,804 1,524 1,323 28.8 osh-nosouffle
36 no-host configure.ocaml 3,766 1,489 1,308 28.7 osh-static
5 no-host configure.tcc 47 22 26 26.2 bash
13 no-host configure.tcc 41 28 14 26.2 dash
21 no-host configure.tcc 47 19 29 26.3 osh-native
29 no-host configure.tcc 47 29 19 26.1 osh-nosouffle
37 no-host configure.tcc 44 25 20 26.4 osh-static
3 no-host configure.util-linux 12,817 6,732 6,558 39.7 bash
11 no-host configure.util-linux 13,495 6,558 7,431 39.6 dash
19 no-host configure.util-linux 12,827 6,302 6,749 39.6 osh-native
27 no-host configure.util-linux 12,916 6,345 6,802 39.5 osh-nosouffle
35 no-host configure.util-linux 12,526 6,312 6,423 39.7 osh-static
6 no-host configure.yash 1,730 948 790 33.3 bash
14 no-host configure.yash 1,682 956 728 33.1 dash
22 no-host configure.yash 1,740 936 805 33.3 osh-native
30 no-host configure.yash 1,736 960 779 33.1 osh-nosouffle
38 no-host configure.yash 1,721 936 787 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 2 1 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,370 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,348 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,467 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,810 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,429 0 0 0 8 0 2,000 59 bash
9 no-host bin-true 49,432 0 0 0 8 0 2,996 52 dash
17 no-host bin-true 133,569 0 0 0 16 0 1,997 78 osh-native
25 no-host bin-true 136,604 0 0 0 16 0 1,997 78 osh-nosouffle
33 no-host bin-true 111,325 0 0 0 8 0 1,995 67 osh-static
2 no-host configure.cpython 1,617,268 0 0 0 25,272 0 14,071 971 bash
10 no-host configure.cpython 1,637,616 0 0 0 25,272 0 14,114 1,041 dash
18 no-host configure.cpython 1,583,824 0 0 0 25,280 0 11,305 794 osh-native
26 no-host configure.cpython 1,607,267 0 0 0 25,280 0 11,295 884 osh-nosouffle
34 no-host configure.cpython 1,521,917 0 0 0 25,272 0 11,301 861 osh-static
4 no-host configure.ocaml 299,523 0 0 0 4,432 0 2,019 199 bash
12 no-host configure.ocaml 280,806 0 0 0 4,432 0 2,104 182 dash
20 no-host configure.ocaml 306,621 0 0 8 4,440 0 2,001 208 osh-native
28 no-host configure.ocaml 308,127 0 0 0 4,440 0 2,001 191 osh-nosouffle
36 no-host configure.ocaml 299,700 0 0 0 4,432 0 2,000 204 osh-static
5 no-host configure.tcc 5,219 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,555 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,640 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,541,647 0 0 0 35,944 0 18,967 1,083 bash
11 no-host configure.util-linux 1,702,254 0 0 0 35,936 0 17,137 1,201 dash
19 no-host configure.util-linux 1,500,636 0 0 0 35,952 0 16,216 947 osh-native
27 no-host configure.util-linux 1,504,465 3 0 0 35,944 0 16,187 905 osh-nosouffle
35 no-host configure.util-linux 1,450,007 1 0 0 35,936 0 16,179 886 osh-static
6 no-host configure.yash 173,319 0 0 0 3,616 0 878 96 bash
14 no-host configure.yash 159,596 0 0 0 3,624 0 1,002 94 dash
22 no-host configure.yash 176,528 0 0 0 3,624 0 858 99 osh-native
30 no-host configure.yash 177,515 0 0 0 3,632 0 855 97 osh-nosouffle
38 no-host configure.yash 172,670 0 0 0 3,616 0 857 99 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 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-c94d9ee0
osh-nosouffle osh-2d369b74
osh-static osh-static-b9a20f90
host label host id
no-host no-host-9c670df1