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 10 454 22 23.31 1.15
bin-true no-host 674 544 2,228 823 3.31 1.22
configure.cpython no-host 15,096 15,041 28,544 15,303 1.89 1.01
configure.ocaml no-host 3,824 3,749 4,629 3,831 1.21 1.00
configure.tcc no-host 48 41 192 49 4.03 1.03
configure.util-linux no-host 14,048 14,906 31,266 14,453 2.23 1.03
configure.yash no-host 1,827 1,758 2,441 1,825 1.34 1.00
hello-world no-host 2 1 48 3 31.34 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,541 1,087 23,393 3,213 9.21 1.26
bin-true no-host 104,292 65,471 751,381 129,126 7.20 1.24
configure.cpython no-host 2,216,120 2,246,620 6,136,758 2,237,400 2.77 1.01
configure.ocaml no-host 410,203 390,687 638,365 413,377 1.56 1.01
configure.tcc no-host 6,529 5,468 23,199 6,976 3.55 1.07
configure.util-linux no-host 2,097,187 2,263,109 5,335,479 2,010,041 2.54 0.96
configure.yash no-host 256,165 243,975 385,596 259,149 1.51 1.01
hello-world no-host 151 82 3,652 350 24.19 2.32

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.3 3.4 21.5 8.9 4.97 2.06
bin-true no-host 2.9 1.4 17.2 7.9 5.95 2.73
configure.cpython no-host 27.4 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.0 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.0 6.24 2.19

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.0 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 823 1 2 2.7 7.9 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,303 1 62 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,453 3 61 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,831 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 49 0 0 1.3 19.3 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,825 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,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 15 5 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 454 406 51 21.5 osh-cpython
31 no-host abuild-print-help 22 17 6 8.9 osh-native
1 no-host bin-true 674 501 203 2.9 bash
9 no-host bin-true 544 427 126 1.4 dash
17 no-host bin-true 2,228 1,439 1,048 17.2 osh-cpython
25 no-host bin-true 823 570 268 7.9 osh-native
2 no-host configure.cpython 15,096 9,058 6,437 27.4 bash
10 no-host configure.cpython 15,041 9,065 6,396 27.4 dash
18 no-host configure.cpython 28,544 17,404 12,966 27.3 osh-cpython
26 no-host configure.cpython 15,303 9,092 6,487 27.4 osh-native
4 no-host configure.ocaml 3,824 1,597 1,260 20.6 bash
12 no-host configure.ocaml 3,749 1,600 1,167 20.4 dash
20 no-host configure.ocaml 4,629 2,229 1,600 20.6 osh-cpython
28 no-host configure.ocaml 3,831 1,652 1,214 20.6 osh-native
5 no-host configure.tcc 48 29 20 19.4 bash
13 no-host configure.tcc 41 24 17 19.4 dash
21 no-host configure.tcc 192 133 62 19.3 osh-cpython
29 no-host configure.tcc 49 31 18 19.3 osh-native
3 no-host configure.util-linux 14,048 8,940 5,580 30.1 bash
11 no-host configure.util-linux 14,906 9,039 6,364 30.0 dash
19 no-host configure.util-linux 31,266 21,226 11,122 30.1 osh-cpython
27 no-host configure.util-linux 14,453 8,693 5,966 30.1 osh-native
6 no-host configure.yash 1,827 1,072 763 24.4 bash
14 no-host configure.yash 1,758 1,058 703 24.4 dash
22 no-host configure.yash 2,441 1,505 979 24.4 osh-cpython
30 no-host configure.yash 1,825 1,078 752 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 24 23 17.2 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,541 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,393 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 41 6 osh-native
1 no-host bin-true 104,292 0 0 0 8 0 1,989 149 bash
9 no-host bin-true 65,471 0 0 0 8 0 1,992 137 dash
17 no-host bin-true 751,381 0 0 0 8 0 1,992 238 osh-cpython
25 no-host bin-true 129,126 0 0 0 16 0 1,988 164 osh-native
2 no-host configure.cpython 2,216,120 0 0 0 32,928 0 14,509 1,054 bash
10 no-host configure.cpython 2,246,620 0 0 0 32,992 0 14,569 1,089 dash
18 no-host configure.cpython 6,136,758 0 0 0 27,512 0 13,214 1,256 osh-cpython
26 no-host configure.cpython 2,237,400 1 0 0 27,520 0 13,359 1,227 osh-native
4 no-host configure.ocaml 410,203 0 0 0 5,120 0 1,952 181 bash
12 no-host configure.ocaml 390,687 0 0 0 5,112 0 1,891 148 dash
20 no-host configure.ocaml 638,365 0 0 0 5,112 0 1,858 276 osh-cpython
28 no-host configure.ocaml 413,377 0 0 0 5,120 0 1,929 175 osh-native
5 no-host configure.tcc 6,529 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,199 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,976 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,097,187 0 0 0 42,408 0 18,618 1,284 bash
11 no-host configure.util-linux 2,263,109 0 0 0 42,592 0 17,610 1,312 dash
19 no-host configure.util-linux 5,335,479 14 0 0 39,120 0 17,054 1,324 osh-cpython
27 no-host configure.util-linux 2,010,041 1 0 0 39,128 0 17,181 1,062 osh-native
6 no-host configure.yash 256,165 0 0 0 4,120 0 870 84 bash
14 no-host configure.yash 243,975 0 0 0 3,720 0 876 81 dash
22 no-host configure.yash 385,596 0 0 0 3,728 0 856 99 osh-cpython
30 no-host configure.yash 259,149 0 0 0 3,736 0 852 92 osh-native
0 no-host hello-world 151 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,652 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1fe4b881
dash dash-308ec8e6
osh-cpython osh-ae9792d7
osh-native osh-120ac332
host label host id
no-host no-host-13226fd6