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-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 19 9 465 23 24.34 1.18
bin-true no-host 685 555 2,262 833 3.30 1.22
configure.cpython no-host 15,008 15,317 28,645 15,637 1.91 1.04
configure.ocaml no-host 3,803 3,818 4,708 3,891 1.24 1.02
configure.tcc no-host 48 42 193 50 3.99 1.03
configure.util-linux no-host 14,030 15,094 32,059 14,824 2.29 1.06
configure.yash no-host 1,891 1,776 2,507 1,873 1.33 0.99
hello-world no-host 1 1 47 3 32.76 2.13

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,566 1,099 23,413 3,176 9.12 1.24
bin-true no-host 105,364 67,469 755,387 128,196 7.17 1.22
configure.cpython no-host 2,232,600 2,242,252 6,147,679 2,231,453 2.75 1.00
configure.ocaml no-host 410,265 391,400 639,258 413,740 1.56 1.01
configure.tcc no-host 6,569 5,473 23,185 6,969 3.53 1.06
configure.util-linux no-host 2,105,306 2,263,365 5,320,924 2,010,906 2.53 0.96
configure.yash no-host 256,520 244,438 386,463 259,025 1.51 1.01
hello-world no-host 152 82 3,654 349 24.04 2.30

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-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 21.4 8.9 4.79 2.00
bin-true no-host 3.0 1.4 17.3 8.1 5.74 2.70
configure.cpython no-host 27.3 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.4 24.4 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.3 6.3 6.29 2.29

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.3 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 833 1 2 2.7 8.1 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,637 1 65 15.8 27.3 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,824 3 66 22.2 30.1 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,891 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,873 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,265 64,454 42,662 4,609 54,543 57,113 478 3 85,324 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 19 14 5 4.5 bash
15 no-host abuild-print-help 9 6 4 3.5 dash
23 no-host abuild-print-help 465 418 50 21.4 osh-cpython
31 no-host abuild-print-help 23 15 8 8.9 osh-native
1 no-host bin-true 685 503 214 3.0 bash
9 no-host bin-true 555 428 136 1.4 dash
17 no-host bin-true 2,262 1,425 1,105 17.3 osh-cpython
25 no-host bin-true 833 582 265 8.1 osh-native
2 no-host configure.cpython 15,008 8,982 6,429 27.3 bash
10 no-host configure.cpython 15,317 9,042 6,694 27.4 dash
18 no-host configure.cpython 28,645 17,511 12,974 27.4 osh-cpython
26 no-host configure.cpython 15,637 9,123 6,777 27.3 osh-native
4 no-host configure.ocaml 3,803 1,646 1,197 20.6 bash
12 no-host configure.ocaml 3,818 1,684 1,151 20.6 dash
20 no-host configure.ocaml 4,708 2,173 1,742 20.6 osh-cpython
28 no-host configure.ocaml 3,891 1,686 1,243 20.6 osh-native
5 no-host configure.tcc 48 32 17 19.3 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 193 152 44 19.3 osh-cpython
29 no-host configure.tcc 50 22 28 19.4 osh-native
3 no-host configure.util-linux 14,030 8,775 5,728 30.1 bash
11 no-host configure.util-linux 15,094 9,262 6,330 30.3 dash
19 no-host configure.util-linux 32,059 21,404 11,776 30.1 osh-cpython
27 no-host configure.util-linux 14,824 8,885 6,138 30.1 osh-native
6 no-host configure.yash 1,891 1,086 806 24.5 bash
14 no-host configure.yash 1,776 1,087 692 24.4 dash
22 no-host configure.yash 2,507 1,603 947 24.4 osh-cpython
30 no-host configure.yash 1,873 1,125 751 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 24 23 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native

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,566 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,413 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 105,364 0 0 0 8 0 1,993 282 bash
9 no-host bin-true 67,469 0 0 0 8 0 1,988 65 dash
17 no-host bin-true 755,387 0 0 0 8 0 2,000 218 osh-cpython
25 no-host bin-true 128,196 0 0 0 16 0 1,981 80 osh-native
2 no-host configure.cpython 2,232,600 0 0 0 32,928 0 14,485 1,148 bash
10 no-host configure.cpython 2,242,252 0 0 0 32,992 0 14,534 1,139 dash
18 no-host configure.cpython 6,147,679 1 0 0 27,512 0 13,323 1,205 osh-cpython
26 no-host configure.cpython 2,231,453 0 0 0 27,520 0 13,177 1,038 osh-native
4 no-host configure.ocaml 410,265 0 0 0 5,120 0 1,948 167 bash
12 no-host configure.ocaml 391,400 0 0 0 5,112 0 1,921 155 dash
20 no-host configure.ocaml 639,258 0 0 0 5,112 0 1,858 182 osh-cpython
28 no-host configure.ocaml 413,740 0 0 0 5,120 0 1,936 177 osh-native
5 no-host configure.tcc 6,569 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,185 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,105,306 1 0 0 42,400 0 18,574 1,050 bash
11 no-host configure.util-linux 2,263,365 1 0 0 42,592 0 17,467 1,099 dash
19 no-host configure.util-linux 5,320,924 7 0 0 39,112 0 17,066 1,341 osh-cpython
27 no-host configure.util-linux 2,010,906 0 0 0 39,120 0 17,058 958 osh-native
6 no-host configure.yash 256,520 0 0 0 4,120 0 878 102 bash
14 no-host configure.yash 244,438 0 0 0 3,720 0 869 95 dash
22 no-host configure.yash 386,463 0 0 0 3,728 0 855 95 osh-cpython
30 no-host configure.yash 259,025 0 0 0 3,736 0 855 82 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,654 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-f1291a94
dash dash-308ec8e6
osh-cpython osh-d9b2ccae
osh-native osh-6dd70087
host label host id
no-host no-host-13226fd6