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.30 1.19
bin-true no-host 619 442 812 815 657 1.31 1.06
configure.cpython no-host 14,001 14,131 13,341 13,736 13,237 0.95 0.95
configure.ocaml no-host 3,715 3,703 3,751 3,784 3,708 1.01 1.00
configure.tcc no-host 46 41 47 48 43 1.03 0.94
configure.util-linux no-host 12,731 13,516 12,319 12,738 12,281 0.97 0.96
configure.yash no-host 1,741 1,627 1,725 1,765 1,728 0.99 0.99
hello-world no-host 1 1 3 3 1 2.41 1.02

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,423 1,170 3,321 3,417 2,792 1.37 1.15
bin-true no-host 100,397 49,363 137,595 136,610 110,298 1.37 1.10
configure.cpython no-host 1,626,056 1,636,339 1,584,647 1,604,681 1,522,307 0.97 0.94
configure.ocaml no-host 299,052 280,817 305,045 307,269 299,772 1.02 1.00
configure.tcc no-host 5,227 4,222 5,590 5,689 5,122 1.07 0.98
configure.util-linux no-host 1,536,008 1,704,687 1,496,351 1,515,556 1,449,400 0.97 0.94
configure.yash no-host 173,213 159,476 176,533 176,950 172,669 1.02 1.00
hello-world no-host 152 84 393 402 181 2.59 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.4 10.1 6.4 2.00 1.36
bin-true no-host 3.3 1.4 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.7 34.6 34.5 34.6 34.6 1.00 1.00
configure.ocaml no-host 28.8 28.8 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.1 26.4 26.1 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.6 39.5 39.5 39.5 0.99 0.99
configure.yash no-host 33.4 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 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 812 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,341 1 65 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,319 3 64 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,751 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.4 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,725 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 815 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 13,736 1 68 14.9 34.6 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,738 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,784 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 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,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 6 11 4.7 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 21 11 11 9.4 osh-native
31 no-host abuild-print-help 22 16 7 10.1 osh-nosouffle
39 no-host abuild-print-help 19 16 4 6.4 osh-static
1 no-host bin-true 619 295 363 3.3 bash
9 no-host bin-true 442 278 167 1.4 dash
17 no-host bin-true 812 310 518 8.8 osh-native
25 no-host bin-true 815 311 520 9.2 osh-nosouffle
33 no-host bin-true 657 310 363 5.1 osh-static
2 no-host configure.cpython 14,001 7,684 6,706 34.7 bash
10 no-host configure.cpython 14,131 7,681 6,853 34.6 dash
18 no-host configure.cpython 13,341 7,137 6,478 34.5 osh-native
26 no-host configure.cpython 13,736 7,260 6,759 34.6 osh-nosouffle
34 no-host configure.cpython 13,237 7,364 6,113 34.6 osh-static
4 no-host configure.ocaml 3,715 1,516 1,238 28.8 bash
12 no-host configure.ocaml 3,703 1,483 1,213 28.8 dash
20 no-host configure.ocaml 3,751 1,500 1,289 28.7 osh-native
28 no-host configure.ocaml 3,784 1,549 1,277 28.7 osh-nosouffle
36 no-host configure.ocaml 3,708 1,481 1,259 28.6 osh-static
5 no-host configure.tcc 46 25 22 26.2 bash
13 no-host configure.tcc 41 22 19 26.1 dash
21 no-host configure.tcc 47 27 20 26.4 osh-native
29 no-host configure.tcc 48 27 22 26.1 osh-nosouffle
37 no-host configure.tcc 43 21 23 26.3 osh-static
3 no-host configure.util-linux 12,731 6,602 6,587 39.7 bash
11 no-host configure.util-linux 13,516 6,647 7,366 39.6 dash
19 no-host configure.util-linux 12,319 6,135 6,405 39.5 osh-native
27 no-host configure.util-linux 12,738 6,305 6,662 39.5 osh-nosouffle
35 no-host configure.util-linux 12,281 6,209 6,289 39.5 osh-static
6 no-host configure.yash 1,741 994 756 33.4 bash
14 no-host configure.yash 1,627 943 686 33.4 dash
22 no-host configure.yash 1,725 1,009 719 33.4 osh-native
30 no-host configure.yash 1,765 987 780 33.4 osh-nosouffle
38 no-host configure.yash 1,728 968 762 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 1 1 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,423 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,170 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,321 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,417 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,792 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,397 0 0 0 8 0 1,999 54 bash
9 no-host bin-true 49,363 0 0 0 8 0 2,994 59 dash
17 no-host bin-true 137,595 0 0 0 16 0 1,996 75 osh-native
25 no-host bin-true 136,610 0 0 0 16 0 1,994 77 osh-nosouffle
33 no-host bin-true 110,298 0 0 0 8 0 1,999 79 osh-static
2 no-host configure.cpython 1,626,056 0 0 0 25,272 0 14,080 993 bash
10 no-host configure.cpython 1,636,339 0 0 0 25,272 0 14,114 1,163 dash
18 no-host configure.cpython 1,584,647 0 0 0 25,280 0 11,299 817 osh-native
26 no-host configure.cpython 1,604,681 0 0 0 25,280 0 11,305 841 osh-nosouffle
34 no-host configure.cpython 1,522,307 0 0 0 25,272 0 11,299 819 osh-static
4 no-host configure.ocaml 299,052 0 0 0 4,432 0 2,017 198 bash
12 no-host configure.ocaml 280,817 0 0 0 4,432 0 2,108 196 dash
20 no-host configure.ocaml 305,045 0 0 8 4,440 0 2,002 246 osh-native
28 no-host configure.ocaml 307,269 0 0 0 4,440 0 2,001 206 osh-nosouffle
36 no-host configure.ocaml 299,772 0 0 0 4,432 0 2,003 247 osh-static
5 no-host configure.tcc 5,227 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,590 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,689 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,122 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,008 1 0 0 35,944 0 18,974 1,082 bash
11 no-host configure.util-linux 1,704,687 1 0 0 35,936 0 17,106 1,276 dash
19 no-host configure.util-linux 1,496,351 1 0 0 35,952 0 16,173 911 osh-native
27 no-host configure.util-linux 1,515,556 0 0 0 35,944 0 16,172 930 osh-nosouffle
35 no-host configure.util-linux 1,449,400 1 0 0 35,936 0 16,193 929 osh-static
6 no-host configure.yash 173,213 0 0 0 3,616 0 876 97 bash
14 no-host configure.yash 159,476 0 0 0 3,616 0 1,001 97 dash
22 no-host configure.yash 176,533 0 0 0 3,632 0 855 102 osh-native
30 no-host configure.yash 176,950 0 0 0 3,624 0 857 98 osh-nosouffle
38 no-host configure.yash 172,669 0 0 0 3,616 0 857 112 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 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 402 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-b1df5c1a
osh-nosouffle osh-d749c07c
osh-static osh-static-2b578a1e
host label host id
no-host no-host-9c670df1