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 14 8 17 19 17 1.24 1.23
bin-true no-host 584 364 609 609 493 1.04 0.84
configure.cpython no-host 13,059 13,406 12,982 13,539 12,077 0.99 0.92
configure.ocaml no-host 3,278 3,600 3,552 3,593 3,240 1.08 0.99
configure.tcc no-host 37 38 40 50 36 1.08 0.97
configure.util-linux no-host 11,924 13,272 11,433 11,869 11,099 0.96 0.93
configure.yash no-host 1,463 1,507 1,421 1,643 1,415 0.97 0.97
hello-world no-host 1 1 2 2 1 1.98 0.91

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,415 1,185 3,334 3,433 2,808 1.38 1.16
bin-true no-host 102,904 49,830 137,991 139,994 110,707 1.34 1.08
configure.cpython no-host 1,633,178 1,642,554 1,591,930 1,609,820 1,526,978 0.97 0.93
configure.ocaml no-host 300,263 281,447 306,826 307,397 300,437 1.02 1.00
configure.tcc no-host 5,249 4,257 5,616 5,675 5,150 1.07 0.98
configure.util-linux no-host 1,543,723 1,707,366 1,500,346 1,507,115 1,455,173 0.97 0.94
configure.yash no-host 173,749 159,981 177,299 177,518 173,054 1.02 1.00
hello-world no-host 151 88 396 401 182 2.62 1.21

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 4.1 9.4 10.0 6.4 1.95 1.32
bin-true no-host 3.3 1.7 8.9 9.2 5.2 2.72 1.60
configure.cpython no-host 34.6 34.5 34.5 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.6 28.7 28.9 0.99 1.00
configure.tcc no-host 26.0 26.2 26.3 26.3 26.4 1.01 1.02
configure.util-linux no-host 39.9 39.7 39.7 39.7 39.6 1.00 0.99
configure.yash no-host 33.5 33.3 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.7 7.1 3.4 2.04 1.04

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 2 0 0 0.3 6.7 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 609 1 2 3.5 8.9 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 12,982 2 65 14.8 34.5 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 11,433 3 71 21.6 39.7 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,552 1 2 2.8 28.6 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,421 1 2 2.7 33.4 143,778 11,764 6,618 7,161 70,824 65,793 2,095 3 50,000 0
abuild-print-help no-host 17 1 2 3.0 9.4 117,276 65,784 41,994 4,970 54,643 57,663 277 3 83,988 1
hello-world no-host 2 0 0 0.3 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 609 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,539 2 67 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 11,869 3 71 21.6 39.7 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,593 1 2 2.8 28.7 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,643 1 2 2.7 33.4 143,778 11,768 6,622 7,161 70,824 65,793 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.0 117,276 65,788 41,998 4,970 54,643 57,663 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 14 5 9 4.8 bash
15 no-host abuild-print-help 8 4 3 4.1 dash
23 no-host abuild-print-help 17 8 9 9.4 osh-native
31 no-host abuild-print-help 19 11 9 10.0 osh-nosouffle
39 no-host abuild-print-help 17 14 4 6.4 osh-static
1 no-host bin-true 584 313 293 3.3 bash
9 no-host bin-true 364 247 104 1.7 dash
17 no-host bin-true 609 316 305 8.9 osh-native
25 no-host bin-true 609 318 303 9.2 osh-nosouffle
33 no-host bin-true 493 308 196 5.2 osh-static
2 no-host configure.cpython 13,059 8,060 5,230 34.6 bash
10 no-host configure.cpython 13,406 8,245 5,397 34.5 dash
18 no-host configure.cpython 12,982 7,808 5,277 34.5 osh-native
26 no-host configure.cpython 13,539 8,078 5,562 34.5 osh-nosouffle
34 no-host configure.cpython 12,077 7,565 4,637 34.7 osh-static
4 no-host configure.ocaml 3,278 1,495 794 28.8 bash
12 no-host configure.ocaml 3,600 1,586 1,009 28.7 dash
20 no-host configure.ocaml 3,552 1,592 955 28.6 osh-native
28 no-host configure.ocaml 3,593 1,589 1,007 28.7 osh-nosouffle
36 no-host configure.ocaml 3,240 1,486 757 28.9 osh-static
5 no-host configure.tcc 37 25 13 26.0 bash
13 no-host configure.tcc 38 22 16 26.2 dash
21 no-host configure.tcc 40 25 16 26.3 osh-native
29 no-host configure.tcc 50 28 22 26.3 osh-nosouffle
37 no-host configure.tcc 36 20 16 26.4 osh-static
3 no-host configure.util-linux 11,924 7,118 5,113 39.9 bash
11 no-host configure.util-linux 13,272 7,384 6,216 39.7 dash
19 no-host configure.util-linux 11,433 6,598 4,896 39.7 osh-native
27 no-host configure.util-linux 11,869 6,596 5,349 39.7 osh-nosouffle
35 no-host configure.util-linux 11,099 6,593 4,591 39.6 osh-static
6 no-host configure.yash 1,463 959 500 33.5 bash
14 no-host configure.yash 1,507 965 526 33.3 dash
22 no-host configure.yash 1,421 924 491 33.4 osh-native
30 no-host configure.yash 1,643 1,016 607 33.4 osh-nosouffle
38 no-host configure.yash 1,415 922 481 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 2 0 2 6.7 osh-native
24 no-host hello-world 2 2 0 7.1 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,415 0 0 0 8 0 40 1 bash
15 no-host abuild-print-help 1,185 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,334 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,433 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,808 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,904 0 0 0 8 0 1,995 52 bash
9 no-host bin-true 49,830 0 0 0 8 0 2,989 46 dash
17 no-host bin-true 137,991 0 0 0 16 0 1,996 61 osh-native
25 no-host bin-true 139,994 0 0 0 16 0 2,001 69 osh-nosouffle
33 no-host bin-true 110,707 0 0 0 8 0 2,001 62 osh-static
2 no-host configure.cpython 1,633,178 1 0 0 25,272 0 14,023 994 bash
10 no-host configure.cpython 1,642,554 0 0 0 25,280 0 14,047 1,125 dash
18 no-host configure.cpython 1,591,930 0 0 0 25,280 0 11,281 819 osh-native
26 no-host configure.cpython 1,609,820 1 0 0 25,280 0 11,278 844 osh-nosouffle
34 no-host configure.cpython 1,526,978 1 0 0 25,272 0 11,290 825 osh-static
4 no-host configure.ocaml 300,263 0 0 0 4,432 0 2,022 182 bash
12 no-host configure.ocaml 281,447 0 0 0 4,432 0 2,110 184 dash
20 no-host configure.ocaml 306,826 0 0 8 4,440 0 2,007 199 osh-native
28 no-host configure.ocaml 307,397 0 0 0 4,440 0 2,004 199 osh-nosouffle
36 no-host configure.ocaml 300,437 0 0 0 4,432 0 2,002 200 osh-static
5 no-host configure.tcc 5,249 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,257 0 0 0 88 0 51 3 dash
21 no-host configure.tcc 5,616 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,675 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,150 0 0 0 88 0 44 1 osh-static
3 no-host configure.util-linux 1,543,723 1 0 0 35,944 0 18,763 1,028 bash
11 no-host configure.util-linux 1,707,366 0 0 0 35,936 0 16,833 1,124 dash
19 no-host configure.util-linux 1,500,346 8 0 0 35,952 0 16,170 863 osh-native
27 no-host configure.util-linux 1,507,115 2 0 0 35,944 0 16,229 852 osh-nosouffle
35 no-host configure.util-linux 1,455,173 0 0 0 35,944 0 16,160 901 osh-static
6 no-host configure.yash 173,749 0 0 0 3,616 0 879 98 bash
14 no-host configure.yash 159,981 0 0 0 3,624 0 1,001 92 dash
22 no-host configure.yash 177,299 0 0 0 3,632 0 859 89 osh-native
30 no-host configure.yash 177,518 0 0 0 3,632 0 858 96 osh-nosouffle
38 no-host configure.yash 173,054 0 0 0 3,616 0 859 80 osh-static
0 no-host hello-world 151 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 396 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 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-8b0272c5
osh-nosouffle osh-291bffd8
osh-static osh-static-283bbfaf
host label host id
no-host no-host-9c670df1