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 23 19 1.33 1.20
bin-true no-host 626 458 816 806 658 1.30 1.05
configure.cpython no-host 14,035 14,118 13,669 13,915 13,259 0.97 0.94
configure.ocaml no-host 3,697 3,663 3,755 3,757 3,710 1.02 1.00
configure.tcc no-host 45 42 47 48 44 1.04 0.97
configure.util-linux no-host 12,687 13,500 12,659 12,986 12,360 1.00 0.97
configure.yash no-host 1,721 1,684 1,748 1,769 1,714 1.02 1.00
hello-world no-host 1 1 3 3 1 2.38 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,394 1,183 3,313 3,397 2,852 1.38 1.19
bin-true no-host 100,447 49,423 134,967 132,347 111,774 1.34 1.11
configure.cpython no-host 1,618,498 1,639,521 1,581,535 1,603,952 1,525,015 0.98 0.94
configure.ocaml no-host 298,758 281,034 305,941 306,623 300,171 1.02 1.00
configure.tcc no-host 5,246 4,213 5,607 5,689 5,145 1.07 0.98
configure.util-linux no-host 1,543,370 1,698,059 1,493,928 1,511,703 1,451,795 0.97 0.94
configure.yash no-host 173,298 159,582 176,647 177,333 172,950 1.02 1.00
hello-world no-host 152 88 392 399 182 2.58 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.9 9.4 10.0 6.4 1.95 1.32
bin-true no-host 3.1 1.7 8.9 9.2 5.1 2.83 1.62
configure.cpython no-host 34.6 34.7 34.5 34.7 34.6 1.00 1.00
configure.ocaml no-host 28.5 28.7 28.6 28.7 28.7 1.00 1.01
configure.tcc no-host 26.2 26.2 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.8 39.9 1.00 1.00
configure.yash no-host 33.4 33.4 33.2 33.3 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 816 1 2 3.5 8.9 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,669 1 68 14.8 34.5 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,659 3 67 21.6 39.6 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,755 1 2 2.8 28.6 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,748 1 2 2.7 33.2 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 7.1 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 806 1 2 3.5 9.2 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,915 2 72 14.8 34.7 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,986 3 71 21.6 39.8 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,757 1 2 2.8 28.7 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,769 1 2 2.7 33.3 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 3.0 10.0 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 7 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 21 9 13 9.4 osh-native
31 no-host abuild-print-help 23 12 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.4 osh-static
1 no-host bin-true 626 317 350 3.1 bash
9 no-host bin-true 458 278 189 1.7 dash
17 no-host bin-true 816 325 508 8.9 osh-native
25 no-host bin-true 806 308 515 9.2 osh-nosouffle
33 no-host bin-true 658 317 360 5.1 osh-static
2 no-host configure.cpython 14,035 7,701 6,728 34.6 bash
10 no-host configure.cpython 14,118 7,751 6,781 34.7 dash
18 no-host configure.cpython 13,669 7,281 6,670 34.5 osh-native
26 no-host configure.cpython 13,915 7,403 6,804 34.7 osh-nosouffle
34 no-host configure.cpython 13,259 7,268 6,236 34.6 osh-static
4 no-host configure.ocaml 3,697 1,516 1,221 28.5 bash
12 no-host configure.ocaml 3,663 1,470 1,218 28.7 dash
20 no-host configure.ocaml 3,755 1,497 1,298 28.6 osh-native
28 no-host configure.ocaml 3,757 1,557 1,241 28.7 osh-nosouffle
36 no-host configure.ocaml 3,710 1,535 1,204 28.7 osh-static
5 no-host configure.tcc 45 26 20 26.2 bash
13 no-host configure.tcc 42 27 16 26.2 dash
21 no-host configure.tcc 47 25 23 26.2 osh-native
29 no-host configure.tcc 48 27 22 26.2 osh-nosouffle
37 no-host configure.tcc 44 31 14 26.2 osh-static
3 no-host configure.util-linux 12,687 6,721 6,436 39.7 bash
11 no-host configure.util-linux 13,500 6,643 7,360 39.6 dash
19 no-host configure.util-linux 12,659 6,211 6,671 39.6 osh-native
27 no-host configure.util-linux 12,986 6,461 6,761 39.8 osh-nosouffle
35 no-host configure.util-linux 12,360 6,235 6,341 39.9 osh-static
6 no-host configure.yash 1,721 970 757 33.4 bash
14 no-host configure.yash 1,684 987 699 33.4 dash
22 no-host configure.yash 1,748 949 801 33.2 osh-native
30 no-host configure.yash 1,769 973 797 33.3 osh-nosouffle
38 no-host configure.yash 1,714 994 723 33.3 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 3 0 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 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,394 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,313 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,397 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,852 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 100,447 0 0 0 8 0 1,996 63 bash
9 no-host bin-true 49,423 0 0 0 8 0 2,992 42 dash
17 no-host bin-true 134,967 0 0 0 16 0 1,997 67 osh-native
25 no-host bin-true 132,347 0 0 0 16 0 2,001 85 osh-nosouffle
33 no-host bin-true 111,774 0 0 0 8 0 1,999 76 osh-static
2 no-host configure.cpython 1,618,498 0 0 0 25,272 0 14,072 1,077 bash
10 no-host configure.cpython 1,639,521 0 0 0 25,272 0 14,144 1,056 dash
18 no-host configure.cpython 1,581,535 0 0 0 25,280 0 11,289 832 osh-native
26 no-host configure.cpython 1,603,952 0 0 0 25,280 0 11,304 849 osh-nosouffle
34 no-host configure.cpython 1,525,015 0 0 0 25,272 0 11,312 833 osh-static
4 no-host configure.ocaml 298,758 0 0 0 4,432 0 2,015 200 bash
12 no-host configure.ocaml 281,034 0 0 0 4,432 0 2,106 191 dash
20 no-host configure.ocaml 305,941 0 0 0 4,440 0 1,998 230 osh-native
28 no-host configure.ocaml 306,623 0 0 0 4,440 0 2,000 207 osh-nosouffle
36 no-host configure.ocaml 300,171 0 0 0 4,432 0 2,001 230 osh-static
5 no-host configure.tcc 5,246 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,607 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,689 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,145 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,543,370 1 0 232 35,944 0 18,915 1,056 bash
11 no-host configure.util-linux 1,698,059 2 0 0 35,936 0 17,121 1,188 dash
19 no-host configure.util-linux 1,493,928 2 0 0 35,952 0 16,140 930 osh-native
27 no-host configure.util-linux 1,511,703 1 0 0 35,944 0 16,229 873 osh-nosouffle
35 no-host configure.util-linux 1,451,795 0 0 0 35,936 0 16,212 985 osh-static
6 no-host configure.yash 173,298 0 0 0 3,616 0 880 93 bash
14 no-host configure.yash 159,582 0 0 0 3,616 0 1,001 108 dash
22 no-host configure.yash 176,647 0 0 0 3,624 0 855 260 osh-native
30 no-host configure.yash 177,333 0 0 0 3,624 0 858 102 osh-nosouffle
38 no-host configure.yash 172,950 0 0 0 3,624 0 855 102 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 88 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 399 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-18eae463
osh-nosouffle osh-e6d18005
osh-static osh-static-e46fa02e
host label host id
no-host no-host-9c670df1