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.15
bin-true no-host 627 448 816 807 660 1.30 1.05
configure.cpython no-host 13,981 14,299 13,879 14,039 13,567 0.99 0.97
configure.ocaml no-host 3,721 3,690 3,737 3,800 3,743 1.00 1.01
configure.tcc no-host 46 42 49 49 44 1.05 0.95
configure.util-linux no-host 12,744 13,537 12,847 13,070 12,633 1.01 0.99
configure.yash no-host 1,724 1,700 1,719 1,765 1,699 1.00 0.99
hello-world no-host 1 1 3 3 1 2.46 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,384 1,183 3,341 3,461 2,800 1.40 1.17
bin-true no-host 102,536 49,351 133,545 133,577 111,308 1.30 1.09
configure.cpython no-host 1,625,404 1,640,783 1,597,285 1,606,365 1,520,701 0.98 0.94
configure.ocaml no-host 299,122 280,917 305,614 306,551 299,705 1.02 1.00
configure.tcc no-host 5,205 4,217 5,619 5,708 5,109 1.08 0.98
configure.util-linux no-host 1,535,173 1,701,494 1,503,188 1,501,009 1,449,773 0.98 0.94
configure.yash no-host 173,284 159,478 176,918 177,590 172,689 1.02 1.00
hello-world no-host 151 86 393 397 181 2.60 1.20

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.8 9.3 10.1 6.4 1.92 1.32
bin-true no-host 3.1 1.4 8.4 9.2 5.1 2.67 1.62
configure.cpython no-host 34.6 34.5 34.4 34.5 34.4 0.99 0.99
configure.ocaml no-host 28.6 28.7 28.8 28.5 28.6 1.00 1.00
configure.tcc no-host 26.0 26.4 26.2 26.3 26.1 1.01 1.01
configure.util-linux no-host 39.6 39.7 39.6 39.9 39.5 1.00 1.00
configure.yash no-host 33.1 33.4 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.1 1.7 6.6 7.1 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 816 1 2 3.5 8.4 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,879 1 69 14.8 34.4 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,847 3 69 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,737 1 2 2.8 28.8 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 49 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,719 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.3 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 807 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,039 2 70 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 13,070 3 70 21.6 39.9 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,800 1 2 2.8 28.5 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,765 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 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 12 5 4.8 bash
15 no-host abuild-print-help 9 5 5 3.8 dash
23 no-host abuild-print-help 21 8 13 9.3 osh-native
31 no-host abuild-print-help 22 14 9 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.4 osh-static
1 no-host bin-true 627 310 357 3.1 bash
9 no-host bin-true 448 278 174 1.4 dash
17 no-host bin-true 816 296 537 8.4 osh-native
25 no-host bin-true 807 311 514 9.2 osh-nosouffle
33 no-host bin-true 660 330 348 5.1 osh-static
2 no-host configure.cpython 13,981 7,680 6,691 34.6 bash
10 no-host configure.cpython 14,299 7,800 6,914 34.5 dash
18 no-host configure.cpython 13,879 7,404 6,758 34.4 osh-native
26 no-host configure.cpython 14,039 7,468 6,868 34.5 osh-nosouffle
34 no-host configure.cpython 13,567 7,428 6,386 34.4 osh-static
4 no-host configure.ocaml 3,721 1,537 1,225 28.6 bash
12 no-host configure.ocaml 3,690 1,507 1,208 28.7 dash
20 no-host configure.ocaml 3,737 1,475 1,301 28.8 osh-native
28 no-host configure.ocaml 3,800 1,480 1,361 28.5 osh-nosouffle
36 no-host configure.ocaml 3,743 1,493 1,281 28.6 osh-static
5 no-host configure.tcc 46 22 25 26.0 bash
13 no-host configure.tcc 42 28 15 26.4 dash
21 no-host configure.tcc 49 24 25 26.2 osh-native
29 no-host configure.tcc 49 23 26 26.3 osh-nosouffle
37 no-host configure.tcc 44 23 21 26.1 osh-static
3 no-host configure.util-linux 12,744 6,704 6,512 39.6 bash
11 no-host configure.util-linux 13,537 6,560 7,478 39.7 dash
19 no-host configure.util-linux 12,847 6,310 6,764 39.6 osh-native
27 no-host configure.util-linux 13,070 6,450 6,851 39.9 osh-nosouffle
35 no-host configure.util-linux 12,633 6,384 6,470 39.5 osh-static
6 no-host configure.yash 1,724 976 756 33.1 bash
14 no-host configure.yash 1,700 961 739 33.4 dash
22 no-host configure.yash 1,719 958 764 33.4 osh-native
30 no-host configure.yash 1,765 949 818 33.4 osh-nosouffle
38 no-host configure.yash 1,699 949 751 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 2 1 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,384 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,183 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,341 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,461 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,800 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 102,536 0 0 0 8 0 1,999 59 bash
9 no-host bin-true 49,351 0 0 0 8 0 2,997 61 dash
17 no-host bin-true 133,545 0 0 0 16 0 1,999 74 osh-native
25 no-host bin-true 133,577 0 0 0 16 0 1,998 77 osh-nosouffle
33 no-host bin-true 111,308 0 0 0 8 0 2,000 81 osh-static
2 no-host configure.cpython 1,625,404 0 0 0 25,272 0 14,088 1,007 bash
10 no-host configure.cpython 1,640,783 0 0 0 25,272 0 14,133 1,051 dash
18 no-host configure.cpython 1,597,285 0 0 0 25,280 0 11,274 847 osh-native
26 no-host configure.cpython 1,606,365 0 0 0 25,280 0 11,288 841 osh-nosouffle
34 no-host configure.cpython 1,520,701 0 0 0 25,272 0 11,294 849 osh-static
4 no-host configure.ocaml 299,122 0 0 0 4,432 0 2,019 178 bash
12 no-host configure.ocaml 280,917 0 0 0 4,432 0 2,109 204 dash
20 no-host configure.ocaml 305,614 0 0 8 4,440 0 1,998 234 osh-native
28 no-host configure.ocaml 306,551 0 0 0 4,440 0 1,999 207 osh-nosouffle
36 no-host configure.ocaml 299,705 0 0 0 4,432 0 1,996 225 osh-static
5 no-host configure.tcc 5,205 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,217 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,619 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,708 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,109 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,535,173 1 0 0 35,944 0 18,906 1,044 bash
11 no-host configure.util-linux 1,701,494 1 0 0 35,936 0 17,013 1,208 dash
19 no-host configure.util-linux 1,503,188 0 0 0 35,952 0 16,051 907 osh-native
27 no-host configure.util-linux 1,501,009 0 0 0 35,944 0 16,135 949 osh-nosouffle
35 no-host configure.util-linux 1,449,773 1 0 0 35,936 0 16,066 882 osh-static
6 no-host configure.yash 173,284 0 0 0 3,616 0 879 98 bash
14 no-host configure.yash 159,478 0 0 0 3,616 0 1,003 114 dash
22 no-host configure.yash 176,918 0 0 0 3,624 0 855 99 osh-native
30 no-host configure.yash 177,590 0 0 0 3,624 0 856 100 osh-nosouffle
38 no-host configure.yash 172,689 0 0 0 3,616 0 857 109 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 1 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 0 osh-native
24 no-host hello-world 397 0 0 0 16 0 1 1 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-b7aa328f
osh-nosouffle osh-26c51726
osh-static osh-static-434a62cf
host label host id
no-host no-host-9c670df1