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 21 18 1.30 1.15
bin-true no-host 631 447 813 819 664 1.29 1.05
configure.cpython no-host 13,814 13,895 13,455 13,511 12,967 0.97 0.94
configure.ocaml no-host 3,667 3,601 3,690 3,723 3,667 1.01 1.00
configure.tcc no-host 45 41 47 47 43 1.03 0.96
configure.util-linux no-host 12,520 13,244 12,486 12,532 12,191 1.00 0.97
configure.yash no-host 1,677 1,655 1,690 1,685 1,667 1.01 0.99
hello-world no-host 1 1 3 3 1 2.36 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,385 1,177 3,326 3,391 2,811 1.39 1.18
bin-true no-host 101,382 49,419 135,318 134,362 110,979 1.33 1.09
configure.cpython no-host 1,620,836 1,641,286 1,591,487 1,604,322 1,523,402 0.98 0.94
configure.ocaml no-host 298,793 281,730 307,010 307,186 300,879 1.03 1.01
configure.tcc no-host 5,250 4,216 5,561 5,685 5,133 1.06 0.98
configure.util-linux no-host 1,540,026 1,698,234 1,499,804 1,510,180 1,457,900 0.97 0.95
configure.yash no-host 173,227 159,550 176,716 176,908 173,188 1.02 1.00
hello-world no-host 153 85 385 397 180 2.52 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.7 3.9 9.4 10.0 6.4 2.00 1.36
bin-true no-host 3.1 1.4 9.0 9.3 5.2 2.88 1.67
configure.cpython no-host 34.4 34.5 34.5 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.5 28.6 28.5 28.7 1.00 1.00
configure.tcc no-host 26.0 26.0 26.3 26.4 26.1 1.01 1.00
configure.util-linux no-host 39.7 39.7 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.4 6.9 3.4 2.04 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.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 813 1 2 3.5 9.0 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,455 1 68 14.8 34.5 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,486 3 64 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,690 1 2 2.8 28.6 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.3 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,690 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.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 819 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,511 1 68 14.8 34.6 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,532 3 65 21.6 39.6 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,723 1 2 2.8 28.5 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.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,685 1 2 2.7 33.3 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 8 8 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 11 10 9.4 osh-native
31 no-host abuild-print-help 21 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.4 osh-static
1 no-host bin-true 631 318 351 3.1 bash
9 no-host bin-true 447 273 179 1.4 dash
17 no-host bin-true 813 324 509 9.0 osh-native
25 no-host bin-true 819 314 524 9.3 osh-nosouffle
33 no-host bin-true 664 350 332 5.2 osh-static
2 no-host configure.cpython 13,814 7,564 6,638 34.4 bash
10 no-host configure.cpython 13,895 7,607 6,699 34.5 dash
18 no-host configure.cpython 13,455 7,225 6,509 34.5 osh-native
26 no-host configure.cpython 13,511 7,208 6,595 34.6 osh-nosouffle
34 no-host configure.cpython 12,967 7,118 6,097 34.5 osh-static
4 no-host configure.ocaml 3,667 1,460 1,246 28.6 bash
12 no-host configure.ocaml 3,601 1,449 1,178 28.5 dash
20 no-host configure.ocaml 3,690 1,449 1,284 28.6 osh-native
28 no-host configure.ocaml 3,723 1,494 1,272 28.5 osh-nosouffle
36 no-host configure.ocaml 3,667 1,461 1,239 28.7 osh-static
5 no-host configure.tcc 45 27 19 26.0 bash
13 no-host configure.tcc 41 26 16 26.0 dash
21 no-host configure.tcc 47 22 25 26.3 osh-native
29 no-host configure.tcc 47 28 19 26.4 osh-nosouffle
37 no-host configure.tcc 43 21 23 26.1 osh-static
3 no-host configure.util-linux 12,520 6,598 6,390 39.7 bash
11 no-host configure.util-linux 13,244 6,500 7,247 39.7 dash
19 no-host configure.util-linux 12,486 6,143 6,577 39.7 osh-native
27 no-host configure.util-linux 12,532 6,218 6,547 39.6 osh-nosouffle
35 no-host configure.util-linux 12,191 6,060 6,353 39.7 osh-static
6 no-host configure.yash 1,677 953 733 33.3 bash
14 no-host configure.yash 1,655 919 738 33.4 dash
22 no-host configure.yash 1,690 979 714 33.4 osh-native
30 no-host configure.yash 1,685 972 717 33.3 osh-nosouffle
38 no-host configure.yash 1,667 918 753 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 1 2 6.4 osh-native
24 no-host hello-world 3 1 2 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,385 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,177 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,326 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,391 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,811 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,382 0 0 0 8 0 1,997 71 bash
9 no-host bin-true 49,419 0 0 0 8 0 2,997 50 dash
17 no-host bin-true 135,318 0 0 0 16 0 1,999 79 osh-native
25 no-host bin-true 134,362 0 0 0 16 0 2,000 79 osh-nosouffle
33 no-host bin-true 110,979 0 0 0 8 0 1,998 69 osh-static
2 no-host configure.cpython 1,620,836 0 0 0 25,272 0 14,091 1,050 bash
10 no-host configure.cpython 1,641,286 0 0 0 25,272 0 14,114 1,035 dash
18 no-host configure.cpython 1,591,487 0 0 0 25,280 0 11,287 845 osh-native
26 no-host configure.cpython 1,604,322 0 0 0 25,280 0 11,310 874 osh-nosouffle
34 no-host configure.cpython 1,523,402 0 0 0 25,272 0 11,303 864 osh-static
4 no-host configure.ocaml 298,793 0 0 0 4,432 0 2,018 331 bash
12 no-host configure.ocaml 281,730 0 0 0 4,432 0 2,107 185 dash
20 no-host configure.ocaml 307,010 0 0 0 4,440 0 2,000 220 osh-native
28 no-host configure.ocaml 307,186 0 0 0 4,440 0 2,003 196 osh-nosouffle
36 no-host configure.ocaml 300,879 0 0 0 4,432 0 1,999 231 osh-static
5 no-host configure.tcc 5,250 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,561 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,685 0 0 0 96 0 44 3 osh-nosouffle
37 no-host configure.tcc 5,133 0 0 0 88 0 46 1 osh-static
3 no-host configure.util-linux 1,540,026 0 0 232 35,944 0 18,972 1,042 bash
11 no-host configure.util-linux 1,698,234 0 0 0 35,936 0 17,108 1,133 dash
19 no-host configure.util-linux 1,499,804 1 0 0 35,952 0 16,140 964 osh-native
27 no-host configure.util-linux 1,510,180 1 0 0 35,944 0 16,214 921 osh-nosouffle
35 no-host configure.util-linux 1,457,900 0 0 0 35,936 0 16,140 988 osh-static
6 no-host configure.yash 173,227 0 0 0 3,616 0 880 101 bash
14 no-host configure.yash 159,550 0 0 0 3,624 0 1,001 107 dash
22 no-host configure.yash 176,716 0 0 0 3,632 0 857 108 osh-native
30 no-host configure.yash 176,908 0 0 0 3,624 0 858 104 osh-nosouffle
38 no-host configure.yash 173,188 0 0 0 3,616 0 858 95 osh-static
0 no-host hello-world 153 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 385 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 397 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-bc526e13
osh-nosouffle osh-dbd9158d
osh-static osh-static-7439fac2
host label host id
no-host no-host-9c670df1