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 15 9 20 24 18 1.31 1.19
bin-true no-host 617 457 796 794 655 1.29 1.06
configure.cpython no-host 13,592 13,667 13,328 13,388 12,807 0.98 0.94
configure.ocaml no-host 3,629 3,553 3,668 3,679 3,625 1.01 1.00
configure.tcc no-host 45 40 46 46 43 1.01 0.94
configure.util-linux no-host 12,393 13,140 12,342 12,400 12,116 1.00 0.98
configure.yash no-host 1,660 1,637 1,669 1,680 1,666 1.01 1.00
hello-world no-host 1 1 3 3 1 2.47 1.07

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,373 1,189 3,309 3,412 2,843 1.39 1.20
bin-true no-host 101,416 49,406 132,029 130,403 110,740 1.30 1.09
configure.cpython no-host 1,619,147 1,642,681 1,593,081 1,606,814 1,523,075 0.98 0.94
configure.ocaml no-host 299,131 280,683 305,811 307,668 299,858 1.02 1.00
configure.tcc no-host 5,242 4,210 5,555 5,621 5,139 1.06 0.98
configure.util-linux no-host 1,537,130 1,704,488 1,504,395 1,517,093 1,479,697 0.98 0.96
configure.yash no-host 173,350 159,531 176,796 177,473 172,959 1.02 1.00
hello-world no-host 149 87 392 398 181 2.63 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 3.9 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.3 1.7 8.7 9.0 5.2 2.64 1.60
configure.cpython no-host 34.5 34.7 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.6 28.8 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.1 26.4 26.3 0.99 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.6 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.4 33.4 33.1 1.00 0.99
hello-world no-host 3.1 1.6 6.6 6.9 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 796 1 2 3.5 8.7 151,895 10,758 2,972 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,328 1 65 14.8 34.4 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,342 3 64 21.6 39.6 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,668 1 2 2.8 28.6 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,669 1 2 2.7 33.4 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 6.9 3,909 3,909 0 721 1,924 1,264 2 0 50,000 0
bin-true no-host 794 1 2 3.5 9.0 151,895 10,762 2,976 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 13,388 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,400 3 63 21.6 39.6 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,679 1 2 2.8 28.8 149,695 12,655 6,570 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 46 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,680 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 24 1 2 3.0 10.0 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 15 8 7 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 11 10 9.6 osh-native
31 no-host abuild-print-help 24 10 14 10.0 osh-nosouffle
39 no-host abuild-print-help 18 14 5 6.4 osh-static
1 no-host bin-true 617 320 336 3.3 bash
9 no-host bin-true 457 281 182 1.7 dash
17 no-host bin-true 796 306 505 8.7 osh-native
25 no-host bin-true 794 318 494 9.0 osh-nosouffle
33 no-host bin-true 655 322 353 5.2 osh-static
2 no-host configure.cpython 13,592 7,507 6,460 34.5 bash
10 no-host configure.cpython 13,667 7,412 6,643 34.7 dash
18 no-host configure.cpython 13,328 7,042 6,549 34.4 osh-native
26 no-host configure.cpython 13,388 7,194 6,475 34.5 osh-nosouffle
34 no-host configure.cpython 12,807 7,002 6,033 34.5 osh-static
4 no-host configure.ocaml 3,629 1,412 1,257 28.7 bash
12 no-host configure.ocaml 3,553 1,426 1,152 28.5 dash
20 no-host configure.ocaml 3,668 1,468 1,240 28.6 osh-native
28 no-host configure.ocaml 3,679 1,480 1,240 28.8 osh-nosouffle
36 no-host configure.ocaml 3,625 1,473 1,183 28.7 osh-static
5 no-host configure.tcc 45 26 20 26.3 bash
13 no-host configure.tcc 40 23 18 26.3 dash
21 no-host configure.tcc 46 25 21 26.1 osh-native
29 no-host configure.tcc 46 23 24 26.4 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.3 osh-static
3 no-host configure.util-linux 12,393 6,493 6,359 39.6 bash
11 no-host configure.util-linux 13,140 6,458 7,134 39.6 dash
19 no-host configure.util-linux 12,342 6,088 6,472 39.6 osh-native
27 no-host configure.util-linux 12,400 6,216 6,408 39.6 osh-nosouffle
35 no-host configure.util-linux 12,116 6,212 6,089 39.7 osh-static
6 no-host configure.yash 1,660 935 734 33.4 bash
14 no-host configure.yash 1,637 932 705 33.1 dash
22 no-host configure.yash 1,669 916 756 33.4 osh-native
30 no-host configure.yash 1,680 965 719 33.4 osh-nosouffle
38 no-host configure.yash 1,666 950 716 33.1 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 3 0 6.9 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,373 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,189 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,309 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,412 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,843 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,416 0 0 0 8 0 2,000 75 bash
9 no-host bin-true 49,406 0 0 0 8 0 2,997 48 dash
17 no-host bin-true 132,029 0 0 0 16 0 2,001 86 osh-native
25 no-host bin-true 130,403 0 0 0 16 0 1,997 59 osh-nosouffle
33 no-host bin-true 110,740 0 0 0 8 0 2,000 52 osh-static
2 no-host configure.cpython 1,619,147 0 0 0 25,272 0 14,084 1,025 bash
10 no-host configure.cpython 1,642,681 0 0 0 25,272 0 14,116 1,085 dash
18 no-host configure.cpython 1,593,081 0 0 0 25,280 0 11,310 871 osh-native
26 no-host configure.cpython 1,606,814 0 0 0 25,280 0 11,319 793 osh-nosouffle
34 no-host configure.cpython 1,523,075 1 0 0 25,272 0 11,306 833 osh-static
4 no-host configure.ocaml 299,131 0 0 0 4,432 0 2,016 202 bash
12 no-host configure.ocaml 280,683 0 0 0 4,432 0 2,103 185 dash
20 no-host configure.ocaml 305,811 0 0 0 4,440 0 1,997 217 osh-native
28 no-host configure.ocaml 307,668 0 0 0 4,440 0 2,002 201 osh-nosouffle
36 no-host configure.ocaml 299,858 0 0 0 4,432 0 2,000 195 osh-static
5 no-host configure.tcc 5,242 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 5,555 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,621 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,139 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,537,130 1 0 0 35,944 0 18,963 1,064 bash
11 no-host configure.util-linux 1,704,488 0 0 336 35,936 0 17,073 1,224 dash
19 no-host configure.util-linux 1,504,395 2 0 0 35,952 0 16,159 984 osh-native
27 no-host configure.util-linux 1,517,093 1 0 0 35,944 0 16,227 944 osh-nosouffle
35 no-host configure.util-linux 1,479,697 3 0 0 35,944 0 16,208 893 osh-static
6 no-host configure.yash 173,350 0 0 0 3,616 0 877 94 bash
14 no-host configure.yash 159,531 0 0 0 3,624 0 1,003 108 dash
22 no-host configure.yash 176,796 0 0 0 3,624 0 859 96 osh-native
30 no-host configure.yash 177,473 0 0 0 3,624 0 858 97 osh-nosouffle
38 no-host configure.yash 172,959 0 0 0 3,616 0 857 118 osh-static
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 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-9ec2f67d
osh-nosouffle osh-52d43f0f
osh-static osh-static-e842ad2f
host label host id
no-host no-host-9c670df1