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 458 22 23.91 1.15
bin-true no-host 680 537 2,743 1,033 4.03 1.52
configure.cpython no-host 14,997 15,066 28,596 15,496 1.91 1.03
configure.ocaml no-host 3,793 3,729 4,676 3,862 1.23 1.02
configure.tcc no-host 47 41 195 49 4.14 1.03
configure.util-linux no-host 13,995 14,864 31,285 14,602 2.24 1.04
configure.yash no-host 1,816 1,767 2,513 1,852 1.38 1.02
hello-world no-host 2 1 49 3 31.00 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,547 1,104 22,826 3,147 8.96 1.24
bin-true no-host 106,342 65,469 892,859 228,124 8.40 2.15
configure.cpython no-host 2,219,158 2,240,222 6,186,793 2,220,532 2.79 1.00
configure.ocaml no-host 410,346 391,039 640,597 413,136 1.56 1.01
configure.tcc no-host 6,572 5,457 23,282 7,005 3.54 1.07
configure.util-linux no-host 2,101,382 2,261,622 5,316,618 1,999,676 2.53 0.95
configure.yash no-host 256,713 245,093 389,003 262,389 1.52 1.02
hello-world no-host 154 81 3,692 346 23.97 2.25

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.7 8.9 5.03 2.06
bin-true no-host 2.9 1.3 19.1 8.1 6.63 2.82
configure.cpython no-host 27.4 27.4 27.5 27.5 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.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 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.9 1.6 17.6 6.2 6.09 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.3 6.2 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 1,033 1 2 2.6 8.1 202,738 13,857 2,818 9,734 106,375 86,629 3,008 4 50,000 0
configure.cpython no-host 15,496 1 64 15.0 27.5 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,602 3 63 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,862 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 49 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,852 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 8.9 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 14 5 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 458 411 51 21.7 osh-cpython
31 no-host abuild-print-help 22 12 11 8.9 osh-native
1 no-host bin-true 680 494 216 2.9 bash
9 no-host bin-true 537 420 127 1.3 dash
17 no-host bin-true 2,743 1,815 1,191 19.1 osh-cpython
25 no-host bin-true 1,033 743 304 8.1 osh-native
2 no-host configure.cpython 14,997 9,017 6,375 27.4 bash
10 no-host configure.cpython 15,066 9,042 6,436 27.4 dash
18 no-host configure.cpython 28,596 17,498 12,942 27.5 osh-cpython
26 no-host configure.cpython 15,496 9,052 6,714 27.5 osh-native
4 no-host configure.ocaml 3,793 1,648 1,181 20.6 bash
12 no-host configure.ocaml 3,729 1,531 1,215 20.6 dash
20 no-host configure.ocaml 4,676 2,295 1,589 20.6 osh-cpython
28 no-host configure.ocaml 3,862 1,681 1,219 20.6 osh-native
5 no-host configure.tcc 47 29 18 19.3 bash
13 no-host configure.tcc 41 31 10 19.3 dash
21 no-host configure.tcc 195 141 58 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.4 osh-native
3 no-host configure.util-linux 13,995 8,874 5,581 30.3 bash
11 no-host configure.util-linux 14,864 9,183 6,167 30.1 dash
19 no-host configure.util-linux 31,285 20,729 11,632 30.1 osh-cpython
27 no-host configure.util-linux 14,602 8,582 6,213 30.3 osh-native
6 no-host configure.yash 1,816 1,078 743 24.4 bash
14 no-host configure.yash 1,767 1,062 709 24.2 dash
22 no-host configure.yash 2,513 1,561 991 24.4 osh-cpython
30 no-host configure.yash 1,852 1,062 794 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 49 30 18 17.6 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,547 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,826 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,147 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 106,342 0 0 0 8 0 1,993 69 bash
9 no-host bin-true 65,469 0 0 0 8 0 1,988 46 dash
17 no-host bin-true 892,859 0 0 0 8 0 1,996 280 osh-cpython
25 no-host bin-true 228,124 0 0 0 16 0 1,991 132 osh-native
2 no-host configure.cpython 2,219,158 0 0 0 32,928 0 14,498 1,166 bash
10 no-host configure.cpython 2,240,222 0 0 0 32,992 0 14,587 1,011 dash
18 no-host configure.cpython 6,186,793 1 0 0 27,512 0 13,299 1,197 osh-cpython
26 no-host configure.cpython 2,220,532 0 0 0 27,520 0 13,257 1,017 osh-native
4 no-host configure.ocaml 410,346 0 0 0 5,120 0 1,949 174 bash
12 no-host configure.ocaml 391,039 0 0 0 5,112 0 1,881 148 dash
20 no-host configure.ocaml 640,597 0 0 0 5,112 0 1,857 171 osh-cpython
28 no-host configure.ocaml 413,136 0 0 0 5,120 0 1,931 248 osh-native
5 no-host configure.tcc 6,572 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,457 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,282 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 7,005 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,101,382 0 0 0 42,400 0 18,619 1,033 bash
11 no-host configure.util-linux 2,261,622 0 0 0 42,592 0 17,436 1,071 dash
19 no-host configure.util-linux 5,316,618 11 0 0 39,112 0 16,944 1,362 osh-cpython
27 no-host configure.util-linux 1,999,676 2 0 0 39,128 0 17,020 1,167 osh-native
6 no-host configure.yash 256,713 0 0 0 4,120 0 871 76 bash
14 no-host configure.yash 245,093 0 0 0 3,720 0 867 78 dash
22 no-host configure.yash 389,003 0 0 0 3,728 0 850 88 osh-cpython
30 no-host configure.yash 262,389 0 0 0 3,736 0 851 88 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,692 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-2cb7eb47
dash dash-308ec8e6
osh-cpython osh-ccb05360
osh-native osh-4bc06ae2
host label host id
no-host no-host-556df3ee