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.29 1.16
bin-true no-host 614 439 799 813 653 1.30 1.06
configure.cpython no-host 13,574 13,719 13,334 13,405 12,802 0.98 0.94
configure.ocaml no-host 3,662 3,573 3,674 3,672 3,634 1.00 0.99
configure.tcc no-host 46 41 46 47 43 1.01 0.94
configure.util-linux no-host 12,412 13,149 12,377 12,489 12,075 1.00 0.97
configure.yash no-host 1,672 1,643 1,688 1,675 1,688 1.01 1.01
hello-world no-host 1 1 3 3 1 2.43 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,397 1,158 3,296 3,422 2,852 1.38 1.19
bin-true no-host 100,414 49,421 130,977 134,390 110,717 1.30 1.10
configure.cpython no-host 1,621,365 1,635,951 1,590,673 1,603,601 1,522,480 0.98 0.94
configure.ocaml no-host 299,304 280,685 306,012 307,368 300,075 1.02 1.00
configure.tcc no-host 5,208 4,198 5,597 5,713 5,124 1.07 0.98
configure.util-linux no-host 1,538,539 1,696,734 1,500,571 1,516,953 1,478,223 0.98 0.96
configure.yash no-host 173,152 159,573 176,890 177,128 172,879 1.02 1.00
hello-world no-host 151 86 391 399 181 2.59 1.20

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.6 9.8 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.9 9.2 5.1 2.83 1.62
configure.cpython no-host 34.5 34.5 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.0 26.3 26.1 26.4 26.1 1.01 1.01
configure.util-linux no-host 39.7 39.6 39.5 39.5 39.7 0.99 1.00
configure.yash no-host 33.1 33.2 33.3 33.4 33.1 1.00 1.00
hello-world no-host 3.1 1.4 6.6 7.1 3.3 2.08 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 3 0 0 0.3 6.6 3,910 3,910 0 722 1,924 1,264 2 0 50,000 0
bin-true no-host 799 1 2 3.5 8.9 151,895 10,758 2,972 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,334 1 63 14.8 34.5 1,750,792 35,391 28,948 93,077 869,750 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,377 3 62 21.6 39.5 2,705,328 37,463 66,336 119,745 1,291,845 1,293,738 32,527 42 132,672 1
configure.ocaml no-host 3,674 1 2 2.8 28.7 149,695 12,650 6,565 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,688 1 2 2.7 33.3 143,457 11,463 6,619 7,164 70,521 65,772 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,226 65,792 42,002 4,975 54,600 57,651 277 3 84,004 1
hello-world no-host 3 0 0 0.3 7.1 3,909 3,909 0 721 1,924 1,264 2 0 50,000 0
bin-true no-host 813 1 2 3.5 9.2 151,895 10,762 2,976 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,405 1 64 14.8 34.5 1,750,791 35,396 28,953 93,076 869,750 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,489 3 63 21.6 39.5 2,705,328 37,469 66,342 119,745 1,291,845 1,293,738 32,527 42 132,684 1
configure.ocaml no-host 3,672 1 2 2.8 28.7 149,695 12,655 6,570 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.4 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,675 1 2 2.7 33.4 143,457 11,467 6,623 7,164 70,521 65,772 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.8 117,226 65,796 42,006 4,975 54,600 57,651 277 3 84,012 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.8 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 20 10 11 9.6 osh-native
31 no-host abuild-print-help 21 11 11 9.8 osh-nosouffle
39 no-host abuild-print-help 18 10 8 6.4 osh-static
1 no-host bin-true 614 308 342 3.1 bash
9 no-host bin-true 439 273 173 1.6 dash
17 no-host bin-true 799 315 501 8.9 osh-native
25 no-host bin-true 813 296 531 9.2 osh-nosouffle
33 no-host bin-true 653 305 364 5.1 osh-static
2 no-host configure.cpython 13,574 7,461 6,494 34.5 bash
10 no-host configure.cpython 13,719 7,537 6,575 34.5 dash
18 no-host configure.cpython 13,334 7,094 6,504 34.5 osh-native
26 no-host configure.cpython 13,405 7,113 6,576 34.5 osh-nosouffle
34 no-host configure.cpython 12,802 7,159 5,877 34.4 osh-static
4 no-host configure.ocaml 3,662 1,495 1,205 28.6 bash
12 no-host configure.ocaml 3,573 1,416 1,181 28.7 dash
20 no-host configure.ocaml 3,674 1,473 1,240 28.7 osh-native
28 no-host configure.ocaml 3,672 1,440 1,273 28.7 osh-nosouffle
36 no-host configure.ocaml 3,634 1,480 1,186 28.7 osh-static
5 no-host configure.tcc 46 22 24 26.0 bash
13 no-host configure.tcc 41 22 19 26.3 dash
21 no-host configure.tcc 46 21 25 26.1 osh-native
29 no-host configure.tcc 47 26 21 26.4 osh-nosouffle
37 no-host configure.tcc 43 22 22 26.1 osh-static
3 no-host configure.util-linux 12,412 6,567 6,308 39.7 bash
11 no-host configure.util-linux 13,149 6,452 7,179 39.6 dash
19 no-host configure.util-linux 12,377 6,163 6,431 39.5 osh-native
27 no-host configure.util-linux 12,489 6,223 6,479 39.5 osh-nosouffle
35 no-host configure.util-linux 12,075 6,160 6,128 39.7 osh-static
6 no-host configure.yash 1,672 916 765 33.1 bash
14 no-host configure.yash 1,643 968 677 33.2 dash
22 no-host configure.yash 1,688 929 761 33.3 osh-native
30 no-host configure.yash 1,675 918 760 33.4 osh-nosouffle
38 no-host configure.yash 1,688 974 716 33.1 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 2 1 6.6 osh-native
24 no-host hello-world 3 2 1 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 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,397 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,296 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,422 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,852 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,414 0 0 0 8 0 1,999 60 bash
9 no-host bin-true 49,421 0 0 0 8 0 2,997 41 dash
17 no-host bin-true 130,977 0 0 0 16 0 1,998 71 osh-native
25 no-host bin-true 134,390 0 0 0 16 0 1,997 96 osh-nosouffle
33 no-host bin-true 110,717 0 0 0 8 0 1,999 104 osh-static
2 no-host configure.cpython 1,621,365 0 0 0 25,272 0 14,081 997 bash
10 no-host configure.cpython 1,635,951 0 0 0 25,272 0 14,127 1,008 dash
18 no-host configure.cpython 1,590,673 0 0 0 25,280 0 11,315 851 osh-native
26 no-host configure.cpython 1,603,601 0 0 0 25,280 0 11,305 835 osh-nosouffle
34 no-host configure.cpython 1,522,480 0 0 0 25,272 0 11,294 818 osh-static
4 no-host configure.ocaml 299,304 0 0 0 4,432 0 2,012 197 bash
12 no-host configure.ocaml 280,685 0 0 0 4,432 0 2,107 181 dash
20 no-host configure.ocaml 306,012 0 0 0 4,440 0 1,995 211 osh-native
28 no-host configure.ocaml 307,368 0 0 0 4,440 0 1,995 198 osh-nosouffle
36 no-host configure.ocaml 300,075 0 0 0 4,432 0 1,998 204 osh-static
5 no-host configure.tcc 5,208 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,198 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,597 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,713 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,124 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,538,539 3 0 0 35,944 0 18,962 1,025 bash
11 no-host configure.util-linux 1,696,734 0 0 336 35,936 0 17,102 1,322 dash
19 no-host configure.util-linux 1,500,571 0 0 0 35,952 0 16,214 899 osh-native
27 no-host configure.util-linux 1,516,953 0 0 0 35,952 0 16,170 1,104 osh-nosouffle
35 no-host configure.util-linux 1,478,223 2 0 0 35,936 0 16,129 898 osh-static
6 no-host configure.yash 173,152 0 0 0 3,616 0 878 94 bash
14 no-host configure.yash 159,573 0 0 0 3,616 0 997 121 dash
22 no-host configure.yash 176,890 0 0 0 3,624 0 857 92 osh-native
30 no-host configure.yash 177,128 0 0 0 3,624 0 859 89 osh-nosouffle
38 no-host configure.yash 172,879 0 0 0 3,624 0 855 102 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 1 bash
8 no-host hello-world 86 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 399 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-872bdea0
osh-nosouffle osh-5c650735
osh-static osh-static-bfc34724
host label host id
no-host no-host-9c670df1