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 460 23 23.80 1.18
bin-true no-host 682 552 2,226 833 3.27 1.22
configure.cpython no-host 15,314 15,399 29,537 15,504 1.93 1.01
configure.ocaml no-host 3,871 3,801 4,716 3,928 1.22 1.01
configure.tcc no-host 48 43 196 51 4.06 1.05
configure.util-linux no-host 14,325 15,197 31,798 14,842 2.22 1.04
configure.yash no-host 1,852 1,807 2,505 1,895 1.35 1.02
hello-world no-host 2 1 50 3 32.12 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,560 1,141 23,552 3,231 9.20 1.26
bin-true no-host 107,360 65,545 749,477 128,168 6.98 1.19
configure.cpython no-host 2,215,478 2,249,089 6,142,612 2,219,020 2.77 1.00
configure.ocaml no-host 410,764 390,971 638,624 413,676 1.55 1.01
configure.tcc no-host 6,605 5,478 23,211 6,980 3.51 1.06
configure.util-linux no-host 2,096,125 2,266,863 5,321,022 2,009,323 2.54 0.96
configure.yash no-host 255,993 244,490 385,658 258,699 1.51 1.01
hello-world no-host 152 82 3,659 345 24.07 2.27

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.6 8.8 4.85 1.97
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.1 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 6.00 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,715 3,715 0 681 1,869 1,165 2 0 50,000 0
bin-true no-host 833 1 2 2.7 8.0 154,680 12,986 2,793 11,734 78,338 64,608 5,012 3 50,000 0
configure.cpython no-host 15,504 1 62 15.8 27.4 1,772,659 49,191 28,502 101,770 908,090 762,799 42,399 60 50,000 0
configure.util-linux no-host 14,842 3 63 22.2 30.1 2,703,395 44,760 65,786 126,121 1,320,588 1,256,686 49,081 41 131,572 1
configure.ocaml no-host 3,928 1 2 2.7 20.6 150,029 11,039 5,132 8,602 71,626 69,801 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,518 30,518 0 1,599 14,793 14,126 350 0 50,000 0
configure.yash no-host 1,895 1 2 2.6 24.4 139,686 7,958 6,594 7,554 70,298 61,834 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,261 64,449 42,657 4,609 54,538 57,114 478 3 85,314 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 10 0 3.4 dash
23 no-host abuild-print-help 460 402 62 21.6 osh-cpython
31 no-host abuild-print-help 23 23 0 8.8 osh-native
1 no-host bin-true 682 490 222 3.0 bash
9 no-host bin-true 552 423 137 1.4 dash
17 no-host bin-true 2,226 1,415 1,072 17.3 osh-cpython
25 no-host bin-true 833 567 279 8.0 osh-native
2 no-host configure.cpython 15,314 9,256 6,463 27.4 bash
10 no-host configure.cpython 15,399 9,123 6,689 27.4 dash
18 no-host configure.cpython 29,537 17,848 13,622 27.5 osh-cpython
26 no-host configure.cpython 15,504 9,166 6,607 27.4 osh-native
4 no-host configure.ocaml 3,871 1,612 1,296 20.6 bash
12 no-host configure.ocaml 3,801 1,666 1,154 20.6 dash
20 no-host configure.ocaml 4,716 2,273 1,650 20.4 osh-cpython
28 no-host configure.ocaml 3,928 1,680 1,288 20.6 osh-native
5 no-host configure.tcc 48 25 24 19.4 bash
13 no-host configure.tcc 43 23 20 19.3 dash
21 no-host configure.tcc 196 147 52 19.3 osh-cpython
29 no-host configure.tcc 51 26 25 19.3 osh-native
3 no-host configure.util-linux 14,325 9,115 5,692 30.1 bash
11 no-host configure.util-linux 15,197 9,260 6,435 30.1 dash
19 no-host configure.util-linux 31,798 21,582 11,320 30.1 osh-cpython
27 no-host configure.util-linux 14,842 8,929 6,099 30.1 osh-native
6 no-host configure.yash 1,852 1,101 758 24.2 bash
14 no-host configure.yash 1,807 1,062 747 24.4 dash
22 no-host configure.yash 2,505 1,494 1,055 24.4 osh-cpython
30 no-host configure.yash 1,895 1,068 831 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 35 15 17.3 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,560 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,141 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,552 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,231 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,360 0 0 0 8 0 1,990 52 bash
9 no-host bin-true 65,545 0 0 0 8 0 1,986 39 dash
17 no-host bin-true 749,477 0 0 0 8 0 1,992 117 osh-cpython
25 no-host bin-true 128,168 0 0 0 16 0 1,990 219 osh-native
2 no-host configure.cpython 2,215,478 0 0 0 32,928 0 14,476 1,144 bash
10 no-host configure.cpython 2,249,089 0 0 0 32,992 0 14,550 1,063 dash
18 no-host configure.cpython 6,142,612 0 0 0 27,512 0 13,276 1,298 osh-cpython
26 no-host configure.cpython 2,219,020 0 0 0 27,520 0 13,277 927 osh-native
4 no-host configure.ocaml 410,764 0 0 0 5,120 0 1,941 164 bash
12 no-host configure.ocaml 390,971 0 0 0 5,112 0 1,919 163 dash
20 no-host configure.ocaml 638,624 0 0 0 5,112 0 1,857 268 osh-cpython
28 no-host configure.ocaml 413,676 0 0 0 5,120 0 1,932 167 osh-native
5 no-host configure.tcc 6,605 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,211 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,980 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,096,125 0 0 0 42,400 0 18,769 1,176 bash
11 no-host configure.util-linux 2,266,863 0 0 0 42,584 0 17,452 1,157 dash
19 no-host configure.util-linux 5,321,022 10 0 0 39,112 0 17,069 1,219 osh-cpython
27 no-host configure.util-linux 2,009,323 0 0 0 39,128 0 17,069 1,015 osh-native
6 no-host configure.yash 255,993 0 0 0 4,120 0 873 75 bash
14 no-host configure.yash 244,490 0 0 0 3,720 0 870 78 dash
22 no-host configure.yash 385,658 0 0 0 3,728 0 859 102 osh-cpython
30 no-host configure.yash 258,699 0 0 0 3,736 0 852 84 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 1 dash
16 no-host hello-world 3,659 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-83640f79
dash dash-308ec8e6
osh-cpython osh-51168152
osh-native osh-c8cbbca1
host label host id
no-host no-host-e54d7702