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 24 19 1.30 1.15
bin-true no-host 649 449 809 832 662 1.25 1.02
configure.cpython no-host 14,287 14,234 13,940 14,050 13,326 0.98 0.93
configure.ocaml no-host 3,759 3,699 3,835 3,783 3,740 1.02 1.00
configure.tcc no-host 47 43 48 49 44 1.03 0.94
configure.util-linux no-host 13,031 13,688 12,896 12,979 12,631 0.99 0.97
configure.yash no-host 1,744 1,694 1,773 1,764 1,738 1.02 1.00
hello-world no-host 1 1 3 3 1 2.23 1.00

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,401 1,161 3,297 3,451 2,812 1.37 1.17
bin-true no-host 102,433 49,456 131,393 137,008 110,000 1.28 1.07
configure.cpython no-host 1,623,751 1,639,503 1,584,656 1,611,969 1,523,122 0.98 0.94
configure.ocaml no-host 298,941 280,796 306,529 307,164 301,011 1.03 1.01
configure.tcc no-host 5,227 4,208 5,627 5,681 5,143 1.08 0.98
configure.util-linux no-host 1,543,875 1,703,359 1,493,954 1,518,445 1,457,627 0.97 0.94
configure.yash no-host 173,273 159,497 176,545 176,760 173,117 1.02 1.00
hello-world no-host 152 86 388 396 181 2.55 1.19

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.8 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.8 8.9 5.2 2.79 1.67
configure.cpython no-host 34.5 34.6 34.6 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.5 28.8 28.5 1.00 1.00
configure.tcc no-host 26.0 26.3 26.2 26.4 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.5 39.5 39.5 39.7 0.99 1.00
configure.yash no-host 33.4 33.2 33.4 33.1 33.4 1.00 1.00
hello-world no-host 3.1 1.4 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 809 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,940 2 70 14.8 34.6 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,896 3 69 21.6 39.5 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,835 1 2 2.8 28.5 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.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,773 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 21 1 2 3.0 9.6 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 832 1 2 3.5 8.9 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 14,050 1 69 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,979 3 68 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,783 1 2 2.8 28.8 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,764 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 24 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 8 9 4.8 bash
15 no-host abuild-print-help 9 5 5 3.8 dash
23 no-host abuild-print-help 21 12 10 9.6 osh-native
31 no-host abuild-print-help 24 14 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.4 osh-static
1 no-host bin-true 649 319 372 3.1 bash
9 no-host bin-true 449 276 180 1.6 dash
17 no-host bin-true 809 310 518 8.8 osh-native
25 no-host bin-true 832 303 545 8.9 osh-nosouffle
33 no-host bin-true 662 331 347 5.2 osh-static
2 no-host configure.cpython 14,287 7,685 7,006 34.5 bash
10 no-host configure.cpython 14,234 7,781 6,867 34.6 dash
18 no-host configure.cpython 13,940 7,330 6,894 34.6 osh-native
26 no-host configure.cpython 14,050 7,391 6,957 34.5 osh-nosouffle
34 no-host configure.cpython 13,326 7,244 6,325 34.4 osh-static
4 no-host configure.ocaml 3,759 1,487 1,313 28.6 bash
12 no-host configure.ocaml 3,699 1,490 1,233 28.7 dash
20 no-host configure.ocaml 3,835 1,565 1,311 28.5 osh-native
28 no-host configure.ocaml 3,783 1,491 1,335 28.8 osh-nosouffle
36 no-host configure.ocaml 3,740 1,536 1,237 28.5 osh-static
5 no-host configure.tcc 47 27 21 26.0 bash
13 no-host configure.tcc 43 21 22 26.3 dash
21 no-host configure.tcc 48 24 25 26.2 osh-native
29 no-host configure.tcc 49 26 24 26.4 osh-nosouffle
37 no-host configure.tcc 44 21 24 26.3 osh-static
3 no-host configure.util-linux 13,031 6,743 6,780 39.7 bash
11 no-host configure.util-linux 13,688 6,522 7,671 39.5 dash
19 no-host configure.util-linux 12,896 6,398 6,730 39.5 osh-native
27 no-host configure.util-linux 12,979 6,344 6,875 39.5 osh-nosouffle
35 no-host configure.util-linux 12,631 6,391 6,463 39.7 osh-static
6 no-host configure.yash 1,744 932 820 33.4 bash
14 no-host configure.yash 1,694 966 729 33.2 dash
22 no-host configure.yash 1,773 990 785 33.4 osh-native
30 no-host configure.yash 1,764 955 811 33.1 osh-nosouffle
38 no-host configure.yash 1,738 971 769 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 1 6.6 osh-native
24 no-host hello-world 3 3 0 6.8 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,401 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,297 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,451 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,812 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,433 0 0 0 8 0 1,998 65 bash
9 no-host bin-true 49,456 0 0 0 8 0 2,995 49 dash
17 no-host bin-true 131,393 0 0 0 16 0 2,000 67 osh-native
25 no-host bin-true 137,008 0 0 0 16 0 1,998 87 osh-nosouffle
33 no-host bin-true 110,000 0 0 0 8 0 2,000 76 osh-static
2 no-host configure.cpython 1,623,751 0 0 0 25,272 0 14,094 1,042 bash
10 no-host configure.cpython 1,639,503 0 0 0 25,272 0 14,106 1,026 dash
18 no-host configure.cpython 1,584,656 0 0 0 25,280 0 11,297 946 osh-native
26 no-host configure.cpython 1,611,969 0 0 0 25,280 0 11,300 871 osh-nosouffle
34 no-host configure.cpython 1,523,122 0 0 0 25,272 0 11,299 892 osh-static
4 no-host configure.ocaml 298,941 0 0 0 4,432 0 2,016 187 bash
12 no-host configure.ocaml 280,796 0 0 0 4,432 0 2,111 211 dash
20 no-host configure.ocaml 306,529 0 0 0 4,440 0 2,001 222 osh-native
28 no-host configure.ocaml 307,164 0 0 0 4,440 0 1,999 192 osh-nosouffle
36 no-host configure.ocaml 301,011 0 0 0 4,432 0 1,998 226 osh-static
5 no-host configure.tcc 5,227 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,627 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,681 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,143 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,543,875 1 0 232 35,944 0 18,967 1,092 bash
11 no-host configure.util-linux 1,703,359 2 0 0 35,936 0 17,120 1,178 dash
19 no-host configure.util-linux 1,493,954 0 0 0 35,952 0 16,176 943 osh-native
27 no-host configure.util-linux 1,518,445 1 0 0 35,944 0 16,243 964 osh-nosouffle
35 no-host configure.util-linux 1,457,627 2 0 0 35,936 0 16,208 938 osh-static
6 no-host configure.yash 173,273 0 0 0 3,616 0 877 99 bash
14 no-host configure.yash 159,497 0 0 0 3,624 0 1,000 108 dash
22 no-host configure.yash 176,545 0 0 0 3,624 0 856 93 osh-native
30 no-host configure.yash 176,760 0 0 0 3,632 0 853 110 osh-nosouffle
38 no-host configure.yash 173,117 0 0 0 3,616 0 854 112 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 388 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-8bddf3f3
osh-nosouffle osh-4ba00b57
osh-static osh-static-50e13940
host label host id
no-host no-host-9c670df1