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 61 62 58 3.92 3.74
bin-true no-host 628 441 834 821 664 1.33 1.06
configure.cpython no-host 13,828 13,918 13,935 14,020 13,344 1.01 0.96
configure.ocaml no-host 3,724 3,640 3,778 3,767 3,724 1.01 1.00
configure.tcc no-host 46 42 55 55 52 1.20 1.15
configure.util-linux no-host 12,625 13,364 13,279 13,596 13,142 1.05 1.04
configure.yash no-host 1,715 1,688 1,736 1,728 1,698 1.01 0.99
hello-world no-host 1 1 3 3 2 2.82 1.29

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,371 1,185 3,465 3,535 2,946 1.46 1.24
bin-true no-host 101,397 49,399 139,015 137,750 111,441 1.37 1.10
configure.cpython no-host 1,629,066 1,638,899 1,589,114 1,613,401 1,508,386 0.98 0.93
configure.ocaml no-host 298,958 280,591 306,406 308,332 300,389 1.02 1.00
configure.tcc no-host 5,204 4,210 5,697 5,798 5,238 1.09 1.01
configure.util-linux no-host 1,539,208 1,699,712 1,497,985 1,513,034 1,448,488 0.97 0.94
configure.yash no-host 173,183 159,561 177,032 177,229 172,535 1.02 1.00
hello-world no-host 151 83 522 527 310 3.46 2.05

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 10.0 10.6 6.9 2.05 1.43
bin-true no-host 3.3 1.6 9.3 9.6 5.6 2.84 1.72
configure.cpython no-host 34.5 34.4 34.7 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.3 26.4 26.1 26.3 1.01 1.01
configure.util-linux no-host 39.6 39.7 39.5 39.5 39.4 1.00 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.4 6.9 7.6 3.8 2.21 1.21

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.8 6.9 3,896 3,896 0 720 1,912 1,264 2 0 50,000 0
bin-true no-host 834 1 2 4.0 9.3 152,882 11,691 2,964 14,779 73,387 64,716 3,008 3 50,000 0
configure.cpython no-host 13,935 1 66 15.5 34.7 1,753,364 36,445 28,935 93,076 872,311 787,977 25,789 61 50,000 0
configure.util-linux no-host 13,279 3 64 22.4 39.5 2,709,910 37,457 66,323 119,745 1,296,427 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,778 1 2 3.3 28.6 149,932 12,652 6,557 9,211 70,536 70,185 1,693 3 50,000 0
configure.tcc no-host 55 0 0 1.9 26.4 30,574 30,574 0 1,678 14,506 14,390 271 0 50,000 0
configure.yash no-host 1,736 1 2 3.2 33.4 143,736 11,764 6,618 7,164 70,792 65,780 2,095 3 50,000 0
abuild-print-help no-host 61 1 2 3.7 10.0 117,251 65,784 41,994 4,974 54,626 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.8 7.6 3,895 3,895 0 719 1,912 1,264 2 0 50,000 0
bin-true no-host 821 1 2 4.0 9.6 152,882 11,695 2,968 14,779 73,387 64,716 3,008 3 50,000 0
configure.cpython no-host 14,020 1 65 15.5 34.4 1,753,363 36,450 28,940 93,075 872,311 787,977 25,789 61 50,000 0
configure.util-linux no-host 13,596 3 67 22.4 39.5 2,709,910 37,463 66,329 119,745 1,296,427 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,767 1 2 3.3 28.7 149,932 12,657 6,562 9,211 70,536 70,185 1,693 3 50,000 0
configure.tcc no-host 55 0 0 1.9 26.1 30,574 30,574 0 1,678 14,506 14,390 271 0 50,000 0
configure.yash no-host 1,728 1 2 3.2 33.4 143,736 11,768 6,622 7,164 70,792 65,780 2,095 3 50,000 0
abuild-print-help no-host 62 1 2 3.7 10.6 117,251 65,788 41,998 4,974 54,626 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 8 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 61 20 41 10.0 osh-native
31 no-host abuild-print-help 62 21 42 10.6 osh-nosouffle
39 no-host abuild-print-help 58 15 43 6.9 osh-static
1 no-host bin-true 628 321 347 3.3 bash
9 no-host bin-true 441 269 177 1.6 dash
17 no-host bin-true 834 286 564 9.3 osh-native
25 no-host bin-true 821 316 523 9.6 osh-nosouffle
33 no-host bin-true 664 312 368 5.6 osh-static
2 no-host configure.cpython 13,828 7,631 6,582 34.5 bash
10 no-host configure.cpython 13,918 7,599 6,717 34.4 dash
18 no-host configure.cpython 13,935 7,251 6,961 34.7 osh-native
26 no-host configure.cpython 14,020 7,279 7,033 34.4 osh-nosouffle
34 no-host configure.cpython 13,344 7,232 6,339 34.5 osh-static
4 no-host configure.ocaml 3,724 1,484 1,281 28.7 bash
12 no-host configure.ocaml 3,640 1,476 1,188 28.7 dash
20 no-host configure.ocaml 3,778 1,498 1,321 28.6 osh-native
28 no-host configure.ocaml 3,767 1,464 1,344 28.7 osh-nosouffle
36 no-host configure.ocaml 3,724 1,486 1,269 28.7 osh-static
5 no-host configure.tcc 46 27 20 26.1 bash
13 no-host configure.tcc 42 22 20 26.3 dash
21 no-host configure.tcc 55 24 31 26.4 osh-native
29 no-host configure.tcc 55 21 35 26.1 osh-nosouffle
37 no-host configure.tcc 52 25 27 26.3 osh-static
3 no-host configure.util-linux 12,625 6,605 6,487 39.6 bash
11 no-host configure.util-linux 13,364 6,554 7,302 39.7 dash
19 no-host configure.util-linux 13,279 6,274 7,228 39.5 osh-native
27 no-host configure.util-linux 13,596 6,356 7,469 39.5 osh-nosouffle
35 no-host configure.util-linux 13,142 6,365 6,990 39.4 osh-static
6 no-host configure.yash 1,715 941 782 33.4 bash
14 no-host configure.yash 1,688 947 742 33.4 dash
22 no-host configure.yash 1,736 958 780 33.4 osh-native
30 no-host configure.yash 1,728 960 769 33.4 osh-nosouffle
38 no-host configure.yash 1,698 955 745 33.4 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.9 osh-native
24 no-host hello-world 3 2 1 7.6 osh-nosouffle
32 no-host hello-world 2 1 1 3.8 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,371 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,185 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,465 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,535 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,946 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,397 0 0 0 8 0 1,997 59 bash
9 no-host bin-true 49,399 0 0 0 8 0 2,993 48 dash
17 no-host bin-true 139,015 0 0 0 16 0 1,996 70 osh-native
25 no-host bin-true 137,750 0 0 0 16 0 2,000 69 osh-nosouffle
33 no-host bin-true 111,441 0 0 0 8 0 1,998 73 osh-static
2 no-host configure.cpython 1,629,066 0 0 0 25,272 0 14,066 1,000 bash
10 no-host configure.cpython 1,638,899 0 0 0 25,272 0 14,130 1,061 dash
18 no-host configure.cpython 1,589,114 0 0 0 25,280 0 11,306 864 osh-native
26 no-host configure.cpython 1,613,401 0 0 0 25,280 0 11,305 811 osh-nosouffle
34 no-host configure.cpython 1,508,386 0 0 0 25,272 0 11,304 853 osh-static
4 no-host configure.ocaml 298,958 0 0 0 4,432 0 2,019 193 bash
12 no-host configure.ocaml 280,591 0 0 0 4,432 0 2,109 185 dash
20 no-host configure.ocaml 306,406 0 0 8 4,440 0 1,999 238 osh-native
28 no-host configure.ocaml 308,332 0 0 0 4,440 0 2,002 192 osh-nosouffle
36 no-host configure.ocaml 300,389 0 0 0 4,432 0 2,001 207 osh-static
5 no-host configure.tcc 5,204 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,697 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,798 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,238 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,539,208 0 0 0 35,944 0 18,997 1,034 bash
11 no-host configure.util-linux 1,699,712 2 0 0 35,936 0 17,117 1,185 dash
19 no-host configure.util-linux 1,497,985 0 0 0 35,952 0 16,209 881 osh-native
27 no-host configure.util-linux 1,513,034 4 0 0 35,944 0 16,132 924 osh-nosouffle
35 no-host configure.util-linux 1,448,488 1 0 0 35,936 0 16,222 917 osh-static
6 no-host configure.yash 173,183 0 0 0 3,616 0 880 89 bash
14 no-host configure.yash 159,561 0 0 0 3,624 0 1,001 102 dash
22 no-host configure.yash 177,032 0 0 0 3,624 0 856 95 osh-native
30 no-host configure.yash 177,229 0 0 0 3,624 0 856 97 osh-nosouffle
38 no-host configure.yash 172,535 0 0 0 3,616 0 856 96 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 522 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 527 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 310 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-36499eb7
osh-nosouffle osh-a0939a70
osh-static osh-static-87965d14
host label host id
no-host no-host-9c670df1