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 449 22 23.75 1.17
bin-true no-host 683 543 2,193 814 3.21 1.19
configure.cpython no-host 14,825 14,990 28,239 15,090 1.90 1.02
configure.ocaml no-host 3,785 3,740 4,549 3,794 1.20 1.00
configure.tcc no-host 47 42 189 48 4.01 1.02
configure.util-linux no-host 13,819 14,783 30,693 14,458 2.22 1.05
configure.yash no-host 1,798 1,763 2,397 1,809 1.33 1.01
hello-world no-host 1 1 47 3 31.29 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,564 1,133 22,823 3,201 8.90 1.25
bin-true no-host 108,357 66,444 725,478 126,166 6.70 1.16
configure.cpython no-host 2,215,596 2,251,573 6,044,410 2,235,874 2.73 1.01
configure.ocaml no-host 410,965 391,164 631,170 413,595 1.54 1.01
configure.tcc no-host 6,547 5,457 22,904 6,991 3.50 1.07
configure.util-linux no-host 2,100,297 2,258,799 5,270,731 2,021,618 2.51 0.96
configure.yash no-host 256,401 245,058 382,648 258,713 1.49 1.01
hello-world no-host 151 80 3,639 341 24.10 2.26

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.5 9.0 4.82 2.03
bin-true no-host 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 27.5 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.4 1.00 0.99
configure.tcc no-host 19.4 19.4 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.3 17.3 6.2 6.29 2.24

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,710 3,710 0 681 1,865 1,164 2 0 50,000 0
bin-true no-host 814 1 2 2.7 8.1 154,656 12,889 2,791 11,730 78,317 64,609 5,012 3 50,000 0
configure.cpython no-host 15,090 1 59 15.9 27.4 1,769,350 44,560 28,499 101,923 904,763 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,458 3 59 22.2 30.3 2,698,087 29,091 65,803 126,121 1,315,368 1,256,598 49,081 41 131,606 1
configure.ocaml no-host 3,794 1 2 2.7 20.4 149,273 11,026 5,129 8,602 71,056 69,615 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,424 30,424 0 1,599 14,700 14,125 350 0 50,000 0
configure.yash no-host 1,809 1 2 2.6 24.4 139,384 7,140 6,531 7,554 69,998 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,050 64,417 42,656 4,601 54,332 57,117 478 3 85,312 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 6 4 3.4 dash
23 no-host abuild-print-help 449 406 46 21.5 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
1 no-host bin-true 683 517 196 2.9 bash
9 no-host bin-true 543 419 133 1.4 dash
17 no-host bin-true 2,193 1,459 978 17.3 osh-cpython
25 no-host bin-true 814 578 249 8.1 osh-native
2 no-host configure.cpython 14,825 9,089 6,131 27.5 bash
10 no-host configure.cpython 14,990 9,005 6,402 27.3 dash
18 no-host configure.cpython 28,239 17,044 12,964 27.4 osh-cpython
26 no-host configure.cpython 15,090 9,005 6,343 27.4 osh-native
4 no-host configure.ocaml 3,785 1,630 1,187 20.6 bash
12 no-host configure.ocaml 3,740 1,517 1,238 20.4 dash
20 no-host configure.ocaml 4,549 2,156 1,591 20.6 osh-cpython
28 no-host configure.ocaml 3,794 1,620 1,210 20.4 osh-native
5 no-host configure.tcc 47 34 14 19.4 bash
13 no-host configure.tcc 42 28 14 19.4 dash
21 no-host configure.tcc 189 137 56 19.4 osh-cpython
29 no-host configure.tcc 48 27 22 19.3 osh-native
3 no-host configure.util-linux 13,819 8,836 5,465 30.1 bash
11 no-host configure.util-linux 14,783 8,995 6,275 30.1 dash
19 no-host configure.util-linux 30,693 20,500 11,227 30.1 osh-cpython
27 no-host configure.util-linux 14,458 8,638 6,016 30.3 osh-native
6 no-host configure.yash 1,798 1,049 756 24.4 bash
14 no-host configure.yash 1,763 1,028 739 24.2 dash
22 no-host configure.yash 2,397 1,463 975 24.4 osh-cpython
30 no-host configure.yash 1,809 1,100 710 24.4 osh-native
0 no-host hello-world 1 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 47 21 25 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,564 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 22,823 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,201 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 108,357 0 0 0 8 0 1,993 149 bash
9 no-host bin-true 66,444 0 0 0 8 0 1,990 37 dash
17 no-host bin-true 725,478 0 0 0 8 0 2,002 311 osh-cpython
25 no-host bin-true 126,166 0 0 0 16 0 1,988 138 osh-native
2 no-host configure.cpython 2,215,596 0 0 0 32,928 0 14,501 1,390 bash
10 no-host configure.cpython 2,251,573 1 0 0 32,992 0 14,579 1,085 dash
18 no-host configure.cpython 6,044,410 1 0 0 27,512 0 13,283 1,212 osh-cpython
26 no-host configure.cpython 2,235,874 0 0 0 27,520 0 13,273 949 osh-native
4 no-host configure.ocaml 410,965 0 0 0 5,120 0 1,951 172 bash
12 no-host configure.ocaml 391,164 0 0 0 5,112 0 1,938 140 dash
20 no-host configure.ocaml 631,170 0 0 0 5,112 0 1,870 191 osh-cpython
28 no-host configure.ocaml 413,595 0 0 0 5,120 0 1,931 173 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,457 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,904 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,991 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,297 0 0 0 42,400 0 18,698 1,045 bash
11 no-host configure.util-linux 2,258,799 0 0 0 42,584 0 17,484 1,285 dash
19 no-host configure.util-linux 5,270,731 11 0 0 39,112 0 17,068 1,279 osh-cpython
27 no-host configure.util-linux 2,021,618 0 0 0 39,120 0 17,037 999 osh-native
6 no-host configure.yash 256,401 0 0 0 4,120 0 871 80 bash
14 no-host configure.yash 245,058 0 0 0 3,720 0 870 78 dash
22 no-host configure.yash 382,648 0 0 0 3,728 0 858 90 osh-cpython
30 no-host configure.yash 258,713 0 0 0 3,736 0 852 59 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,639 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1139a114
dash dash-308ec8e6
osh-cpython osh-c2a3c776
osh-native osh-32c7bdfd
host label host id
no-host no-host-e54d7702