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 18 1.33 1.14
bin-true no-host 620 444 810 814 664 1.31 1.07
configure.cpython no-host 13,900 13,972 13,547 13,843 13,264 0.97 0.95
configure.ocaml no-host 3,702 3,683 3,742 3,770 3,744 1.01 1.01
configure.tcc no-host 46 42 48 48 43 1.03 0.94
configure.util-linux no-host 12,624 13,631 12,688 12,666 12,307 1.01 0.97
configure.yash no-host 1,729 1,658 1,705 1,747 1,686 0.99 0.97
hello-world no-host 1 1 3 3 1 2.69 1.10

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,403 1,161 3,270 3,428 2,812 1.36 1.17
bin-true no-host 101,420 49,418 132,312 133,926 110,040 1.30 1.08
configure.cpython no-host 1,621,982 1,629,816 1,579,697 1,608,446 1,523,078 0.97 0.94
configure.ocaml no-host 299,025 280,562 305,417 306,459 300,832 1.02 1.01
configure.tcc no-host 5,219 4,211 5,612 5,632 5,136 1.08 0.98
configure.util-linux no-host 1,543,576 1,696,374 1,494,354 1,513,729 1,457,281 0.97 0.94
configure.yash no-host 173,237 159,519 177,057 176,610 173,052 1.02 1.00
hello-world no-host 153 88 390 396 181 2.55 1.18

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.3 1.4 8.9 9.2 5.4 2.72 1.64
configure.cpython no-host 34.5 34.5 34.3 34.4 34.7 0.99 1.00
configure.ocaml no-host 28.6 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.2 26.3 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.1 33.1 33.4 0.99 1.00
hello-world no-host 3.1 1.7 6.6 6.9 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 810 1 2 3.5 8.9 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,547 1 70 14.8 34.3 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,688 3 69 21.6 39.6 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,742 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 48 0 0 1.4 26.3 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,705 1 2 2.7 33.1 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 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.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 814 1 2 3.5 9.2 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,843 1 69 14.8 34.4 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,666 3 66 21.6 39.7 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,770 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 48 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,747 1 2 2.7 33.1 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 23 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 6 11 4.8 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 21 8 15 9.4 osh-native
31 no-host abuild-print-help 23 13 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.4 osh-static
1 no-host bin-true 620 310 350 3.3 bash
9 no-host bin-true 444 277 173 1.4 dash
17 no-host bin-true 810 316 510 8.9 osh-native
25 no-host bin-true 814 311 519 9.2 osh-nosouffle
33 no-host bin-true 664 334 349 5.4 osh-static
2 no-host configure.cpython 13,900 7,615 6,662 34.5 bash
10 no-host configure.cpython 13,972 7,781 6,594 34.5 dash
18 no-host configure.cpython 13,547 7,240 6,585 34.3 osh-native
26 no-host configure.cpython 13,843 7,295 6,825 34.4 osh-nosouffle
34 no-host configure.cpython 13,264 7,309 6,199 34.7 osh-static
4 no-host configure.ocaml 3,702 1,526 1,217 28.6 bash
12 no-host configure.ocaml 3,683 1,487 1,219 28.5 dash
20 no-host configure.ocaml 3,742 1,497 1,286 28.7 osh-native
28 no-host configure.ocaml 3,770 1,518 1,294 28.7 osh-nosouffle
36 no-host configure.ocaml 3,744 1,536 1,239 28.7 osh-static
5 no-host configure.tcc 46 24 23 26.3 bash
13 no-host configure.tcc 42 22 20 26.2 dash
21 no-host configure.tcc 48 23 25 26.3 osh-native
29 no-host configure.tcc 48 26 23 26.1 osh-nosouffle
37 no-host configure.tcc 43 27 17 26.1 osh-static
3 no-host configure.util-linux 12,624 6,655 6,440 39.7 bash
11 no-host configure.util-linux 13,631 6,580 7,546 39.6 dash
19 no-host configure.util-linux 12,688 6,133 6,781 39.6 osh-native
27 no-host configure.util-linux 12,666 6,250 6,639 39.7 osh-nosouffle
35 no-host configure.util-linux 12,307 6,280 6,242 39.6 osh-static
6 no-host configure.yash 1,729 961 776 33.4 bash
14 no-host configure.yash 1,658 970 690 33.4 dash
22 no-host configure.yash 1,705 940 768 33.1 osh-native
30 no-host configure.yash 1,747 980 769 33.1 osh-nosouffle
38 no-host configure.yash 1,686 951 737 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.7 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 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,403 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,270 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,428 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,812 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,420 0 0 0 8 0 1,996 62 bash
9 no-host bin-true 49,418 0 0 0 8 0 2,999 54 dash
17 no-host bin-true 132,312 0 0 0 16 0 1,997 81 osh-native
25 no-host bin-true 133,926 0 0 0 16 0 1,998 68 osh-nosouffle
33 no-host bin-true 110,040 0 0 0 8 0 1,996 64 osh-static
2 no-host configure.cpython 1,621,982 0 0 0 25,272 0 14,062 1,047 bash
10 no-host configure.cpython 1,629,816 0 0 0 25,272 0 14,122 1,007 dash
18 no-host configure.cpython 1,579,697 0 0 0 25,280 0 11,305 850 osh-native
26 no-host configure.cpython 1,608,446 0 0 0 25,280 0 11,311 855 osh-nosouffle
34 no-host configure.cpython 1,523,078 1 0 0 25,272 0 11,308 873 osh-static
4 no-host configure.ocaml 299,025 0 0 0 4,432 0 2,025 197 bash
12 no-host configure.ocaml 280,562 0 0 0 4,432 0 2,101 204 dash
20 no-host configure.ocaml 305,417 0 0 0 4,440 0 2,000 201 osh-native
28 no-host configure.ocaml 306,459 0 0 0 4,440 0 2,002 185 osh-nosouffle
36 no-host configure.ocaml 300,832 0 0 0 4,432 0 2,000 225 osh-static
5 no-host configure.tcc 5,219 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,612 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,632 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,136 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,543,576 1 0 232 35,944 0 19,006 1,119 bash
11 no-host configure.util-linux 1,696,374 2 0 0 35,936 0 17,145 1,180 dash
19 no-host configure.util-linux 1,494,354 4 0 0 35,952 0 16,127 929 osh-native
27 no-host configure.util-linux 1,513,729 1 0 0 35,944 0 16,216 871 osh-nosouffle
35 no-host configure.util-linux 1,457,281 2 0 0 35,936 0 16,207 877 osh-static
6 no-host configure.yash 173,237 0 0 0 3,616 0 878 95 bash
14 no-host configure.yash 159,519 0 0 0 3,624 0 1,001 101 dash
22 no-host configure.yash 177,057 0 0 0 3,624 0 858 101 osh-native
30 no-host configure.yash 176,610 0 0 0 3,624 0 859 99 osh-nosouffle
38 no-host configure.yash 173,052 0 0 0 3,616 0 857 97 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 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-b3cba4c9
osh-nosouffle osh-2ee35f3f
osh-static osh-static-3ac80ee3
host label host id
no-host no-host-9c670df1