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 448 22 23.28 1.15
bin-true no-host 673 544 2,246 828 3.34 1.23
configure.cpython no-host 14,933 15,006 28,313 15,233 1.90 1.02
configure.ocaml no-host 3,785 3,720 4,594 3,800 1.21 1.00
configure.tcc no-host 47 41 190 49 4.05 1.04
configure.util-linux no-host 13,973 14,797 31,171 14,301 2.23 1.02
configure.yash no-host 1,804 1,759 2,492 1,811 1.38 1.00
hello-world no-host 1 1 47 3 31.69 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,532 1,103 23,061 3,217 9.11 1.27
bin-true no-host 104,370 66,400 743,999 130,609 7.13 1.25
configure.cpython no-host 2,223,335 2,243,886 6,058,114 2,248,380 2.72 1.01
configure.ocaml no-host 410,343 390,745 633,705 413,706 1.54 1.01
configure.tcc no-host 6,534 5,481 22,952 6,986 3.51 1.07
configure.util-linux no-host 2,103,650 2,257,760 5,296,860 2,011,995 2.52 0.96
configure.yash no-host 256,131 245,063 383,177 258,429 1.50 1.01
hello-world no-host 155 81 3,631 340 23.43 2.19

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.6 8.8 5.00 2.03
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.5 27.5 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.1 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.1 30.3 30.0 1.01 1.00
configure.yash no-host 24.2 24.0 24.4 24.5 1.01 1.01
hello-world no-host 2.9 1.4 17.2 6.0 5.95 2.09

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 7.9 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,233 1 60 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,301 3 57 22.2 30.0 2,695,085 29,056 65,774 126,121 1,312,366 1,256,598 49,081 41 131,548 1
configure.ocaml no-host 3,800 1 2 2.7 20.6 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 49 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,811 1 2 2.6 24.5 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 14 6 4.3 bash
15 no-host abuild-print-help 10 6 3 3.5 dash
23 no-host abuild-print-help 448 403 48 21.6 osh-cpython
31 no-host abuild-print-help 22 14 8 8.8 osh-native
1 no-host bin-true 673 507 198 2.9 bash
9 no-host bin-true 544 421 131 1.4 dash
17 no-host bin-true 2,246 1,501 993 17.3 osh-cpython
25 no-host bin-true 828 582 262 7.9 osh-native
2 no-host configure.cpython 14,933 8,969 6,360 27.5 bash
10 no-host configure.cpython 15,006 9,108 6,318 27.5 dash
18 no-host configure.cpython 28,313 17,442 12,647 27.4 osh-cpython
26 no-host configure.cpython 15,233 9,038 6,464 27.4 osh-native
4 no-host configure.ocaml 3,785 1,598 1,224 20.6 bash
12 no-host configure.ocaml 3,720 1,573 1,166 20.6 dash
20 no-host configure.ocaml 4,594 2,259 1,531 20.6 osh-cpython
28 no-host configure.ocaml 3,800 1,574 1,263 20.6 osh-native
5 no-host configure.tcc 47 34 13 19.3 bash
13 no-host configure.tcc 41 17 24 19.1 dash
21 no-host configure.tcc 190 143 50 19.3 osh-cpython
29 no-host configure.tcc 49 32 17 19.4 osh-native
3 no-host configure.util-linux 13,973 8,789 5,658 30.0 bash
11 no-host configure.util-linux 14,797 9,070 6,211 30.1 dash
19 no-host configure.util-linux 31,171 20,874 11,340 30.3 osh-cpython
27 no-host configure.util-linux 14,301 8,811 5,678 30.0 osh-native
6 no-host configure.yash 1,804 1,070 741 24.2 bash
14 no-host configure.yash 1,759 1,012 751 24.0 dash
22 no-host configure.yash 2,492 1,607 927 24.4 osh-cpython
30 no-host configure.yash 1,811 1,081 734 24.5 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 47 35 12 17.2 osh-cpython
24 no-host hello-world 3 0 3 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,532 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,061 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,370 0 0 0 8 0 1,991 102 bash
9 no-host bin-true 66,400 0 0 0 8 0 1,988 67 dash
17 no-host bin-true 743,999 0 0 0 8 0 2,002 381 osh-cpython
25 no-host bin-true 130,609 0 0 0 16 0 1,992 65 osh-native
2 no-host configure.cpython 2,223,335 0 0 0 32,928 0 14,628 1,047 bash
10 no-host configure.cpython 2,243,886 1 0 0 32,992 0 14,607 997 dash
18 no-host configure.cpython 6,058,114 1 0 0 27,512 0 13,381 1,136 osh-cpython
26 no-host configure.cpython 2,248,380 0 0 0 27,520 0 13,347 942 osh-native
4 no-host configure.ocaml 410,343 0 0 0 5,120 0 1,952 160 bash
12 no-host configure.ocaml 390,745 0 0 0 5,112 0 1,886 168 dash
20 no-host configure.ocaml 633,705 1 0 0 5,112 0 1,859 239 osh-cpython
28 no-host configure.ocaml 413,706 0 0 0 5,120 0 1,932 159 osh-native
5 no-host configure.tcc 6,534 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,952 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,103,650 1 0 0 42,400 0 18,561 1,189 bash
11 no-host configure.util-linux 2,257,760 0 0 0 42,584 0 17,383 1,024 dash
19 no-host configure.util-linux 5,296,860 10 0 0 39,112 0 17,051 1,254 osh-cpython
27 no-host configure.util-linux 2,011,995 0 0 0 39,128 0 17,077 1,058 osh-native
6 no-host configure.yash 256,131 0 0 0 4,120 0 872 82 bash
14 no-host configure.yash 245,063 0 0 0 3,720 0 865 73 dash
22 no-host configure.yash 383,177 0 0 0 3,728 0 856 83 osh-cpython
30 no-host configure.yash 258,429 0 0 0 3,736 0 848 89 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,631 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 2 osh-native

Shell and Host

shell label shell id
bash bash-08e28555
dash dash-308ec8e6
osh-cpython osh-e5c41c93
osh-native osh-3ff8e091
host label host id
no-host no-host-f581f4dd