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 443 23 22.82 1.18
bin-true no-host 675 542 2,211 833 3.28 1.23
configure.cpython no-host 15,019 15,071 28,409 15,355 1.89 1.02
configure.ocaml no-host 3,810 3,733 4,591 3,846 1.21 1.01
configure.tcc no-host 48 41 192 49 4.03 1.03
configure.util-linux no-host 14,262 14,900 31,143 14,497 2.18 1.02
configure.yash no-host 1,808 1,761 2,432 1,876 1.35 1.04
hello-world no-host 1 1 47 3 31.46 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,553 1,105 23,064 3,192 9.03 1.25
bin-true no-host 105,405 66,394 744,972 130,633 7.07 1.24
configure.cpython no-host 2,227,518 2,238,491 6,065,473 2,246,967 2.72 1.01
configure.ocaml no-host 410,374 390,705 634,436 413,361 1.55 1.01
configure.tcc no-host 6,546 5,480 22,994 6,981 3.51 1.07
configure.util-linux no-host 2,103,535 2,259,401 5,294,850 2,020,802 2.52 0.96
configure.yash no-host 256,304 244,288 382,895 258,117 1.49 1.01
hello-world no-host 153 84 3,630 340 23.73 2.22

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.5 8.9 4.82 2.00
bin-true no-host 2.9 1.4 17.0 7.9 5.90 2.73
configure.cpython no-host 27.3 27.5 27.3 27.1 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.5 19.3 19.4 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.5 1.00 1.01
hello-world no-host 2.8 1.6 17.2 6.2 6.24 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,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 833 1 2 2.7 7.9 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,355 1 63 15.9 27.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,497 3 61 22.2 30.1 2,695,085 29,056 65,754 126,121 1,312,366 1,256,598 49,081 41 131,508 1
configure.ocaml no-host 3,846 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 49 0 0 1.3 19.3 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,876 1 2 2.6 24.5 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 23 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 12 8 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 443 408 38 21.5 osh-cpython
31 no-host abuild-print-help 23 19 4 8.9 osh-native
1 no-host bin-true 675 501 206 2.9 bash
9 no-host bin-true 542 427 126 1.4 dash
17 no-host bin-true 2,211 1,494 963 17.0 osh-cpython
25 no-host bin-true 833 572 277 7.9 osh-native
2 no-host configure.cpython 15,019 8,946 6,478 27.3 bash
10 no-host configure.cpython 15,071 9,141 6,363 27.5 dash
18 no-host configure.cpython 28,409 17,363 12,838 27.3 osh-cpython
26 no-host configure.cpython 15,355 9,076 6,548 27.1 osh-native
4 no-host configure.ocaml 3,810 1,692 1,153 20.6 bash
12 no-host configure.ocaml 3,733 1,554 1,198 20.6 dash
20 no-host configure.ocaml 4,591 2,253 1,537 20.6 osh-cpython
28 no-host configure.ocaml 3,846 1,593 1,289 20.6 osh-native
5 no-host configure.tcc 48 31 17 19.5 bash
13 no-host configure.tcc 41 26 16 19.3 dash
21 no-host configure.tcc 192 146 49 19.4 osh-cpython
29 no-host configure.tcc 49 33 17 19.3 osh-native
3 no-host configure.util-linux 14,262 8,828 5,907 30.3 bash
11 no-host configure.util-linux 14,900 9,070 6,331 30.1 dash
19 no-host configure.util-linux 31,143 20,891 11,312 30.1 osh-cpython
27 no-host configure.util-linux 14,497 8,766 5,928 30.1 osh-native
6 no-host configure.yash 1,808 1,081 735 24.4 bash
14 no-host configure.yash 1,761 1,008 756 24.4 dash
22 no-host configure.yash 2,432 1,472 1,001 24.4 osh-cpython
30 no-host configure.yash 1,876 1,107 773 24.5 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 35 11 17.2 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,553 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,064 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 41 6 osh-native
1 no-host bin-true 105,405 0 0 0 8 0 1,992 73 bash
9 no-host bin-true 66,394 0 0 0 8 0 1,991 43 dash
17 no-host bin-true 744,972 0 0 0 8 0 1,988 131 osh-cpython
25 no-host bin-true 130,633 0 0 0 16 0 1,993 118 osh-native
2 no-host configure.cpython 2,227,518 1 0 0 32,928 0 14,464 1,128 bash
10 no-host configure.cpython 2,238,491 0 0 0 32,992 0 14,749 928 dash
18 no-host configure.cpython 6,065,473 0 0 0 27,512 0 13,372 1,128 osh-cpython
26 no-host configure.cpython 2,246,967 1 0 0 27,520 0 13,260 1,015 osh-native
4 no-host configure.ocaml 410,374 0 0 0 5,120 0 1,961 156 bash
12 no-host configure.ocaml 390,705 0 0 0 5,112 0 1,885 172 dash
20 no-host configure.ocaml 634,436 1 0 0 5,112 0 1,852 212 osh-cpython
28 no-host configure.ocaml 413,361 0 0 0 5,120 0 1,929 164 osh-native
5 no-host configure.tcc 6,546 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,994 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,981 0 0 0 104 0 47 14 osh-native
3 no-host configure.util-linux 2,103,535 2 0 0 42,400 0 18,524 1,072 bash
11 no-host configure.util-linux 2,259,401 2 0 0 42,584 0 17,259 1,226 dash
19 no-host configure.util-linux 5,294,850 10 0 0 39,112 0 17,003 1,219 osh-cpython
27 no-host configure.util-linux 2,020,802 0 0 0 39,120 0 17,052 1,009 osh-native
6 no-host configure.yash 256,304 0 0 0 4,120 0 873 68 bash
14 no-host configure.yash 244,288 0 0 0 3,720 0 872 88 dash
22 no-host configure.yash 382,895 0 0 0 3,728 0 859 96 osh-cpython
30 no-host configure.yash 258,117 0 0 0 3,736 0 855 79 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,630 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-af933c9c
dash dash-308ec8e6
osh-cpython osh-4e7b8823
osh-native osh-33587f20
host label host id
no-host no-host-f581f4dd