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 20 10 466 23 23.85 1.17
bin-true no-host 691 548 2,286 830 3.31 1.20
configure.cpython no-host 15,399 15,345 29,211 15,513 1.90 1.01
configure.ocaml no-host 3,865 3,814 4,695 3,912 1.21 1.01
configure.tcc no-host 48 43 196 51 4.07 1.05
configure.util-linux no-host 14,214 15,208 31,928 14,603 2.25 1.03
configure.yash no-host 1,850 1,826 2,493 1,895 1.35 1.02
hello-world no-host 2 1 49 3 31.33 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,534 1,136 22,931 3,159 9.05 1.25
bin-true no-host 107,273 67,454 751,597 129,416 7.01 1.21
configure.cpython no-host 2,227,918 2,239,122 6,112,459 2,216,942 2.74 1.00
configure.ocaml no-host 410,275 390,808 639,071 413,277 1.56 1.01
configure.tcc no-host 6,555 5,450 23,294 7,004 3.55 1.07
configure.util-linux no-host 2,106,633 2,258,596 5,299,776 1,997,476 2.52 0.95
configure.yash no-host 256,791 245,093 384,064 258,637 1.50 1.01
hello-world no-host 149 79 3,692 350 24.78 2.35

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.5 3.4 21.8 8.9 4.88 2.00
bin-true no-host 2.9 1.4 17.4 8.1 6.05 2.82
configure.cpython no-host 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.1 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 25.4 24.2 24.4 1.00 1.01
hello-world no-host 2.6 1.4 17.4 6.0 6.65 2.30

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.0 3,736 3,736 0 681 1,886 1,169 2 0 50,000 0
bin-true no-host 830 1 2 2.6 8.1 154,701 13,053 2,806 9,731 78,355 66,615 5,012 3 50,000 0
configure.cpython no-host 15,513 2 68 15.0 27.4 1,772,677 49,204 28,515 86,378 908,107 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,603 3 68 21.3 30.1 2,703,413 44,774 65,800 109,640 1,320,605 1,273,168 49,081 41 131,600 1
configure.ocaml no-host 3,912 1 2 2.6 20.6 150,047 11,053 5,146 7,510 71,643 70,894 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,536 30,536 0 1,501 14,810 14,225 350 0 50,000 0
configure.yash no-host 1,895 1 2 2.6 24.4 139,704 7,971 6,607 6,317 70,315 63,072 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,279 64,462 42,670 4,552 54,555 57,172 478 3 85,340 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 20 17 3 4.5 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 466 432 37 21.8 osh-cpython
31 no-host abuild-print-help 23 19 5 8.9 osh-native
1 no-host bin-true 691 528 195 2.9 bash
9 no-host bin-true 548 427 134 1.4 dash
17 no-host bin-true 2,286 1,511 1,053 17.4 osh-cpython
25 no-host bin-true 830 578 265 8.1 osh-native
2 no-host configure.cpython 15,399 9,350 6,467 27.5 bash
10 no-host configure.cpython 15,345 9,144 6,634 27.4 dash
18 no-host configure.cpython 29,211 17,892 13,255 27.4 osh-cpython
26 no-host configure.cpython 15,513 9,448 6,328 27.4 osh-native
4 no-host configure.ocaml 3,865 1,640 1,255 20.4 bash
12 no-host configure.ocaml 3,814 1,571 1,263 20.6 dash
20 no-host configure.ocaml 4,695 2,226 1,681 20.6 osh-cpython
28 no-host configure.ocaml 3,912 1,681 1,271 20.6 osh-native
5 no-host configure.tcc 48 39 10 19.3 bash
13 no-host configure.tcc 43 35 8 19.1 dash
21 no-host configure.tcc 196 161 39 19.4 osh-cpython
29 no-host configure.tcc 51 31 20 19.3 osh-native
3 no-host configure.util-linux 14,214 8,861 5,848 30.3 bash
11 no-host configure.util-linux 15,208 9,325 6,392 30.3 dash
19 no-host configure.util-linux 31,928 21,303 11,772 30.3 osh-cpython
27 no-host configure.util-linux 14,603 8,801 6,007 30.1 osh-native
6 no-host configure.yash 1,850 1,092 764 24.2 bash
14 no-host configure.yash 1,826 1,096 733 25.4 dash
22 no-host configure.yash 2,493 1,499 1,037 24.2 osh-cpython
30 no-host configure.yash 1,895 1,131 767 24.4 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 45 4 17.4 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,534 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,931 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,159 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 107,273 0 0 0 8 0 1,991 150 bash
9 no-host bin-true 67,454 0 0 0 8 0 1,987 115 dash
17 no-host bin-true 751,597 0 0 0 8 0 2,001 142 osh-cpython
25 no-host bin-true 129,416 0 0 0 16 0 1,993 171 osh-native
2 no-host configure.cpython 2,227,918 0 0 0 32,928 0 14,418 1,010 bash
10 no-host configure.cpython 2,239,122 0 0 0 32,992 0 14,527 976 dash
18 no-host configure.cpython 6,112,459 1 0 0 27,512 0 13,235 1,235 osh-cpython
26 no-host configure.cpython 2,216,942 0 0 0 27,520 0 13,245 1,111 osh-native
4 no-host configure.ocaml 410,275 0 0 0 5,120 0 1,959 200 bash
12 no-host configure.ocaml 390,808 0 0 0 5,112 0 1,905 164 dash
20 no-host configure.ocaml 639,071 1 0 0 5,112 0 1,846 213 osh-cpython
28 no-host configure.ocaml 413,277 0 0 0 5,120 0 1,932 153 osh-native
5 no-host configure.tcc 6,555 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,450 0 0 0 96 0 47 10 dash
21 no-host configure.tcc 23,294 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 9 osh-native
3 no-host configure.util-linux 2,106,633 0 0 0 42,400 0 18,555 1,011 bash
11 no-host configure.util-linux 2,258,596 0 0 0 42,584 0 17,518 1,137 dash
19 no-host configure.util-linux 5,299,776 11 0 0 39,120 0 17,085 1,225 osh-cpython
27 no-host configure.util-linux 1,997,476 0 0 0 39,128 0 16,976 1,168 osh-native
6 no-host configure.yash 256,791 0 0 0 4,120 0 868 229 bash
14 no-host configure.yash 245,093 0 0 0 3,720 0 869 70 dash
22 no-host configure.yash 384,064 0 0 0 3,728 0 855 93 osh-cpython
30 no-host configure.yash 258,637 0 0 0 3,736 0 846 94 osh-native
0 no-host hello-world 149 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,692 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-c6566c3d
dash dash-308ec8e6
osh-cpython osh-4e71fd0a
osh-native osh-f0b94838
host label host id
no-host no-host-556df3ee