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 450 23 23.09 1.17
bin-true no-host 683 555 2,274 832 3.33 1.22
configure.cpython no-host 15,862 15,691 28,766 15,304 1.81 0.96
configure.ocaml no-host 3,991 3,774 4,765 3,929 1.19 0.98
configure.tcc no-host 49 44 197 51 3.98 1.03
configure.util-linux no-host 14,540 15,126 31,584 14,696 2.17 1.01
configure.yash no-host 1,891 1,801 2,469 1,853 1.31 0.98
hello-world no-host 2 1 49 3 29.57 1.71

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,554 1,087 22,936 3,189 8.98 1.25
bin-true no-host 104,343 67,406 747,701 127,149 7.17 1.22
configure.cpython no-host 2,220,988 2,244,582 6,117,313 2,214,723 2.75 1.00
configure.ocaml no-host 410,519 391,086 638,408 413,618 1.56 1.01
configure.tcc no-host 6,539 5,472 23,226 6,979 3.55 1.07
configure.util-linux no-host 2,103,256 2,256,619 5,298,798 1,991,274 2.52 0.95
configure.yash no-host 256,841 245,000 382,481 258,511 1.49 1.01
hello-world no-host 153 83 3,726 349 24.35 2.28

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.5 21.8 8.9 4.88 2.00
bin-true no-host 3.0 1.4 17.3 7.9 5.74 2.61
configure.cpython no-host 27.0 27.4 27.4 27.3 1.01 1.01
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.1 19.1 0.99 0.99
configure.util-linux no-host 30.1 30.3 30.0 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.3 6.2 5.99 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,728 3,728 0 681 1,878 1,169 2 0 50,000 0
bin-true no-host 832 1 2 2.6 7.9 154,693 12,993 2,800 9,731 78,347 66,615 5,012 3 50,000 0
configure.cpython no-host 15,304 2 65 15.0 27.3 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,696 3 66 21.3 30.0 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,929 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 51 0 0 1.3 19.1 30,528 30,528 0 1,501 14,802 14,225 350 0 50,000 0
configure.yash no-host 1,853 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 23 1 2 2.8 8.9 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 17 3 4.5 bash
15 no-host abuild-print-help 10 4 6 3.5 dash
23 no-host abuild-print-help 450 419 34 21.8 osh-cpython
31 no-host abuild-print-help 23 16 7 8.9 osh-native
1 no-host bin-true 683 499 216 3.0 bash
9 no-host bin-true 555 435 129 1.4 dash
17 no-host bin-true 2,274 1,536 999 17.3 osh-cpython
25 no-host bin-true 832 558 290 7.9 osh-native
2 no-host configure.cpython 15,862 9,514 6,765 27.0 bash
10 no-host configure.cpython 15,691 9,574 6,550 27.4 dash
18 no-host configure.cpython 28,766 17,546 13,060 27.4 osh-cpython
26 no-host configure.cpython 15,304 8,982 6,592 27.3 osh-native
4 no-host configure.ocaml 3,991 1,716 1,306 20.6 bash
12 no-host configure.ocaml 3,774 1,627 1,166 20.4 dash
20 no-host configure.ocaml 4,765 2,226 1,751 20.6 osh-cpython
28 no-host configure.ocaml 3,929 1,722 1,250 20.6 osh-native
5 no-host configure.tcc 49 28 21 19.3 bash
13 no-host configure.tcc 44 26 18 19.4 dash
21 no-host configure.tcc 197 157 43 19.1 osh-cpython
29 no-host configure.tcc 51 23 28 19.1 osh-native
3 no-host configure.util-linux 14,540 9,170 5,851 30.1 bash
11 no-host configure.util-linux 15,126 9,314 6,309 30.3 dash
19 no-host configure.util-linux 31,584 21,270 11,386 30.0 osh-cpython
27 no-host configure.util-linux 14,696 8,663 6,226 30.0 osh-native
6 no-host configure.yash 1,891 1,066 832 24.2 bash
14 no-host configure.yash 1,801 964 841 24.4 dash
22 no-host configure.yash 2,469 1,465 1,046 24.4 osh-cpython
30 no-host configure.yash 1,853 1,095 761 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 29 20 17.3 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,554 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,936 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 104,343 0 0 0 8 0 1,989 112 bash
9 no-host bin-true 67,406 0 0 0 8 0 1,992 39 dash
17 no-host bin-true 747,701 0 0 0 8 0 1,990 171 osh-cpython
25 no-host bin-true 127,149 0 0 0 16 0 1,988 137 osh-native
2 no-host configure.cpython 2,220,988 1 0 0 32,928 0 14,410 1,109 bash
10 no-host configure.cpython 2,244,582 1 0 0 32,992 0 14,590 1,014 dash
18 no-host configure.cpython 6,117,313 3 0 0 27,512 0 13,229 1,230 osh-cpython
26 no-host configure.cpython 2,214,723 0 0 0 27,520 0 13,292 962 osh-native
4 no-host configure.ocaml 410,519 0 0 0 5,120 0 1,951 173 bash
12 no-host configure.ocaml 391,086 0 0 0 5,112 0 1,919 160 dash
20 no-host configure.ocaml 638,408 0 0 0 5,112 0 1,873 175 osh-cpython
28 no-host configure.ocaml 413,618 0 0 0 5,120 0 1,938 164 osh-native
5 no-host configure.tcc 6,539 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,472 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,226 0 0 0 96 0 54 9 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,103,256 0 0 0 42,400 0 18,585 1,141 bash
11 no-host configure.util-linux 2,256,619 1 0 0 42,592 0 17,476 1,066 dash
19 no-host configure.util-linux 5,298,798 5 0 0 39,112 0 16,956 1,106 osh-cpython
27 no-host configure.util-linux 1,991,274 3 0 0 39,120 0 16,954 980 osh-native
6 no-host configure.yash 256,841 0 0 0 4,120 0 869 78 bash
14 no-host configure.yash 245,000 0 0 0 3,720 0 866 79 dash
22 no-host configure.yash 382,481 0 0 0 3,728 0 853 91 osh-cpython
30 no-host configure.yash 258,511 0 0 0 3,736 0 849 76 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,726 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-84de6b65
dash dash-308ec8e6
osh-cpython osh-7129d7e5
osh-native osh-a0e106bd
host label host id
no-host no-host-556df3ee