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 463 23 24.03 1.18
bin-true no-host 675 549 2,232 845 3.31 1.25
configure.cpython no-host 15,446 15,486 29,488 15,622 1.91 1.01
configure.ocaml no-host 3,870 3,837 4,708 3,889 1.22 1.00
configure.tcc no-host 48 42 192 49 4.02 1.04
configure.util-linux no-host 14,304 15,168 32,066 14,761 2.24 1.03
configure.yash no-host 1,862 1,808 2,488 1,864 1.34 1.00
hello-world no-host 2 1 48 3 30.28 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,522 1,085 23,259 3,257 9.22 1.29
bin-true no-host 105,310 66,397 753,956 129,190 7.16 1.23
configure.cpython no-host 2,213,878 2,247,941 6,144,022 2,239,695 2.78 1.01
configure.ocaml no-host 410,344 391,375 638,005 413,956 1.55 1.01
configure.tcc no-host 6,553 5,462 23,193 7,036 3.54 1.07
configure.util-linux no-host 2,096,840 2,266,157 5,325,111 2,023,590 2.54 0.97
configure.yash no-host 255,356 244,926 384,487 258,988 1.51 1.01
hello-world no-host 152 79 3,657 343 24.06 2.26

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.8 4.82 1.97
bin-true no-host 2.8 1.4 17.3 7.9 6.29 2.86
configure.cpython no-host 27.1 27.5 27.4 27.3 1.01 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.1 19.4 19.1 1.01 0.99
configure.util-linux no-host 30.1 30.3 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.3 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 845 1 2 2.7 7.9 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 15,622 1 66 15.8 27.3 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,761 3 65 22.2 30.1 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,889 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,864 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,257 64,449 42,657 4,609 54,535 57,113 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 13 7 4.5 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 463 413 53 21.5 osh-cpython
31 no-host abuild-print-help 23 15 9 8.8 osh-native
1 no-host bin-true 675 504 202 2.8 bash
9 no-host bin-true 549 423 136 1.4 dash
17 no-host bin-true 2,232 1,516 976 17.3 osh-cpython
25 no-host bin-true 845 582 280 7.9 osh-native
2 no-host configure.cpython 15,446 9,298 6,541 27.1 bash
10 no-host configure.cpython 15,486 9,204 6,718 27.5 dash
18 no-host configure.cpython 29,488 17,915 13,494 27.4 osh-cpython
26 no-host configure.cpython 15,622 9,173 6,721 27.3 osh-native
4 no-host configure.ocaml 3,870 1,694 1,210 20.6 bash
12 no-host configure.ocaml 3,837 1,662 1,193 20.6 dash
20 no-host configure.ocaml 4,708 2,270 1,646 20.6 osh-cpython
28 no-host configure.ocaml 3,889 1,721 1,207 20.6 osh-native
5 no-host configure.tcc 48 28 20 19.3 bash
13 no-host configure.tcc 42 25 18 19.1 dash
21 no-host configure.tcc 192 141 55 19.4 osh-cpython
29 no-host configure.tcc 49 26 24 19.1 osh-native
3 no-host configure.util-linux 14,304 8,894 5,894 30.1 bash
11 no-host configure.util-linux 15,168 9,394 6,271 30.3 dash
19 no-host configure.util-linux 32,066 21,304 11,897 30.1 osh-cpython
27 no-host configure.util-linux 14,761 8,959 6,001 30.1 osh-native
6 no-host configure.yash 1,862 1,068 804 24.4 bash
14 no-host configure.yash 1,808 1,053 759 24.4 dash
22 no-host configure.yash 2,488 1,513 1,018 24.4 osh-cpython
30 no-host configure.yash 1,864 1,053 814 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 48 27 21 17.2 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,522 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,259 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,257 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 105,310 0 0 0 8 0 1,988 63 bash
9 no-host bin-true 66,397 0 0 0 8 0 1,988 62 dash
17 no-host bin-true 753,956 0 0 0 8 0 1,994 103 osh-cpython
25 no-host bin-true 129,190 0 0 0 16 0 1,983 130 osh-native
2 no-host configure.cpython 2,213,878 2 0 0 32,928 0 14,451 1,247 bash
10 no-host configure.cpython 2,247,941 0 0 0 32,992 0 14,533 1,098 dash
18 no-host configure.cpython 6,144,022 0 0 0 27,512 0 13,200 1,421 osh-cpython
26 no-host configure.cpython 2,239,695 0 0 0 27,520 0 13,265 1,146 osh-native
4 no-host configure.ocaml 410,344 0 0 0 5,120 0 1,965 218 bash
12 no-host configure.ocaml 391,375 0 0 0 5,112 0 1,876 132 dash
20 no-host configure.ocaml 638,005 0 0 0 5,112 0 1,859 200 osh-cpython
28 no-host configure.ocaml 413,956 0 0 0 5,120 0 1,934 155 osh-native
5 no-host configure.tcc 6,553 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,462 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,193 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,036 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,096,840 1 0 0 42,408 0 18,556 1,175 bash
11 no-host configure.util-linux 2,266,157 0 0 0 42,592 0 17,411 1,041 dash
19 no-host configure.util-linux 5,325,111 13 0 0 39,136 0 17,083 1,288 osh-cpython
27 no-host configure.util-linux 2,023,590 0 0 0 39,120 0 17,045 1,094 osh-native
6 no-host configure.yash 255,356 0 0 0 4,120 0 868 80 bash
14 no-host configure.yash 244,926 0 0 0 3,720 0 870 70 dash
22 no-host configure.yash 384,487 0 0 0 3,728 0 858 96 osh-cpython
30 no-host configure.yash 258,988 0 0 0 3,736 0 851 99 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,657 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-729aa6e2
dash dash-308ec8e6
osh-cpython osh-e2a9d948
osh-native osh-664a7a16
host label host id
no-host no-host-e54d7702