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 22 19 1.32 1.21
bin-true no-host 626 448 808 813 659 1.29 1.05
configure.cpython no-host 14,132 14,057 13,626 13,687 13,071 0.96 0.92
configure.ocaml no-host 3,709 3,661 3,735 3,720 3,746 1.01 1.01
configure.tcc no-host 47 42 48 47 46 1.01 0.97
configure.util-linux no-host 12,593 13,496 12,647 12,543 12,473 1.00 0.99
configure.yash no-host 1,776 1,658 1,718 1,738 1,746 0.97 0.98
hello-world no-host 1 1 3 3 1 2.16 0.96

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,396 1,183 3,293 3,457 2,827 1.37 1.18
bin-true no-host 100,459 49,403 133,295 134,999 112,030 1.33 1.12
configure.cpython no-host 1,624,190 1,635,663 1,590,550 1,600,368 1,516,815 0.98 0.93
configure.ocaml no-host 299,283 280,973 306,155 307,617 300,167 1.02 1.00
configure.tcc no-host 5,260 4,223 5,568 5,669 5,121 1.06 0.97
configure.util-linux no-host 1,538,562 1,698,320 1,512,605 1,513,991 1,479,836 0.98 0.96
configure.yash no-host 173,232 159,527 176,659 177,213 172,853 1.02 1.00
hello-world no-host 152 86 395 401 183 2.60 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.7 3.9 9.4 10.1 6.3 2.00 1.33
bin-true no-host 3.3 1.6 8.7 9.0 5.1 2.64 1.56
configure.cpython no-host 34.7 34.4 34.6 34.4 34.3 1.00 0.99
configure.ocaml no-host 28.5 28.5 28.6 28.8 28.6 1.00 1.00
configure.tcc no-host 26.3 26.2 26.3 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.7 39.7 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.1 33.4 1.00 1.00
hello-world no-host 3.1 1.6 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,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 8.7 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,626 1 68 14.8 34.6 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,647 3 68 21.6 39.6 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,735 1 2 2.8 28.6 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.3 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,718 1 2 2.7 33.4 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 813 1 2 3.5 9.0 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,687 1 70 14.9 34.4 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,543 3 67 21.6 39.7 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,720 1 2 2.8 28.8 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.7 33.1 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,238 65,805 42,012 4,980 54,600 57,658 277 3 84,024 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 6 11 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 13 9 9.4 osh-native
31 no-host abuild-print-help 22 11 12 10.1 osh-nosouffle
39 no-host abuild-print-help 19 11 9 6.3 osh-static
1 no-host bin-true 626 305 360 3.3 bash
9 no-host bin-true 448 277 176 1.6 dash
17 no-host bin-true 808 302 524 8.7 osh-native
25 no-host bin-true 813 315 516 9.0 osh-nosouffle
33 no-host bin-true 659 315 362 5.1 osh-static
2 no-host configure.cpython 14,132 7,732 6,789 34.7 bash
10 no-host configure.cpython 14,057 7,639 6,834 34.4 dash
18 no-host configure.cpython 13,626 7,228 6,677 34.6 osh-native
26 no-host configure.cpython 13,687 7,217 6,760 34.4 osh-nosouffle
34 no-host configure.cpython 13,071 7,164 6,150 34.3 osh-static
4 no-host configure.ocaml 3,709 1,482 1,267 28.5 bash
12 no-host configure.ocaml 3,661 1,478 1,208 28.5 dash
20 no-host configure.ocaml 3,735 1,485 1,290 28.6 osh-native
28 no-host configure.ocaml 3,720 1,479 1,283 28.8 osh-nosouffle
36 no-host configure.ocaml 3,746 1,497 1,282 28.6 osh-static
5 no-host configure.tcc 47 27 21 26.3 bash
13 no-host configure.tcc 42 23 19 26.2 dash
21 no-host configure.tcc 48 22 26 26.3 osh-native
29 no-host configure.tcc 47 21 27 26.2 osh-nosouffle
37 no-host configure.tcc 46 27 20 26.2 osh-static
3 no-host configure.util-linux 12,593 6,657 6,411 39.7 bash
11 no-host configure.util-linux 13,496 6,558 7,447 39.6 dash
19 no-host configure.util-linux 12,647 6,166 6,713 39.6 osh-native
27 no-host configure.util-linux 12,543 6,267 6,504 39.7 osh-nosouffle
35 no-host configure.util-linux 12,473 6,306 6,391 39.7 osh-static
6 no-host configure.yash 1,776 995 790 33.3 bash
14 no-host configure.yash 1,658 946 714 33.4 dash
22 no-host configure.yash 1,718 948 773 33.4 osh-native
30 no-host configure.yash 1,738 965 776 33.1 osh-nosouffle
38 no-host configure.yash 1,746 992 755 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 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,396 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,183 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,293 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,457 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,827 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,459 0 0 0 8 0 1,995 50 bash
9 no-host bin-true 49,403 0 0 0 8 0 2,991 49 dash
17 no-host bin-true 133,295 0 0 0 16 0 1,995 71 osh-native
25 no-host bin-true 134,999 0 0 0 16 0 1,997 75 osh-nosouffle
33 no-host bin-true 112,030 0 0 0 8 0 2,000 64 osh-static
2 no-host configure.cpython 1,624,190 0 0 0 25,272 0 14,072 1,013 bash
10 no-host configure.cpython 1,635,663 0 0 0 25,272 0 14,124 1,070 dash
18 no-host configure.cpython 1,590,550 0 0 0 25,280 0 11,306 861 osh-native
26 no-host configure.cpython 1,600,368 0 0 0 25,280 0 11,303 867 osh-nosouffle
34 no-host configure.cpython 1,516,815 0 0 0 25,272 0 11,308 827 osh-static
4 no-host configure.ocaml 299,283 0 0 0 4,432 0 2,016 201 bash
12 no-host configure.ocaml 280,973 0 0 0 4,432 0 2,105 199 dash
20 no-host configure.ocaml 306,155 0 0 0 4,440 0 2,001 212 osh-native
28 no-host configure.ocaml 307,617 0 0 0 4,440 0 2,004 204 osh-nosouffle
36 no-host configure.ocaml 300,167 0 0 0 4,432 0 1,998 225 osh-static
5 no-host configure.tcc 5,260 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,223 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,568 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,669 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,121 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,538,562 1 0 0 35,944 0 19,030 1,052 bash
11 no-host configure.util-linux 1,698,320 2 0 0 35,936 0 17,125 1,252 dash
19 no-host configure.util-linux 1,512,605 1 0 0 35,952 0 16,131 956 osh-native
27 no-host configure.util-linux 1,513,991 0 0 0 35,944 0 16,214 895 osh-nosouffle
35 no-host configure.util-linux 1,479,836 5 0 0 35,944 0 16,213 932 osh-static
6 no-host configure.yash 173,232 0 0 0 3,616 0 882 109 bash
14 no-host configure.yash 159,527 0 0 0 3,616 0 1,003 111 dash
22 no-host configure.yash 176,659 0 0 0 3,624 0 858 105 osh-native
30 no-host configure.yash 177,213 0 0 0 3,624 0 858 99 osh-nosouffle
38 no-host configure.yash 172,853 0 0 0 3,624 0 854 285 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 395 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 183 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-e20e7fdf
osh-nosouffle osh-ed978781
osh-static osh-static-326ba449
host label host id
no-host no-host-9c670df1