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 455 22 23.58 1.15
bin-true no-host 676 540 2,221 823 3.29 1.22
configure.cpython no-host 14,993 15,782 28,376 15,218 1.89 1.01
configure.ocaml no-host 3,829 3,723 4,609 3,867 1.20 1.01
configure.tcc no-host 50 41 192 49 3.86 0.99
configure.util-linux no-host 14,130 14,866 31,005 14,538 2.19 1.03
configure.yash no-host 1,853 1,754 2,424 1,848 1.31 1.00
hello-world no-host 2 1 47 3 30.67 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,552 1,113 23,583 3,170 9.24 1.24
bin-true no-host 106,270 67,443 751,069 129,179 7.07 1.22
configure.cpython no-host 2,213,489 2,245,316 6,104,119 2,238,685 2.76 1.01
configure.ocaml no-host 411,068 390,962 638,946 413,888 1.55 1.01
configure.tcc no-host 6,546 5,477 23,246 6,977 3.55 1.07
configure.util-linux no-host 2,098,629 2,253,323 5,323,802 2,023,593 2.54 0.96
configure.yash no-host 256,611 244,499 386,005 257,878 1.50 1.00
hello-world no-host 153 84 3,648 339 23.84 2.22

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.5 8.9 4.82 2.00
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.5 27.3 27.3 27.4 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 29.9 30.0 30.0 1.00 1.00
configure.yash no-host 24.5 24.2 24.5 24.5 1.00 1.00
hello-world no-host 2.9 1.4 17.3 6.2 6.00 2.14

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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 823 1 2 2.7 7.9 154,662 12,890 2,792 11,730 78,321 64,611 5,012 3 50,000 0
configure.cpython no-host 15,218 1 60 15.8 27.4 1,772,605 49,191 28,502 101,770 908,047 762,788 42,399 60 50,000 0
configure.util-linux no-host 14,538 3 60 22.2 30.0 2,703,269 44,760 65,786 126,121 1,320,491 1,256,657 49,081 41 131,572 1
configure.ocaml no-host 3,867 1 2 2.7 20.6 150,027 11,039 5,132 8,602 71,623 69,802 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,848 1 2 2.6 24.5 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,229 64,449 42,657 4,603 54,507 57,119 478 3 85,314 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 11 9 4.5 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 455 391 67 21.5 osh-cpython
31 no-host abuild-print-help 22 14 9 8.9 osh-native
1 no-host bin-true 676 507 201 2.9 bash
9 no-host bin-true 540 408 143 1.4 dash
17 no-host bin-true 2,221 1,442 1,027 17.3 osh-cpython
25 no-host bin-true 823 578 257 7.9 osh-native
2 no-host configure.cpython 14,993 8,983 6,409 27.5 bash
10 no-host configure.cpython 15,782 9,089 6,351 27.3 dash
18 no-host configure.cpython 28,376 17,412 12,783 27.3 osh-cpython
26 no-host configure.cpython 15,218 8,939 6,547 27.4 osh-native
4 no-host configure.ocaml 3,829 1,648 1,218 20.6 bash
12 no-host configure.ocaml 3,723 1,551 1,189 20.6 dash
20 no-host configure.ocaml 4,609 2,311 1,497 20.4 osh-cpython
28 no-host configure.ocaml 3,867 1,618 1,287 20.6 osh-native
5 no-host configure.tcc 50 37 13 19.3 bash
13 no-host configure.tcc 41 20 21 19.3 dash
21 no-host configure.tcc 192 144 51 19.3 osh-cpython
29 no-host configure.tcc 49 28 21 19.4 osh-native
3 no-host configure.util-linux 14,130 8,911 5,692 30.1 bash
11 no-host configure.util-linux 14,866 9,017 6,333 29.9 dash
19 no-host configure.util-linux 31,005 20,883 11,164 30.0 osh-cpython
27 no-host configure.util-linux 14,538 8,675 6,055 30.0 osh-native
6 no-host configure.yash 1,853 1,106 736 24.5 bash
14 no-host configure.yash 1,754 1,064 694 24.2 dash
22 no-host configure.yash 2,424 1,547 918 24.5 osh-cpython
30 no-host configure.yash 1,848 1,037 815 24.5 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 28 19 17.3 osh-cpython
24 no-host hello-world 3 3 0 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,552 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,583 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,270 0 0 0 8 0 1,989 75 bash
9 no-host bin-true 67,443 0 0 0 8 0 1,986 53 dash
17 no-host bin-true 751,069 0 0 0 8 0 1,997 166 osh-cpython
25 no-host bin-true 129,179 0 0 0 16 0 1,991 61 osh-native
2 no-host configure.cpython 2,213,489 0 0 0 32,928 0 14,417 1,195 bash
10 no-host configure.cpython 2,245,316 0 0 0 32,992 0 14,717 1,087 dash
18 no-host configure.cpython 6,104,119 0 0 0 27,512 0 13,279 1,247 osh-cpython
26 no-host configure.cpython 2,238,685 0 0 0 27,520 0 13,203 1,107 osh-native
4 no-host configure.ocaml 411,068 0 0 0 5,120 0 1,948 177 bash
12 no-host configure.ocaml 390,962 0 0 0 5,112 0 1,888 167 dash
20 no-host configure.ocaml 638,946 0 0 0 5,112 0 1,859 271 osh-cpython
28 no-host configure.ocaml 413,888 0 0 0 5,120 0 1,937 166 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,246 0 0 0 96 0 53 17 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,098,629 0 0 0 42,400 0 18,701 1,196 bash
11 no-host configure.util-linux 2,253,323 0 0 0 42,592 0 17,495 1,075 dash
19 no-host configure.util-linux 5,323,802 6 0 0 39,112 0 16,968 1,198 osh-cpython
27 no-host configure.util-linux 2,023,593 0 0 0 39,120 0 17,071 1,046 osh-native
6 no-host configure.yash 256,611 0 0 0 4,120 0 874 96 bash
14 no-host configure.yash 244,499 0 0 0 3,720 0 866 82 dash
22 no-host configure.yash 386,005 0 0 0 3,728 0 858 97 osh-cpython
30 no-host configure.yash 257,878 0 0 0 3,736 0 852 80 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,648 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-bbfec85d
dash dash-308ec8e6
osh-cpython osh-efed7037
osh-native osh-cd7f23ea
host label host id
no-host no-host-e54d7702