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 20 9 451 22 23.12 1.15
bin-true no-host 677 543 2,236 823 3.30 1.22
configure.cpython no-host 14,952 15,067 29,130 15,353 1.95 1.03
configure.ocaml no-host 3,803 3,741 4,633 3,864 1.22 1.02
configure.tcc no-host 47 41 191 49 4.01 1.04
configure.util-linux no-host 13,960 14,893 31,211 14,628 2.24 1.05
configure.yash no-host 1,820 1,761 2,426 1,849 1.33 1.02
hello-world no-host 1 1 47 3 32.77 1.99

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,528 1,090 23,411 3,205 9.26 1.27
bin-true no-host 106,368 65,419 753,309 130,164 7.08 1.22
configure.cpython no-host 2,218,941 2,249,422 6,143,942 2,229,064 2.77 1.00
configure.ocaml no-host 410,431 391,214 639,236 413,188 1.56 1.01
configure.tcc no-host 6,542 5,478 23,191 6,982 3.54 1.07
configure.util-linux no-host 2,097,342 2,266,002 5,321,720 2,017,668 2.54 0.96
configure.yash no-host 255,917 244,632 385,736 258,831 1.51 1.01
hello-world no-host 152 79 3,656 348 24.05 2.29

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.2 3.4 21.5 8.9 5.12 2.12
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.2 6.2 6.24 2.24

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.2 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 823 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,353 1 60 15.8 27.4 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,628 3 62 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,864 1 2 2.7 20.4 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 49 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,849 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,265 64,454 42,662 4,610 54,543 57,112 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 20 12 8 4.2 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 451 417 39 21.5 osh-cpython
31 no-host abuild-print-help 22 13 10 8.9 osh-native
1 no-host bin-true 677 520 190 2.9 bash
9 no-host bin-true 543 422 129 1.4 dash
17 no-host bin-true 2,236 1,520 979 17.3 osh-cpython
25 no-host bin-true 823 578 259 8.0 osh-native
2 no-host configure.cpython 14,952 9,030 6,320 27.5 bash
10 no-host configure.cpython 15,067 9,063 6,425 27.4 dash
18 no-host configure.cpython 29,130 17,674 13,338 27.4 osh-cpython
26 no-host configure.cpython 15,353 8,855 6,771 27.4 osh-native
4 no-host configure.ocaml 3,803 1,547 1,297 20.6 bash
12 no-host configure.ocaml 3,741 1,581 1,178 20.6 dash
20 no-host configure.ocaml 4,633 2,213 1,623 20.6 osh-cpython
28 no-host configure.ocaml 3,864 1,648 1,257 20.4 osh-native
5 no-host configure.tcc 47 24 24 19.4 bash
13 no-host configure.tcc 41 19 22 19.3 dash
21 no-host configure.tcc 191 149 45 19.3 osh-cpython
29 no-host configure.tcc 49 39 11 19.4 osh-native
3 no-host configure.util-linux 13,960 8,750 5,686 30.1 bash
11 no-host configure.util-linux 14,893 9,016 6,373 30.1 dash
19 no-host configure.util-linux 31,211 21,015 11,286 30.1 osh-cpython
27 no-host configure.util-linux 14,628 8,925 5,913 30.1 osh-native
6 no-host configure.yash 1,820 1,069 755 24.4 bash
14 no-host configure.yash 1,761 962 803 24.4 dash
22 no-host configure.yash 2,426 1,461 1,008 24.4 osh-cpython
30 no-host configure.yash 1,849 1,058 794 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 47 16 31 17.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,528 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,411 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 106,368 0 0 0 8 0 1,993 165 bash
9 no-host bin-true 65,419 0 0 0 8 0 1,987 40 dash
17 no-host bin-true 753,309 0 0 0 8 0 1,999 194 osh-cpython
25 no-host bin-true 130,164 0 0 0 16 0 1,995 134 osh-native
2 no-host configure.cpython 2,218,941 0 0 0 32,928 0 14,521 1,300 bash
10 no-host configure.cpython 2,249,422 0 0 0 32,992 0 14,561 1,123 dash
18 no-host configure.cpython 6,143,942 1 0 0 27,512 0 13,301 1,238 osh-cpython
26 no-host configure.cpython 2,229,064 0 0 0 27,520 0 13,325 992 osh-native
4 no-host configure.ocaml 410,431 0 0 0 5,120 0 1,949 139 bash
12 no-host configure.ocaml 391,214 0 0 0 5,112 0 1,895 165 dash
20 no-host configure.ocaml 639,236 0 0 0 5,112 0 1,863 193 osh-cpython
28 no-host configure.ocaml 413,188 0 0 0 5,120 0 1,932 189 osh-native
5 no-host configure.tcc 6,542 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,191 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,982 0 0 0 104 0 47 6 osh-native
3 no-host configure.util-linux 2,097,342 0 0 0 42,400 0 18,572 1,030 bash
11 no-host configure.util-linux 2,266,002 0 0 0 42,592 0 17,417 1,144 dash
19 no-host configure.util-linux 5,321,720 4 0 0 39,112 0 17,052 1,362 osh-cpython
27 no-host configure.util-linux 2,017,668 1 0 0 39,120 0 17,154 1,097 osh-native
6 no-host configure.yash 255,917 0 0 0 4,120 0 880 72 bash
14 no-host configure.yash 244,632 0 0 0 3,720 0 866 90 dash
22 no-host configure.yash 385,736 0 0 0 3,728 0 859 110 osh-cpython
30 no-host configure.yash 258,831 0 0 0 3,736 0 855 87 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,656 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-c8a4ba91
dash dash-308ec8e6
osh-cpython osh-23bd0cd0
osh-native osh-772f5306
host label host id
no-host no-host-13226fd6