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 21 10 451 24 21.08 1.10
bin-true no-host 696 562 2,233 866 3.21 1.24
configure.cpython no-host 15,689 15,744 29,485 15,890 1.88 1.01
configure.ocaml no-host 3,961 3,802 4,744 3,985 1.20 1.01
configure.tcc no-host 49 42 195 51 4.00 1.04
configure.util-linux no-host 14,737 15,214 32,176 15,098 2.18 1.02
configure.yash no-host 1,909 1,795 2,561 1,903 1.34 1.00
hello-world no-host 2 1 49 3 29.42 1.80

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,522 1,096 22,893 3,221 9.08 1.28
bin-true no-host 105,366 66,495 724,813 128,191 6.88 1.22
configure.cpython no-host 2,217,889 2,246,067 6,042,900 2,235,107 2.72 1.01
configure.ocaml no-host 410,630 391,277 632,913 413,463 1.54 1.01
configure.tcc no-host 6,558 5,473 22,916 6,988 3.49 1.07
configure.util-linux no-host 2,099,681 2,257,084 5,259,332 2,016,843 2.50 0.96
configure.yash no-host 256,843 244,056 383,824 258,678 1.49 1.01
hello-world no-host 151 82 3,650 338 24.17 2.24

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.2 8.9 4.91 2.06
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.4 27.3 27.4 27.5 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.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.0 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.2 1.00 1.00
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,710 3,710 0 681 1,865 1,164 2 0 50,000 0
bin-true no-host 866 1 2 2.7 7.9 154,656 12,889 2,791 11,730 78,317 64,609 5,012 3 50,000 0
configure.cpython no-host 15,890 2 73 15.9 27.5 1,769,350 44,560 28,499 101,923 904,763 762,664 42,399 60 50,000 0
configure.util-linux no-host 15,098 3 68 22.2 30.0 2,698,087 29,091 65,783 126,121 1,315,368 1,256,598 49,081 41 131,566 1
configure.ocaml no-host 3,985 1 2 2.7 20.6 149,273 11,026 5,129 8,602 71,056 69,615 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,424 30,424 0 1,599 14,700 14,125 350 0 50,000 0
configure.yash no-host 1,903 1 2 2.6 24.2 139,384 7,140 6,531 7,554 69,998 61,832 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 8.9 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 21 16 6 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 451 409 45 21.2 osh-cpython
31 no-host abuild-print-help 24 14 10 8.9 osh-native
1 no-host bin-true 696 500 227 2.9 bash
9 no-host bin-true 562 427 148 1.4 dash
17 no-host bin-true 2,233 1,498 985 17.3 osh-cpython
25 no-host bin-true 866 593 287 7.9 osh-native
2 no-host configure.cpython 15,689 9,414 6,701 27.4 bash
10 no-host configure.cpython 15,744 9,711 6,483 27.3 dash
18 no-host configure.cpython 29,485 17,987 13,306 27.4 osh-cpython
26 no-host configure.cpython 15,890 9,466 6,716 27.5 osh-native
4 no-host configure.ocaml 3,961 1,732 1,273 20.6 bash
12 no-host configure.ocaml 3,802 1,688 1,136 20.6 dash
20 no-host configure.ocaml 4,744 2,438 1,515 20.4 osh-cpython
28 no-host configure.ocaml 3,985 1,715 1,310 20.6 osh-native
5 no-host configure.tcc 49 38 12 19.3 bash
13 no-host configure.tcc 42 21 21 19.3 dash
21 no-host configure.tcc 195 156 42 19.4 osh-cpython
29 no-host configure.tcc 51 32 19 19.4 osh-native
3 no-host configure.util-linux 14,737 9,265 5,991 30.1 bash
11 no-host configure.util-linux 15,214 9,325 6,403 30.3 dash
19 no-host configure.util-linux 32,176 21,477 11,773 30.0 osh-cpython
27 no-host configure.util-linux 15,098 9,203 6,104 30.0 osh-native
6 no-host configure.yash 1,909 1,114 804 24.2 bash
14 no-host configure.yash 1,795 1,084 715 24.4 dash
22 no-host configure.yash 2,561 1,566 1,039 24.2 osh-cpython
30 no-host configure.yash 1,903 1,050 857 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 27 22 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,522 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,893 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,221 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 105,366 0 0 0 8 0 1,993 145 bash
9 no-host bin-true 66,495 0 0 0 8 0 1,986 119 dash
17 no-host bin-true 724,813 0 0 0 8 0 2,001 109 osh-cpython
25 no-host bin-true 128,191 0 0 0 16 0 1,995 97 osh-native
2 no-host configure.cpython 2,217,889 0 0 0 32,928 0 14,405 1,089 bash
10 no-host configure.cpython 2,246,067 0 0 0 32,992 0 14,551 1,224 dash
18 no-host configure.cpython 6,042,900 1 0 0 27,512 0 13,264 1,167 osh-cpython
26 no-host configure.cpython 2,235,107 0 0 0 27,520 0 13,357 1,004 osh-native
4 no-host configure.ocaml 410,630 0 0 0 5,120 0 1,949 155 bash
12 no-host configure.ocaml 391,277 0 0 0 5,112 0 1,943 155 dash
20 no-host configure.ocaml 632,913 0 0 0 5,112 0 1,885 188 osh-cpython
28 no-host configure.ocaml 413,463 0 0 0 5,120 0 1,933 175 osh-native
5 no-host configure.tcc 6,558 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 22,916 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,988 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,099,681 1 0 0 42,400 0 18,444 1,194 bash
11 no-host configure.util-linux 2,257,084 0 0 0 42,592 0 17,352 1,073 dash
19 no-host configure.util-linux 5,259,332 8 0 0 39,136 0 16,999 1,363 osh-cpython
27 no-host configure.util-linux 2,016,843 2 0 0 39,128 0 17,043 1,153 osh-native
6 no-host configure.yash 256,843 0 0 0 4,120 0 873 108 bash
14 no-host configure.yash 244,056 0 0 0 3,720 0 867 89 dash
22 no-host configure.yash 383,824 0 0 0 3,728 0 860 106 osh-cpython
30 no-host configure.yash 258,678 0 0 0 3,736 0 853 91 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,650 0 0 0 8 0 6 6 osh-cpython
24 no-host hello-world 338 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e571c05e
dash dash-308ec8e6
osh-cpython osh-0a0e7187
osh-native osh-08252bc5
host label host id
no-host no-host-e54d7702