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 21 18 1.30 1.14
bin-true no-host 620 436 807 808 656 1.30 1.06
configure.cpython no-host 13,879 13,754 13,501 13,377 12,958 0.97 0.93
configure.ocaml no-host 3,646 3,575 3,663 3,697 3,675 1.00 1.01
configure.tcc no-host 45 43 47 47 43 1.03 0.94
configure.util-linux no-host 12,544 13,247 12,353 12,651 12,087 0.98 0.96
configure.yash no-host 1,699 1,622 1,673 1,714 1,661 0.99 0.98
hello-world no-host 1 1 3 3 1 2.32 0.97

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,382 1,150 3,288 3,415 2,810 1.38 1.18
bin-true no-host 100,411 49,392 134,367 132,979 110,990 1.34 1.11
configure.cpython no-host 1,630,388 1,640,887 1,588,258 1,606,316 1,522,666 0.97 0.93
configure.ocaml no-host 298,987 280,535 305,461 306,088 300,833 1.02 1.01
configure.tcc no-host 5,231 4,189 5,569 5,651 5,136 1.06 0.98
configure.util-linux no-host 1,535,880 1,699,512 1,498,621 1,519,088 1,457,308 0.98 0.95
configure.yash no-host 173,500 159,605 176,120 177,627 173,049 1.02 1.00
hello-world no-host 149 85 391 395 182 2.62 1.22

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.3 10.0 6.4 1.92 1.32
bin-true no-host 3.1 1.4 8.7 9.3 5.2 2.75 1.67
configure.cpython no-host 34.5 34.5 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 25.9 26.2 26.1 26.0 26.2 1.01 1.01
configure.util-linux no-host 39.6 39.5 39.7 39.5 39.9 1.00 1.01
configure.yash no-host 33.1 33.4 33.4 33.2 33.4 1.01 1.01
hello-world no-host 3.1 1.6 6.6 6.8 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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 807 1 2 3.5 8.7 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,501 1 68 14.8 34.4 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,353 3 65 21.6 39.7 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,663 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,673 1 2 2.7 33.4 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.3 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.8 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 808 1 2 3.5 9.3 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,377 1 64 14.8 34.5 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,651 3 64 21.6 39.5 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,697 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,714 1 2 2.7 33.2 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,212 65,788 41,998 4,969 54,592 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 7 9 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 9 12 9.3 osh-native
31 no-host abuild-print-help 21 9 13 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 8 6.4 osh-static
1 no-host bin-true 620 309 349 3.1 bash
9 no-host bin-true 436 276 165 1.4 dash
17 no-host bin-true 807 319 504 8.7 osh-native
25 no-host bin-true 808 327 497 9.3 osh-nosouffle
33 no-host bin-true 656 330 343 5.2 osh-static
2 no-host configure.cpython 13,879 7,600 6,670 34.5 bash
10 no-host configure.cpython 13,754 7,562 6,591 34.5 dash
18 no-host configure.cpython 13,501 7,242 6,541 34.4 osh-native
26 no-host configure.cpython 13,377 7,124 6,538 34.5 osh-nosouffle
34 no-host configure.cpython 12,958 7,151 6,046 34.5 osh-static
4 no-host configure.ocaml 3,646 1,491 1,194 28.6 bash
12 no-host configure.ocaml 3,575 1,442 1,158 28.6 dash
20 no-host configure.ocaml 3,663 1,481 1,221 28.7 osh-native
28 no-host configure.ocaml 3,697 1,449 1,288 28.7 osh-nosouffle
36 no-host configure.ocaml 3,675 1,465 1,241 28.7 osh-static
5 no-host configure.tcc 45 23 23 25.9 bash
13 no-host configure.tcc 43 26 18 26.2 dash
21 no-host configure.tcc 47 20 28 26.1 osh-native
29 no-host configure.tcc 47 24 24 26.0 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.2 osh-static
3 no-host configure.util-linux 12,544 6,568 6,438 39.6 bash
11 no-host configure.util-linux 13,247 6,441 7,296 39.5 dash
19 no-host configure.util-linux 12,353 6,174 6,399 39.7 osh-native
27 no-host configure.util-linux 12,651 6,221 6,659 39.5 osh-nosouffle
35 no-host configure.util-linux 12,087 6,123 6,178 39.9 osh-static
6 no-host configure.yash 1,699 964 743 33.1 bash
14 no-host configure.yash 1,622 919 706 33.4 dash
22 no-host configure.yash 1,673 949 728 33.4 osh-native
30 no-host configure.yash 1,714 952 764 33.2 osh-nosouffle
38 no-host configure.yash 1,661 960 704 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 1 2 6.8 osh-nosouffle
32 no-host hello-world 1 1 0 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,382 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,150 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,288 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,810 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,411 0 0 0 8 0 1,997 55 bash
9 no-host bin-true 49,392 0 0 0 8 0 2,996 57 dash
17 no-host bin-true 134,367 0 0 0 16 0 1,997 85 osh-native
25 no-host bin-true 132,979 0 0 0 16 0 2,000 71 osh-nosouffle
33 no-host bin-true 110,990 0 0 0 8 0 2,000 60 osh-static
2 no-host configure.cpython 1,630,388 0 0 0 25,272 0 14,058 1,048 bash
10 no-host configure.cpython 1,640,887 0 0 0 25,272 0 14,097 1,204 dash
18 no-host configure.cpython 1,588,258 0 0 0 25,280 0 11,285 832 osh-native
26 no-host configure.cpython 1,606,316 0 0 0 25,280 0 11,316 982 osh-nosouffle
34 no-host configure.cpython 1,522,666 1 0 0 25,272 0 11,304 825 osh-static
4 no-host configure.ocaml 298,987 0 0 0 4,432 0 2,018 209 bash
12 no-host configure.ocaml 280,535 0 0 0 4,432 0 2,103 186 dash
20 no-host configure.ocaml 305,461 0 0 0 4,440 0 2,000 243 osh-native
28 no-host configure.ocaml 306,088 0 0 0 4,440 0 1,997 198 osh-nosouffle
36 no-host configure.ocaml 300,833 0 0 0 4,432 0 1,999 226 osh-static
5 no-host configure.tcc 5,231 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,189 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,569 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,651 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,136 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,535,880 0 0 232 35,944 0 18,981 1,032 bash
11 no-host configure.util-linux 1,699,512 1 0 0 35,936 0 17,148 1,115 dash
19 no-host configure.util-linux 1,498,621 0 0 0 35,952 0 16,160 870 osh-native
27 no-host configure.util-linux 1,519,088 0 0 0 35,944 0 16,159 916 osh-nosouffle
35 no-host configure.util-linux 1,457,308 3 0 0 35,936 0 16,213 935 osh-static
6 no-host configure.yash 173,500 0 0 0 3,616 0 874 89 bash
14 no-host configure.yash 159,605 0 0 0 3,616 0 997 98 dash
22 no-host configure.yash 176,120 0 0 0 3,624 0 858 99 osh-native
30 no-host configure.yash 177,627 0 0 0 3,624 0 856 93 osh-nosouffle
38 no-host configure.yash 173,049 0 0 0 3,616 0 858 92 osh-static
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 395 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-8cd48d33
osh-nosouffle osh-9f7914d8
osh-static osh-static-fef66d19
host label host id
no-host no-host-9c670df1