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 9 467 23 24.14 1.17
bin-true no-host 675 546 2,252 817 3.34 1.21
configure.cpython no-host 15,050 15,210 28,540 15,417 1.90 1.02
configure.ocaml no-host 3,821 3,740 4,634 3,863 1.21 1.01
configure.tcc no-host 47 42 194 50 4.09 1.05
configure.util-linux no-host 14,004 14,890 31,232 14,606 2.23 1.04
configure.yash no-host 1,813 1,771 2,453 1,843 1.35 1.02
hello-world no-host 1 1 48 3 33.39 2.02

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,513 1,088 22,807 3,177 9.08 1.26
bin-true no-host 105,402 65,466 757,725 127,425 7.19 1.21
configure.cpython no-host 2,220,913 2,240,393 6,133,322 2,219,297 2.76 1.00
configure.ocaml no-host 410,264 391,132 639,635 414,198 1.56 1.01
configure.tcc no-host 6,573 5,487 23,289 6,994 3.54 1.06
configure.util-linux no-host 2,102,167 2,256,559 5,307,328 1,993,155 2.52 0.95
configure.yash no-host 255,999 244,552 383,767 258,423 1.50 1.01
hello-world no-host 152 82 3,696 349 24.32 2.30

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.4 21.9 9.0 5.06 2.09
bin-true no-host 2.9 1.4 17.6 8.0 6.09 2.77
configure.cpython no-host 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.0 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.9 1.4 17.6 6.3 6.09 2.18

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,748 3,748 0 681 1,890 1,177 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.0 154,713 13,066 2,819 9,731 78,359 66,623 5,012 3 50,000 0
configure.cpython no-host 15,417 1 64 15.0 27.3 1,772,689 49,459 28,528 86,378 908,111 778,200 42,399 60 50,000 0
configure.util-linux no-host 14,606 3 63 21.3 30.0 2,703,425 42,792 65,833 109,640 1,320,609 1,273,176 49,081 41 131,666 1
configure.ocaml no-host 3,863 1 2 2.6 20.4 150,059 11,066 5,159 7,510 71,647 70,902 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,548 30,548 0 1,501 14,814 14,233 350 0 50,000 0
configure.yash no-host 1,843 1 2 2.6 24.4 139,716 7,984 6,620 6,317 70,319 63,080 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,291 64,475 42,683 4,552 54,559 57,180 478 3 85,366 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 9 4 5 3.4 dash
23 no-host abuild-print-help 467 416 53 21.9 osh-cpython
31 no-host abuild-print-help 23 13 10 9.0 osh-native
1 no-host bin-true 675 484 221 2.9 bash
9 no-host bin-true 546 423 132 1.4 dash
17 no-host bin-true 2,252 1,467 1,051 17.6 osh-cpython
25 no-host bin-true 817 594 237 8.0 osh-native
2 no-host configure.cpython 15,050 9,071 6,371 27.4 bash
10 no-host configure.cpython 15,210 9,310 6,296 27.4 dash
18 no-host configure.cpython 28,540 17,469 12,921 27.4 osh-cpython
26 no-host configure.cpython 15,417 9,092 6,579 27.3 osh-native
4 no-host configure.ocaml 3,821 1,619 1,231 20.6 bash
12 no-host configure.ocaml 3,740 1,598 1,160 20.6 dash
20 no-host configure.ocaml 4,634 2,232 1,608 20.6 osh-cpython
28 no-host configure.ocaml 3,863 1,586 1,317 20.4 osh-native
5 no-host configure.tcc 47 21 27 19.3 bash
13 no-host configure.tcc 42 24 18 19.3 dash
21 no-host configure.tcc 194 140 57 19.3 osh-cpython
29 no-host configure.tcc 50 24 26 19.3 osh-native
3 no-host configure.util-linux 14,004 8,780 5,693 30.1 bash
11 no-host configure.util-linux 14,890 9,062 6,308 30.0 dash
19 no-host configure.util-linux 31,232 20,898 11,413 30.1 osh-cpython
27 no-host configure.util-linux 14,606 8,871 5,932 30.0 osh-native
6 no-host configure.yash 1,813 1,098 723 24.5 bash
14 no-host configure.yash 1,771 1,002 773 24.4 dash
22 no-host configure.yash 2,453 1,507 982 24.2 osh-cpython
30 no-host configure.yash 1,843 1,076 771 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 24 24 17.6 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,513 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,088 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,807 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,177 0 0 0 16 0 39 0 osh-native
1 no-host bin-true 105,402 0 0 0 8 0 1,997 55 bash
9 no-host bin-true 65,466 0 0 0 8 0 1,987 125 dash
17 no-host bin-true 757,725 0 0 0 8 0 1,998 138 osh-cpython
25 no-host bin-true 127,425 0 0 0 16 0 1,992 154 osh-native
2 no-host configure.cpython 2,220,913 0 0 0 32,928 0 14,545 1,335 bash
10 no-host configure.cpython 2,240,393 0 0 0 32,992 0 14,624 1,122 dash
18 no-host configure.cpython 6,133,322 0 0 0 27,512 0 13,258 1,207 osh-cpython
26 no-host configure.cpython 2,219,297 0 0 0 27,520 0 13,252 1,101 osh-native
4 no-host configure.ocaml 410,264 0 0 0 5,120 0 1,970 182 bash
12 no-host configure.ocaml 391,132 0 0 0 5,112 0 1,937 150 dash
20 no-host configure.ocaml 639,635 0 0 0 5,112 0 1,854 208 osh-cpython
28 no-host configure.ocaml 414,198 0 0 0 5,120 0 1,933 168 osh-native
5 no-host configure.tcc 6,573 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,289 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,102,167 0 0 0 42,400 0 18,537 1,059 bash
11 no-host configure.util-linux 2,256,559 1 0 0 42,584 0 17,450 1,300 dash
19 no-host configure.util-linux 5,307,328 5 0 0 39,128 0 16,941 1,320 osh-cpython
27 no-host configure.util-linux 1,993,155 0 0 0 39,120 0 16,987 1,087 osh-native
6 no-host configure.yash 255,999 0 0 0 4,120 0 869 70 bash
14 no-host configure.yash 244,552 0 0 0 3,720 0 863 78 dash
22 no-host configure.yash 383,767 0 0 0 3,728 0 856 92 osh-cpython
30 no-host configure.yash 258,423 0 0 0 3,736 0 850 79 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,696 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-78c42467
dash dash-308ec8e6
osh-cpython osh-51a07e58
osh-native osh-f2950792
host label host id
no-host no-host-556df3ee