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 454 22 23.74 1.16
bin-true no-host 681 544 2,212 813 3.25 1.19
configure.cpython no-host 14,993 15,154 28,658 15,249 1.91 1.02
configure.ocaml no-host 3,790 3,735 4,628 3,814 1.22 1.01
configure.tcc no-host 47 42 192 49 4.06 1.04
configure.util-linux no-host 13,992 14,934 31,132 14,513 2.22 1.04
configure.yash no-host 1,832 1,786 2,450 1,842 1.34 1.01
hello-world no-host 2 1 49 3 31.37 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,505 1,133 22,980 3,192 9.17 1.27
bin-true no-host 107,306 67,401 750,787 127,157 7.00 1.18
configure.cpython no-host 2,223,416 2,252,239 6,144,897 2,226,017 2.76 1.00
configure.ocaml no-host 410,459 390,862 637,325 413,454 1.55 1.01
configure.tcc no-host 6,552 5,485 23,281 7,007 3.55 1.07
configure.util-linux no-host 2,099,365 2,267,603 5,291,889 2,004,918 2.52 0.96
configure.yash no-host 256,484 244,902 384,217 258,484 1.50 1.01
hello-world no-host 152 82 3,721 353 24.48 2.32

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 9.0 5.00 2.09
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.3 27.3 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.1 19.0 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.0 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.4 17.4 6.3 6.33 2.29

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.3 3,728 3,728 0 681 1,878 1,169 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.0 154,693 12,993 2,800 9,731 78,347 66,615 5,012 3 50,000 0
configure.cpython no-host 15,249 1 59 15.0 27.4 1,772,669 49,198 28,509 86,378 908,099 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,513 2 59 21.3 30.1 2,703,405 44,289 65,813 109,640 1,320,597 1,273,168 49,081 41 131,626 1
configure.ocaml no-host 3,814 1 2 2.6 20.6 150,039 11,046 5,139 7,510 71,635 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,528 30,528 0 1,501 14,802 14,225 350 0 50,000 0
configure.yash no-host 1,842 1 2 2.6 24.4 139,696 7,965 6,601 6,317 70,307 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,271 64,456 42,664 4,552 54,547 57,172 478 3 85,328 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 16 4 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 454 396 61 21.6 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
1 no-host bin-true 681 507 203 3.0 bash
9 no-host bin-true 544 419 133 1.4 dash
17 no-host bin-true 2,212 1,431 1,035 17.4 osh-cpython
25 no-host bin-true 813 580 249 8.0 osh-native
2 no-host configure.cpython 14,993 9,032 6,350 27.3 bash
10 no-host configure.cpython 15,154 9,252 6,320 27.3 dash
18 no-host configure.cpython 28,658 17,384 13,132 27.4 osh-cpython
26 no-host configure.cpython 15,249 9,018 6,495 27.4 osh-native
4 no-host configure.ocaml 3,790 1,565 1,261 20.4 bash
12 no-host configure.ocaml 3,735 1,581 1,173 20.6 dash
20 no-host configure.ocaml 4,628 2,251 1,581 20.6 osh-cpython
28 no-host configure.ocaml 3,814 1,649 1,204 20.6 osh-native
5 no-host configure.tcc 47 17 31 19.1 bash
13 no-host configure.tcc 42 27 15 19.0 dash
21 no-host configure.tcc 192 143 53 19.3 osh-cpython
29 no-host configure.tcc 49 22 28 19.3 osh-native
3 no-host configure.util-linux 13,992 8,844 5,607 30.0 bash
11 no-host configure.util-linux 14,934 9,058 6,366 30.1 dash
19 no-host configure.util-linux 31,132 20,583 11,614 30.1 osh-cpython
27 no-host configure.util-linux 14,513 8,930 5,777 30.1 osh-native
6 no-host configure.yash 1,832 1,086 750 24.5 bash
14 no-host configure.yash 1,786 1,066 723 24.4 dash
22 no-host configure.yash 2,450 1,461 1,031 24.2 osh-cpython
30 no-host configure.yash 1,842 1,034 807 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 34 15 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,505 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,980 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 38 5 osh-native
1 no-host bin-true 107,306 0 0 0 8 0 1,995 169 bash
9 no-host bin-true 67,401 0 0 0 8 0 1,991 47 dash
17 no-host bin-true 750,787 0 0 0 8 0 1,991 137 osh-cpython
25 no-host bin-true 127,157 0 0 0 16 0 1,994 107 osh-native
2 no-host configure.cpython 2,223,416 0 0 0 32,928 0 14,516 1,309 bash
10 no-host configure.cpython 2,252,239 0 0 0 32,992 0 14,659 1,128 dash
18 no-host configure.cpython 6,144,897 0 0 0 27,512 0 13,257 1,319 osh-cpython
26 no-host configure.cpython 2,226,017 0 0 0 27,520 0 13,175 992 osh-native
4 no-host configure.ocaml 410,459 0 0 0 5,120 0 1,947 164 bash
12 no-host configure.ocaml 390,862 0 0 0 5,112 0 1,911 167 dash
20 no-host configure.ocaml 637,325 0 0 0 5,112 0 1,853 160 osh-cpython
28 no-host configure.ocaml 413,454 0 0 0 5,120 0 1,931 156 osh-native
5 no-host configure.tcc 6,552 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,281 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 7,007 0 0 0 104 0 46 2 osh-native
3 no-host configure.util-linux 2,099,365 0 0 0 42,400 0 18,590 1,136 bash
11 no-host configure.util-linux 2,267,603 1 0 0 42,592 0 17,467 1,149 dash
19 no-host configure.util-linux 5,291,889 11 0 0 39,112 0 16,978 1,193 osh-cpython
27 no-host configure.util-linux 2,004,918 0 0 0 39,120 0 16,970 962 osh-native
6 no-host configure.yash 256,484 0 0 0 4,120 0 882 95 bash
14 no-host configure.yash 244,902 0 0 0 3,720 0 867 82 dash
22 no-host configure.yash 384,217 0 0 0 3,728 0 856 177 osh-cpython
30 no-host configure.yash 258,484 0 0 0 3,736 0 845 91 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,721 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-8673095b
dash dash-308ec8e6
osh-cpython osh-fbde98f1
osh-native osh-57272687
host label host id
no-host no-host-556df3ee