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 20 10 467 24 23.91 1.23
bin-true no-host 683 546 2,230 823 3.27 1.21
configure.cpython no-host 15,268 15,172 29,211 15,824 1.91 1.04
configure.ocaml no-host 3,856 3,796 4,743 3,947 1.23 1.02
configure.tcc no-host 48 43 204 54 4.24 1.13
configure.util-linux no-host 14,154 15,148 32,862 15,213 2.32 1.07
configure.yash no-host 1,817 1,797 2,524 1,906 1.39 1.05
hello-world no-host 2 1 50 3 33.43 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,536 1,110 24,254 3,461 9.56 1.36
bin-true no-host 106,360 65,481 735,429 128,222 6.91 1.21
configure.cpython no-host 2,223,257 2,246,097 6,125,611 2,247,416 2.76 1.01
configure.ocaml no-host 410,599 390,538 639,663 415,214 1.56 1.01
configure.tcc no-host 6,561 5,479 25,773 7,486 3.93 1.14
configure.util-linux no-host 2,094,936 2,256,508 5,656,193 2,076,310 2.70 0.99
configure.yash no-host 255,722 244,681 388,914 259,623 1.52 1.02
hello-world no-host 151 81 3,652 342 24.19 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.3 3.4 21.4 8.8 4.94 2.03
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.9 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.4 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.5 0.99 1.01
hello-world no-host 2.6 1.4 17.1 6.2 6.54 2.35

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 823 1 2 2.7 8.0 154,662 12,890 2,792 11,730 78,322 64,610 5,012 3 50,000 0
configure.cpython no-host 15,824 1 66 15.9 27.4 1,772,999 49,191 28,502 101,923 908,362 762,714 42,399 60 50,000 0
configure.util-linux no-host 15,213 3 65 22.2 30.3 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,947 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 54 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,906 1 2 2.6 24.5 139,686 7,958 6,594 7,554 70,298 61,834 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 8.8 116,225 64,449 42,657 4,601 54,506 57,118 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 20 13 6 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 467 421 50 21.4 osh-cpython
31 no-host abuild-print-help 24 15 10 8.8 osh-native
1 no-host bin-true 683 495 222 3.0 bash
9 no-host bin-true 546 420 139 1.4 dash
17 no-host bin-true 2,230 1,478 1,004 17.3 osh-cpython
25 no-host bin-true 823 568 271 8.0 osh-native
2 no-host configure.cpython 15,268 9,315 6,350 27.4 bash
10 no-host configure.cpython 15,172 9,205 6,382 27.4 dash
18 no-host configure.cpython 29,211 17,767 13,374 27.5 osh-cpython
26 no-host configure.cpython 15,824 9,352 6,784 27.4 osh-native
4 no-host configure.ocaml 3,856 1,569 1,322 20.6 bash
12 no-host configure.ocaml 3,796 1,657 1,157 20.9 dash
20 no-host configure.ocaml 4,743 2,254 1,703 20.6 osh-cpython
28 no-host configure.ocaml 3,947 1,691 1,301 20.6 osh-native
5 no-host configure.tcc 48 31 18 19.4 bash
13 no-host configure.tcc 43 26 17 19.4 dash
21 no-host configure.tcc 204 140 68 19.3 osh-cpython
29 no-host configure.tcc 54 27 27 19.3 osh-native
3 no-host configure.util-linux 14,154 8,915 5,712 30.1 bash
11 no-host configure.util-linux 15,148 9,178 6,444 30.4 dash
19 no-host configure.util-linux 32,862 22,231 12,573 30.3 osh-cpython
27 no-host configure.util-linux 15,213 9,374 6,254 30.3 osh-native
6 no-host configure.yash 1,817 1,118 707 24.4 bash
14 no-host configure.yash 1,797 1,050 751 24.2 dash
22 no-host configure.yash 2,524 1,498 1,077 24.2 osh-cpython
30 no-host configure.yash 1,906 1,058 854 24.5 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 26 25 17.1 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,536 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 24,254 0 0 0 8 0 53 9 osh-cpython
31 no-host abuild-print-help 3,461 0 0 0 16 0 47 1 osh-native
1 no-host bin-true 106,360 0 0 0 8 0 1,986 40 bash
9 no-host bin-true 65,481 0 0 0 8 0 1,987 32 dash
17 no-host bin-true 735,429 0 0 0 8 0 1,996 306 osh-cpython
25 no-host bin-true 128,222 0 0 0 16 0 1,988 75 osh-native
2 no-host configure.cpython 2,223,257 0 0 0 32,928 0 14,473 1,325 bash
10 no-host configure.cpython 2,246,097 0 0 0 32,992 0 14,571 1,322 dash
18 no-host configure.cpython 6,125,611 0 0 0 27,512 0 13,103 1,264 osh-cpython
26 no-host configure.cpython 2,247,416 0 0 0 27,520 0 13,460 1,155 osh-native
4 no-host configure.ocaml 410,599 0 0 0 5,120 0 1,949 161 bash
12 no-host configure.ocaml 390,538 0 0 0 5,112 0 1,907 156 dash
20 no-host configure.ocaml 639,663 0 0 0 5,112 0 1,886 172 osh-cpython
28 no-host configure.ocaml 415,214 0 0 0 5,120 0 1,962 123 osh-native
5 no-host configure.tcc 6,561 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 25,773 0 0 0 96 0 67 7 osh-cpython
29 no-host configure.tcc 7,486 0 0 0 104 0 61 3 osh-native
3 no-host configure.util-linux 2,094,936 0 0 0 42,400 0 18,583 1,019 bash
11 no-host configure.util-linux 2,256,508 1 0 0 42,584 0 17,417 1,141 dash
19 no-host configure.util-linux 5,656,193 11 0 0 39,120 0 18,182 1,405 osh-cpython
27 no-host configure.util-linux 2,076,310 2 0 0 39,128 0 18,412 1,167 osh-native
6 no-host configure.yash 255,722 0 0 0 4,120 0 869 100 bash
14 no-host configure.yash 244,681 0 0 0 3,720 0 866 86 dash
22 no-host configure.yash 388,914 0 0 0 3,728 0 875 99 osh-cpython
30 no-host configure.yash 259,623 0 0 0 3,736 0 872 96 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,652 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1f4210f1
dash dash-308ec8e6
osh-cpython osh-9ec6ee38
osh-native osh-552a5276
host label host id
no-host no-host-e54d7702