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.08 1.12
bin-true no-host 697 546 2,254 832 3.23 1.19
configure.cpython no-host 15,404 15,273 28,571 15,124 1.85 0.98
configure.ocaml no-host 3,792 3,741 4,595 3,858 1.21 1.02
configure.tcc no-host 47 42 192 49 4.06 1.02
configure.util-linux no-host 13,940 14,890 31,374 14,317 2.25 1.03
configure.yash no-host 1,803 1,758 2,433 1,823 1.35 1.01
hello-world no-host 2 1 49 3 30.97 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,553 1,142 22,906 3,172 8.97 1.24
bin-true no-host 105,303 66,528 751,579 126,389 7.14 1.20
configure.cpython no-host 2,218,829 2,244,074 6,119,465 2,221,419 2.76 1.00
configure.ocaml no-host 410,397 390,926 639,497 413,918 1.56 1.01
configure.tcc no-host 6,566 5,476 23,283 6,971 3.55 1.06
configure.util-linux no-host 2,106,311 2,264,529 5,295,416 1,995,183 2.51 0.95
configure.yash no-host 255,506 245,038 383,667 258,319 1.50 1.01
hello-world no-host 152 83 3,695 351 24.31 2.31

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.6 9.0 4.85 2.03
bin-true no-host 3.0 1.4 17.6 7.9 5.83 2.61
configure.cpython no-host 27.4 27.3 27.1 27.4 0.99 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.3 19.4 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.4 17.4 6.2 6.33 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,736 3,736 0 681 1,886 1,169 2 0 50,000 0
bin-true no-host 832 1 2 2.6 7.9 154,701 13,053 2,806 9,731 78,355 66,615 5,012 3 50,000 0
configure.cpython no-host 15,124 1 63 15.0 27.4 1,772,677 49,204 28,515 86,378 908,107 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,317 3 61 21.3 30.3 2,703,413 42,779 65,820 109,640 1,320,605 1,273,168 49,081 41 131,640 1
configure.ocaml no-host 3,858 1 2 2.6 20.4 150,047 11,053 5,146 7,510 71,643 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,536 30,536 0 1,501 14,810 14,225 350 0 50,000 0
configure.yash no-host 1,823 1 2 2.6 24.4 139,704 7,971 6,607 6,317 70,315 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,279 64,462 42,670 4,552 54,555 57,172 478 3 85,340 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 14 6 4.5 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 451 400 53 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
1 no-host bin-true 697 526 199 3.0 bash
9 no-host bin-true 546 412 143 1.4 dash
17 no-host bin-true 2,254 1,506 1,012 17.6 osh-cpython
25 no-host bin-true 832 561 284 7.9 osh-native
2 no-host configure.cpython 15,404 9,359 6,442 27.4 bash
10 no-host configure.cpython 15,273 9,181 6,513 27.3 dash
18 no-host configure.cpython 28,571 17,244 13,185 27.1 osh-cpython
26 no-host configure.cpython 15,124 9,094 6,288 27.4 osh-native
4 no-host configure.ocaml 3,792 1,639 1,186 20.4 bash
12 no-host configure.ocaml 3,741 1,547 1,208 20.6 dash
20 no-host configure.ocaml 4,595 2,174 1,627 20.6 osh-cpython
28 no-host configure.ocaml 3,858 1,648 1,248 20.4 osh-native
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 42 29 13 19.4 dash
21 no-host configure.tcc 192 136 60 19.4 osh-cpython
29 no-host configure.tcc 49 30 19 19.3 osh-native
3 no-host configure.util-linux 13,940 8,738 5,657 30.1 bash
11 no-host configure.util-linux 14,890 9,091 6,289 30.1 dash
19 no-host configure.util-linux 31,374 20,823 11,667 30.1 osh-cpython
27 no-host configure.util-linux 14,317 8,615 5,900 30.3 osh-native
6 no-host configure.yash 1,803 1,016 795 24.2 bash
14 no-host configure.yash 1,758 990 771 24.2 dash
22 no-host configure.yash 2,433 1,439 1,036 24.4 osh-cpython
30 no-host configure.yash 1,823 1,065 761 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 36 12 17.4 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,553 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,142 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,906 0 0 0 8 0 46 12 osh-cpython
31 no-host abuild-print-help 3,172 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,303 0 0 0 8 0 1,987 46 bash
9 no-host bin-true 66,528 0 0 0 8 0 1,987 170 dash
17 no-host bin-true 751,579 0 0 0 8 0 1,987 159 osh-cpython
25 no-host bin-true 126,389 0 0 0 16 0 1,989 170 osh-native
2 no-host configure.cpython 2,218,829 1 0 0 32,928 0 14,482 1,192 bash
10 no-host configure.cpython 2,244,074 0 0 0 32,992 0 14,582 1,149 dash
18 no-host configure.cpython 6,119,465 2 0 0 27,512 0 13,171 1,074 osh-cpython
26 no-host configure.cpython 2,221,419 0 0 0 27,520 0 13,190 949 osh-native
4 no-host configure.ocaml 410,397 0 0 0 5,120 0 1,954 149 bash
12 no-host configure.ocaml 390,926 0 0 0 5,112 0 1,881 154 dash
20 no-host configure.ocaml 639,497 1 0 0 5,112 0 1,858 197 osh-cpython
28 no-host configure.ocaml 413,918 0 0 0 5,120 0 1,932 263 osh-native
5 no-host configure.tcc 6,566 0 0 0 104 0 49 6 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,283 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,106,311 1 0 0 42,400 0 18,639 987 bash
11 no-host configure.util-linux 2,264,529 0 0 0 42,584 0 17,456 1,162 dash
19 no-host configure.util-linux 5,295,416 11 0 0 39,112 0 16,974 1,301 osh-cpython
27 no-host configure.util-linux 1,995,183 0 0 0 39,120 0 16,980 938 osh-native
6 no-host configure.yash 255,506 0 0 0 4,120 0 870 77 bash
14 no-host configure.yash 245,038 0 0 0 3,720 0 869 79 dash
22 no-host configure.yash 383,667 0 0 0 3,728 0 855 90 osh-cpython
30 no-host configure.yash 258,319 0 0 0 3,736 0 842 87 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,695 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-97abd58b
dash dash-308ec8e6
osh-cpython osh-83e3155a
osh-native osh-bd5932fe
host label host id
no-host no-host-556df3ee