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 20 22 18 1.30 1.14
bin-true no-host 620 441 827 815 650 1.33 1.05
configure.cpython no-host 13,780 13,899 13,480 13,466 12,921 0.98 0.94
configure.ocaml no-host 3,635 3,604 3,693 3,685 3,655 1.02 1.01
configure.tcc no-host 45 41 46 46 43 1.03 0.95
configure.util-linux no-host 12,459 13,254 12,406 12,558 12,077 1.00 0.97
configure.yash no-host 1,683 1,631 1,702 1,710 1,658 1.01 0.99
hello-world no-host 1 1 3 3 1 2.35 1.01

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,378 1,193 3,310 3,415 2,801 1.39 1.18
bin-true no-host 100,415 49,382 134,533 137,567 110,986 1.34 1.11
configure.cpython no-host 1,620,485 1,636,955 1,593,729 1,609,569 1,521,591 0.98 0.94
configure.ocaml no-host 298,817 280,766 304,960 306,401 300,205 1.02 1.00
configure.tcc no-host 5,250 4,200 5,621 5,687 5,134 1.07 0.98
configure.util-linux no-host 1,535,496 1,702,090 1,499,123 1,511,696 1,457,248 0.98 0.95
configure.yash no-host 173,427 159,506 176,778 177,226 173,044 1.02 1.00
hello-world no-host 151 90 392 398 182 2.60 1.21

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.0 6.4 2.00 1.36
bin-true no-host 3.3 1.6 8.7 9.4 5.2 2.64 1.60
configure.cpython no-host 34.6 34.5 34.6 34.4 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.5 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.1 26.3 26.3 1.00 1.01
configure.util-linux no-host 39.7 39.6 39.6 39.8 39.7 1.00 1.00
configure.yash no-host 33.2 33.4 33.2 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.4 2.00 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 827 1 2 3.5 8.7 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,480 1 64 14.8 34.6 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,406 3 64 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,693 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 46 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,702 1 2 2.7 33.2 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 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 6.9 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.4 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,466 1 66 14.9 34.4 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,558 3 65 21.6 39.8 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,685 1 2 2.8 28.6 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 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,710 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.0 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 9 8 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 20 12 9 9.4 osh-native
31 no-host abuild-print-help 22 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 9 9 6.4 osh-static
1 no-host bin-true 620 320 337 3.3 bash
9 no-host bin-true 441 268 178 1.6 dash
17 no-host bin-true 827 317 526 8.7 osh-native
25 no-host bin-true 815 315 518 9.4 osh-nosouffle
33 no-host bin-true 650 326 342 5.2 osh-static
2 no-host configure.cpython 13,780 7,601 6,562 34.6 bash
10 no-host configure.cpython 13,899 7,650 6,646 34.5 dash
18 no-host configure.cpython 13,480 7,061 6,692 34.6 osh-native
26 no-host configure.cpython 13,466 7,172 6,579 34.4 osh-nosouffle
34 no-host configure.cpython 12,921 7,197 5,957 34.4 osh-static
4 no-host configure.ocaml 3,635 1,472 1,204 28.7 bash
12 no-host configure.ocaml 3,604 1,505 1,123 28.5 dash
20 no-host configure.ocaml 3,693 1,456 1,277 28.7 osh-native
28 no-host configure.ocaml 3,685 1,484 1,241 28.6 osh-nosouffle
36 no-host configure.ocaml 3,655 1,449 1,238 28.7 osh-static
5 no-host configure.tcc 45 22 24 26.2 bash
13 no-host configure.tcc 41 25 16 26.2 dash
21 no-host configure.tcc 46 24 22 26.1 osh-native
29 no-host configure.tcc 46 19 28 26.3 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.3 osh-static
3 no-host configure.util-linux 12,459 6,590 6,333 39.7 bash
11 no-host configure.util-linux 13,254 6,437 7,305 39.6 dash
19 no-host configure.util-linux 12,406 6,109 6,516 39.6 osh-native
27 no-host configure.util-linux 12,558 6,214 6,568 39.8 osh-nosouffle
35 no-host configure.util-linux 12,077 6,134 6,160 39.7 osh-static
6 no-host configure.yash 1,683 952 740 33.2 bash
14 no-host configure.yash 1,631 964 669 33.4 dash
22 no-host configure.yash 1,702 964 741 33.2 osh-native
30 no-host configure.yash 1,710 963 749 33.4 osh-nosouffle
38 no-host configure.yash 1,658 962 700 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 2 1 6.9 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,378 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,193 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,310 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,415 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,801 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,415 0 0 0 8 0 1,997 64 bash
9 no-host bin-true 49,382 0 0 0 8 0 2,996 51 dash
17 no-host bin-true 134,533 0 0 0 16 0 1,999 77 osh-native
25 no-host bin-true 137,567 0 0 0 16 0 1,997 71 osh-nosouffle
33 no-host bin-true 110,986 0 0 0 8 0 1,996 44 osh-static
2 no-host configure.cpython 1,620,485 0 0 0 25,272 0 14,055 1,049 bash
10 no-host configure.cpython 1,636,955 0 0 0 25,280 0 14,094 1,009 dash
18 no-host configure.cpython 1,593,729 0 0 0 25,280 0 11,294 826 osh-native
26 no-host configure.cpython 1,609,569 0 0 0 25,280 0 11,308 861 osh-nosouffle
34 no-host configure.cpython 1,521,591 0 0 0 25,272 0 11,297 970 osh-static
4 no-host configure.ocaml 298,817 0 0 0 4,432 0 2,019 195 bash
12 no-host configure.ocaml 280,766 0 0 0 4,432 0 2,106 189 dash
20 no-host configure.ocaml 304,960 0 0 8 4,440 0 2,004 234 osh-native
28 no-host configure.ocaml 306,401 0 0 0 4,440 0 2,002 222 osh-nosouffle
36 no-host configure.ocaml 300,205 0 0 0 4,432 0 1,999 237 osh-static
5 no-host configure.tcc 5,250 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,200 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,621 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,687 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,134 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,496 0 0 0 35,944 0 18,987 1,064 bash
11 no-host configure.util-linux 1,702,090 0 0 0 35,936 0 17,134 1,266 dash
19 no-host configure.util-linux 1,499,123 0 0 0 35,952 0 16,202 898 osh-native
27 no-host configure.util-linux 1,511,696 1 0 0 35,944 0 16,176 955 osh-nosouffle
35 no-host configure.util-linux 1,457,248 0 0 0 35,944 0 16,139 912 osh-static
6 no-host configure.yash 173,427 0 0 0 3,616 0 878 98 bash
14 no-host configure.yash 159,506 0 0 0 3,624 0 999 106 dash
22 no-host configure.yash 176,778 0 0 0 3,624 0 857 99 osh-native
30 no-host configure.yash 177,226 0 0 0 3,624 0 856 105 osh-nosouffle
38 no-host configure.yash 173,044 0 0 0 3,616 0 856 95 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 90 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 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-5e90e3a2
osh-nosouffle osh-8f55b084
osh-static osh-static-edc99936
host label host id
no-host no-host-9c670df1