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 448 22 23.57 1.15
bin-true no-host 686 537 2,208 819 3.22 1.19
configure.cpython no-host 14,852 14,960 28,027 15,090 1.89 1.02
configure.ocaml no-host 3,798 3,706 4,572 3,796 1.20 1.00
configure.tcc no-host 48 41 189 48 3.96 1.01
configure.util-linux no-host 13,891 14,743 30,750 14,303 2.21 1.03
configure.yash no-host 1,799 1,751 2,410 1,803 1.34 1.00
hello-world no-host 1 1 47 3 31.35 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,546 1,120 23,086 3,188 9.07 1.25
bin-true no-host 105,359 65,378 744,879 128,527 7.07 1.22
configure.cpython no-host 2,219,536 2,242,319 6,062,624 2,250,025 2.73 1.01
configure.ocaml no-host 411,119 391,311 633,740 413,741 1.54 1.01
configure.tcc no-host 6,529 5,457 22,961 6,970 3.52 1.07
configure.util-linux no-host 2,108,646 2,256,860 5,291,208 2,025,069 2.51 0.96
configure.yash no-host 256,704 244,464 383,517 259,232 1.49 1.01
hello-world no-host 153 83 3,625 337 23.69 2.20

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.6 8.9 4.85 2.00
bin-true no-host 3.0 1.6 17.3 8.1 5.74 2.70
configure.cpython no-host 27.4 27.5 27.3 29.1 1.00 1.06
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.0 30.1 30.4 30.3 1.01 1.01
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.6 17.0 6.2 5.91 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.2 6.2 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 819 1 2 2.7 8.1 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,090 1 59 15.9 29.1 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,303 3 56 22.2 30.3 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,796 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 48 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,803 1 2 2.6 24.4 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.9 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 5 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 448 410 42 21.6 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
1 no-host bin-true 686 507 209 3.0 bash
9 no-host bin-true 537 406 141 1.6 dash
17 no-host bin-true 2,208 1,429 1,017 17.3 osh-cpython
25 no-host bin-true 819 572 261 8.1 osh-native
2 no-host configure.cpython 14,852 9,093 6,157 27.4 bash
10 no-host configure.cpython 14,960 8,884 6,498 27.5 dash
18 no-host configure.cpython 28,027 17,144 12,640 27.3 osh-cpython
26 no-host configure.cpython 15,090 9,022 6,335 29.1 osh-native
4 no-host configure.ocaml 3,798 1,686 1,146 20.6 bash
12 no-host configure.ocaml 3,706 1,618 1,105 20.4 dash
20 no-host configure.ocaml 4,572 2,129 1,640 20.6 osh-cpython
28 no-host configure.ocaml 3,796 1,563 1,271 20.6 osh-native
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 41 28 14 19.3 dash
21 no-host configure.tcc 189 116 76 19.4 osh-cpython
29 no-host configure.tcc 48 22 26 19.4 osh-native
3 no-host configure.util-linux 13,891 8,771 5,597 30.0 bash
11 no-host configure.util-linux 14,743 9,050 6,186 30.1 dash
19 no-host configure.util-linux 30,750 20,605 11,179 30.4 osh-cpython
27 no-host configure.util-linux 14,303 8,629 5,874 30.3 osh-native
6 no-host configure.yash 1,799 1,065 743 24.4 bash
14 no-host configure.yash 1,751 983 772 24.4 dash
22 no-host configure.yash 2,410 1,485 967 24.4 osh-cpython
30 no-host configure.yash 1,803 1,048 759 24.4 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 17 29 17.0 osh-cpython
24 no-host hello-world 3 3 0 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,546 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,120 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,086 0 0 0 8 0 47 6 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,359 0 0 0 8 0 1,994 219 bash
9 no-host bin-true 65,378 0 0 0 8 0 1,986 57 dash
17 no-host bin-true 744,879 0 0 0 8 0 1,994 217 osh-cpython
25 no-host bin-true 128,527 0 0 0 16 0 1,995 114 osh-native
2 no-host configure.cpython 2,219,536 0 0 0 32,928 0 14,623 979 bash
10 no-host configure.cpython 2,242,319 0 0 0 32,992 0 14,776 1,348 dash
18 no-host configure.cpython 6,062,624 0 0 0 27,512 0 13,379 1,050 osh-cpython
26 no-host configure.cpython 2,250,025 0 0 0 27,520 0 13,368 977 osh-native
4 no-host configure.ocaml 411,119 0 0 0 5,120 0 1,952 203 bash
12 no-host configure.ocaml 391,311 0 0 0 5,112 0 1,889 168 dash
20 no-host configure.ocaml 633,740 0 0 0 5,112 0 1,853 207 osh-cpython
28 no-host configure.ocaml 413,741 0 0 0 5,120 0 1,934 161 osh-native
5 no-host configure.tcc 6,529 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,457 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,961 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,108,646 1 0 0 42,400 0 18,525 1,039 bash
11 no-host configure.util-linux 2,256,860 0 0 0 42,584 0 17,386 1,186 dash
19 no-host configure.util-linux 5,291,208 7 0 0 39,120 0 17,081 1,298 osh-cpython
27 no-host configure.util-linux 2,025,069 0 0 0 39,120 0 17,223 1,100 osh-native
6 no-host configure.yash 256,704 0 0 0 4,120 0 870 80 bash
14 no-host configure.yash 244,464 0 0 0 3,720 0 869 74 dash
22 no-host configure.yash 383,517 0 0 0 3,728 0 858 70 osh-cpython
30 no-host configure.yash 259,232 0 0 0 3,736 0 854 90 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,625 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 337 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-98611bfb
dash dash-308ec8e6
osh-cpython osh-4af9d90a
osh-native osh-419cd85e
host label host id
no-host no-host-f581f4dd