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 461 23 24.32 1.19
bin-true no-host 676 544 2,245 825 3.32 1.22
configure.cpython no-host 15,222 15,288 29,020 15,464 1.91 1.02
configure.ocaml no-host 3,850 3,777 4,690 3,859 1.22 1.00
configure.tcc no-host 48 42 192 51 4.04 1.07
configure.util-linux no-host 14,158 15,167 31,496 14,575 2.22 1.03
configure.yash no-host 1,841 1,796 2,479 1,864 1.35 1.01
hello-world no-host 2 1 48 3 31.02 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,529 1,095 23,556 3,202 9.31 1.27
bin-true no-host 104,361 66,454 751,121 127,204 7.20 1.22
configure.cpython no-host 2,223,928 2,239,428 6,105,052 2,227,732 2.75 1.00
configure.ocaml no-host 410,287 390,113 638,034 413,495 1.56 1.01
configure.tcc no-host 6,547 5,484 23,261 6,997 3.55 1.07
configure.util-linux no-host 2,097,168 2,258,207 5,329,221 2,014,717 2.54 0.96
configure.yash no-host 255,998 244,771 385,441 258,864 1.51 1.01
hello-world no-host 154 84 3,658 341 23.75 2.21

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.6 17.3 8.1 6.00 2.82
configure.cpython no-host 27.3 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.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.6 17.2 6.2 5.95 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 825 1 2 2.7 8.1 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,464 1 66 15.8 27.4 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,575 3 65 22.2 30.3 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,859 1 2 2.7 20.4 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 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.2 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.9 116,221 64,449 42,657 4,601 54,503 57,117 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 16 3 4.3 bash
15 no-host abuild-print-help 10 4 5 3.4 dash
23 no-host abuild-print-help 461 424 40 21.5 osh-cpython
31 no-host abuild-print-help 23 18 5 8.9 osh-native
1 no-host bin-true 676 511 197 2.9 bash
9 no-host bin-true 544 412 142 1.6 dash
17 no-host bin-true 2,245 1,445 1,047 17.3 osh-cpython
25 no-host bin-true 825 574 267 8.1 osh-native
2 no-host configure.cpython 15,222 9,331 6,304 27.3 bash
10 no-host configure.cpython 15,288 9,156 6,568 27.4 dash
18 no-host configure.cpython 29,020 17,726 13,152 27.4 osh-cpython
26 no-host configure.cpython 15,464 9,064 6,670 27.4 osh-native
4 no-host configure.ocaml 3,850 1,712 1,167 20.6 bash
12 no-host configure.ocaml 3,777 1,598 1,199 20.6 dash
20 no-host configure.ocaml 4,690 2,305 1,589 20.6 osh-cpython
28 no-host configure.ocaml 3,859 1,641 1,256 20.4 osh-native
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 16 27 19.3 dash
21 no-host configure.tcc 192 134 62 19.4 osh-cpython
29 no-host configure.tcc 51 35 17 19.3 osh-native
3 no-host configure.util-linux 14,158 8,906 5,734 30.1 bash
11 no-host configure.util-linux 15,167 9,375 6,294 30.3 dash
19 no-host configure.util-linux 31,496 20,990 11,572 30.3 osh-cpython
27 no-host configure.util-linux 14,575 8,718 6,054 30.3 osh-native
6 no-host configure.yash 1,841 1,107 743 24.2 bash
14 no-host configure.yash 1,796 1,038 761 24.2 dash
22 no-host configure.yash 2,479 1,527 995 24.2 osh-cpython
30 no-host configure.yash 1,864 1,130 737 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 35 13 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,529 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,556 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,361 0 0 0 8 0 1,996 67 bash
9 no-host bin-true 66,454 0 0 0 8 0 1,989 40 dash
17 no-host bin-true 751,121 0 0 0 8 0 2,000 290 osh-cpython
25 no-host bin-true 127,204 0 0 0 16 0 1,987 344 osh-native
2 no-host configure.cpython 2,223,928 0 0 0 32,928 0 14,463 1,105 bash
10 no-host configure.cpython 2,239,428 0 0 0 32,992 0 14,569 1,159 dash
18 no-host configure.cpython 6,105,052 1 0 0 27,512 0 13,249 1,336 osh-cpython
26 no-host configure.cpython 2,227,732 0 0 0 27,520 0 13,261 1,150 osh-native
4 no-host configure.ocaml 410,287 0 0 0 5,120 0 1,958 143 bash
12 no-host configure.ocaml 390,113 0 0 0 5,112 0 1,923 162 dash
20 no-host configure.ocaml 638,034 0 0 0 5,112 0 1,855 191 osh-cpython
28 no-host configure.ocaml 413,495 0 0 0 5,120 0 1,930 158 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,261 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,997 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,097,168 0 0 0 42,400 0 18,633 1,014 bash
11 no-host configure.util-linux 2,258,207 2 0 0 42,584 0 17,414 1,105 dash
19 no-host configure.util-linux 5,329,221 14 0 0 39,120 0 17,090 1,222 osh-cpython
27 no-host configure.util-linux 2,014,717 2 0 0 39,128 0 17,081 974 osh-native
6 no-host configure.yash 255,998 0 0 0 4,120 0 870 87 bash
14 no-host configure.yash 244,771 0 0 0 3,720 0 869 73 dash
22 no-host configure.yash 385,441 0 0 0 3,728 0 859 82 osh-cpython
30 no-host configure.yash 258,864 0 0 0 3,736 0 850 96 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 1 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,658 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4dc42521
dash dash-308ec8e6
osh-cpython osh-9397e4a7
osh-native osh-87ad66ec
host label host id
no-host no-host-e54d7702