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 472 22 25.13 1.19
bin-true no-host 683 548 2,787 1,064 4.08 1.56
configure.cpython no-host 15,183 15,286 29,193 15,823 1.92 1.04
configure.ocaml no-host 3,854 3,765 4,790 3,975 1.24 1.03
configure.tcc no-host 48 41 206 50 4.30 1.05
configure.util-linux no-host 14,166 15,035 32,492 14,944 2.29 1.05
configure.yash no-host 1,836 1,791 2,569 1,929 1.40 1.05
hello-world no-host 1 1 49 3 32.79 1.95

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,519 1,113 22,866 3,166 9.08 1.26
bin-true no-host 106,357 66,430 895,205 230,247 8.42 2.16
configure.cpython no-host 2,228,052 2,252,537 6,174,324 2,221,801 2.77 1.00
configure.ocaml no-host 410,221 391,151 640,312 413,375 1.56 1.01
configure.tcc no-host 6,546 5,482 23,251 7,037 3.55 1.08
configure.util-linux no-host 2,103,566 2,261,303 5,306,210 1,995,143 2.52 0.95
configure.yash no-host 256,865 244,502 387,728 262,863 1.51 1.02
hello-world no-host 152 83 3,691 345 24.28 2.27

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.5 21.9 9.0 5.06 2.09
bin-true no-host 2.9 1.4 19.0 8.0 6.59 2.77
configure.cpython no-host 27.4 27.3 27.4 27.4 1.00 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.4 19.1 19.4 0.99 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 1,064 1 2 2.6 8.0 202,738 13,857 2,818 9,734 106,375 86,629 3,008 4 50,000 0
configure.cpython no-host 15,823 1 63 15.0 27.4 1,772,719 49,108 28,528 86,381 908,132 778,206 22,694 60 50,000 0
configure.util-linux no-host 14,944 2 62 21.3 30.3 2,703,551 44,172 65,812 109,643 1,320,686 1,273,222 27,391 41 131,624 1
configure.ocaml no-host 3,975 1 2 2.6 20.6 150,084 10,993 5,163 7,513 71,663 70,908 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,573 30,573 0 1,504 14,830 14,239 226 0 50,000 0
configure.yash no-host 1,929 1 2 2.6 24.2 142,960 10,576 6,510 6,320 72,214 64,426 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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.3 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 472 418 57 21.9 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
1 no-host bin-true 683 506 207 2.9 bash
9 no-host bin-true 548 414 144 1.4 dash
17 no-host bin-true 2,787 1,948 1,107 19.0 osh-cpython
25 no-host bin-true 1,064 724 356 8.0 osh-native
2 no-host configure.cpython 15,183 9,238 6,351 27.4 bash
10 no-host configure.cpython 15,286 9,149 6,556 27.3 dash
18 no-host configure.cpython 29,193 17,670 13,418 27.4 osh-cpython
26 no-host configure.cpython 15,823 9,111 6,994 27.4 osh-native
4 no-host configure.ocaml 3,854 1,719 1,169 20.6 bash
12 no-host configure.ocaml 3,765 1,664 1,118 20.6 dash
20 no-host configure.ocaml 4,790 2,305 1,702 20.6 osh-cpython
28 no-host configure.ocaml 3,975 1,630 1,384 20.6 osh-native
5 no-host configure.tcc 48 24 24 19.3 bash
13 no-host configure.tcc 41 26 16 19.4 dash
21 no-host configure.tcc 206 143 66 19.1 osh-cpython
29 no-host configure.tcc 50 24 27 19.4 osh-native
3 no-host configure.util-linux 14,166 8,950 5,690 30.1 bash
11 no-host configure.util-linux 15,035 9,071 6,454 30.1 dash
19 no-host configure.util-linux 32,492 21,589 11,995 30.1 osh-cpython
27 no-host configure.util-linux 14,944 9,062 6,078 30.3 osh-native
6 no-host configure.yash 1,836 1,038 807 24.4 bash
14 no-host configure.yash 1,791 1,054 740 24.2 dash
22 no-host configure.yash 2,569 1,578 1,036 24.4 osh-cpython
30 no-host configure.yash 1,929 1,132 801 24.2 osh-native
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 29 20 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,519 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,866 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,166 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,357 0 0 0 8 0 1,994 103 bash
9 no-host bin-true 66,430 0 0 0 8 0 1,988 41 dash
17 no-host bin-true 895,205 0 0 0 8 0 2,001 393 osh-cpython
25 no-host bin-true 230,247 0 0 0 16 0 1,989 130 osh-native
2 no-host configure.cpython 2,228,052 0 0 0 32,928 0 14,427 1,193 bash
10 no-host configure.cpython 2,252,537 0 0 0 32,992 0 14,568 1,267 dash
18 no-host configure.cpython 6,174,324 0 0 0 27,512 0 13,180 1,272 osh-cpython
26 no-host configure.cpython 2,221,801 0 0 0 27,520 0 13,211 1,008 osh-native
4 no-host configure.ocaml 410,221 0 0 0 5,120 0 1,957 197 bash
12 no-host configure.ocaml 391,151 0 0 0 5,112 0 1,883 126 dash
20 no-host configure.ocaml 640,312 0 0 0 5,112 0 1,852 202 osh-cpython
28 no-host configure.ocaml 413,375 0 0 0 5,120 0 1,932 175 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,251 0 0 0 96 0 55 9 osh-cpython
29 no-host configure.tcc 7,037 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,103,566 2 0 0 42,400 0 18,547 1,065 bash
11 no-host configure.util-linux 2,261,303 0 0 0 42,584 0 17,407 1,124 dash
19 no-host configure.util-linux 5,306,210 6 0 0 39,112 0 16,937 1,439 osh-cpython
27 no-host configure.util-linux 1,995,143 0 0 0 39,120 0 16,963 1,154 osh-native
6 no-host configure.yash 256,865 0 0 0 4,120 0 869 83 bash
14 no-host configure.yash 244,502 0 0 0 3,720 0 872 80 dash
22 no-host configure.yash 387,728 0 0 0 3,728 0 856 91 osh-cpython
30 no-host configure.yash 262,863 0 0 0 3,736 0 845 92 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,691 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-a01070fe
dash dash-308ec8e6
osh-cpython osh-4b60cbb1
osh-native osh-57f421e0
host label host id
no-host no-host-556df3ee