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 446 22 23.46 1.17
bin-true no-host 684 548 2,235 828 3.27 1.21
configure.cpython no-host 15,300 15,464 29,086 15,538 1.90 1.02
configure.ocaml no-host 3,891 3,813 4,677 3,880 1.20 1.00
configure.tcc no-host 49 43 194 50 3.98 1.02
configure.util-linux no-host 14,293 15,216 31,811 14,611 2.23 1.02
configure.yash no-host 1,860 1,828 2,463 1,855 1.32 1.00
hello-world no-host 2 1 49 3 31.84 1.84

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,100 23,032 3,205 9.11 1.27
bin-true no-host 107,437 66,401 742,913 129,595 6.91 1.21
configure.cpython no-host 2,219,380 2,245,127 6,056,566 2,246,259 2.73 1.01
configure.ocaml no-host 410,881 390,859 633,812 413,539 1.54 1.01
configure.tcc no-host 6,561 5,490 23,000 6,980 3.51 1.06
configure.util-linux no-host 2,103,911 2,262,039 5,283,950 2,017,072 2.51 0.96
configure.yash no-host 256,146 245,169 382,913 259,066 1.49 1.01
hello-world no-host 151 79 3,628 342 24.03 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.3 3.5 21.3 8.8 4.93 2.03
bin-true no-host 2.9 1.4 17.2 8.0 5.95 2.77
configure.cpython no-host 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.7 0.99 1.01
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.1 29.9 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.3 17.0 6.0 6.19 2.19

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.0 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 828 1 2 2.7 8.0 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,538 2 63 15.9 27.4 1,765,934 39,052 24,503 101,923 901,347 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,611 3 60 22.2 30.1 2,695,085 29,056 65,754 126,121 1,312,366 1,256,598 49,081 41 131,508 1
configure.ocaml no-host 3,880 1 2 2.7 20.7 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,855 1 2 2.6 24.4 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,013 64,388 42,627 4,601 54,295 57,117 478 3 85,254 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 17 3 4.3 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 446 426 23 21.3 osh-cpython
31 no-host abuild-print-help 22 14 9 8.8 osh-native
1 no-host bin-true 684 492 222 2.9 bash
9 no-host bin-true 548 427 131 1.4 dash
17 no-host bin-true 2,235 1,472 1,018 17.2 osh-cpython
25 no-host bin-true 828 575 268 8.0 osh-native
2 no-host configure.cpython 15,300 9,105 6,593 27.3 bash
10 no-host configure.cpython 15,464 9,103 6,790 27.4 dash
18 no-host configure.cpython 29,086 17,814 13,123 27.4 osh-cpython
26 no-host configure.cpython 15,538 9,162 6,647 27.4 osh-native
4 no-host configure.ocaml 3,891 1,667 1,255 20.6 bash
12 no-host configure.ocaml 3,813 1,616 1,214 20.4 dash
20 no-host configure.ocaml 4,677 2,352 1,525 20.4 osh-cpython
28 no-host configure.ocaml 3,880 1,667 1,252 20.7 osh-native
5 no-host configure.tcc 49 30 19 19.3 bash
13 no-host configure.tcc 43 25 18 19.4 dash
21 no-host configure.tcc 194 131 66 19.3 osh-cpython
29 no-host configure.tcc 50 24 26 19.4 osh-native
3 no-host configure.util-linux 14,293 8,943 5,828 30.0 bash
11 no-host configure.util-linux 15,216 9,340 6,375 30.1 dash
19 no-host configure.util-linux 31,811 20,986 11,915 29.9 osh-cpython
27 no-host configure.util-linux 14,611 8,675 6,131 30.1 osh-native
6 no-host configure.yash 1,860 1,083 786 24.4 bash
14 no-host configure.yash 1,828 1,039 792 24.2 dash
22 no-host configure.yash 2,463 1,491 1,013 24.2 osh-cpython
30 no-host configure.yash 1,855 1,007 851 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 49 41 8 17.0 osh-cpython
24 no-host hello-world 3 3 0 6.0 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 1 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,032 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 107,437 0 0 0 8 0 1,993 105 bash
9 no-host bin-true 66,401 0 0 0 8 0 1,989 47 dash
17 no-host bin-true 742,913 0 0 0 8 0 1,998 137 osh-cpython
25 no-host bin-true 129,595 0 0 0 16 0 1,991 109 osh-native
2 no-host configure.cpython 2,219,380 0 0 0 32,928 0 14,422 1,207 bash
10 no-host configure.cpython 2,245,127 0 0 0 32,992 0 15,024 1,442 dash
18 no-host configure.cpython 6,056,566 0 0 0 27,512 0 13,354 1,238 osh-cpython
26 no-host configure.cpython 2,246,259 0 0 0 27,520 0 13,410 1,007 osh-native
4 no-host configure.ocaml 410,881 0 0 0 5,120 0 1,949 174 bash
12 no-host configure.ocaml 390,859 0 0 0 5,112 0 1,871 142 dash
20 no-host configure.ocaml 633,812 0 0 0 5,112 0 1,860 186 osh-cpython
28 no-host configure.ocaml 413,539 0 0 0 5,120 0 1,936 173 osh-native
5 no-host configure.tcc 6,561 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,000 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,980 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,103,911 1 0 0 42,408 0 18,517 1,104 bash
11 no-host configure.util-linux 2,262,039 1 0 0 42,592 0 17,332 1,040 dash
19 no-host configure.util-linux 5,283,950 8 0 0 39,112 0 17,183 1,322 osh-cpython
27 no-host configure.util-linux 2,017,072 2 0 0 39,120 0 17,048 1,105 osh-native
6 no-host configure.yash 256,146 0 0 0 4,120 0 871 91 bash
14 no-host configure.yash 245,169 0 0 0 3,720 0 867 84 dash
22 no-host configure.yash 382,913 0 0 0 3,728 0 855 98 osh-cpython
30 no-host configure.yash 259,066 0 0 0 3,736 0 855 92 osh-native
0 no-host hello-world 151 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,628 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-bac2045f
dash dash-308ec8e6
osh-cpython osh-b2d14fe5
osh-native osh-5e27a842
host label host id
no-host no-host-f581f4dd