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 460 23 22.85 1.16
bin-true no-host 720 581 2,349 869 3.26 1.21
configure.cpython no-host 15,814 15,930 30,142 16,149 1.91 1.02
configure.ocaml no-host 3,956 3,891 4,797 3,965 1.21 1.00
configure.tcc no-host 52 46 203 53 3.95 1.02
configure.util-linux no-host 14,803 15,663 32,439 15,264 2.19 1.03
configure.yash no-host 1,905 1,862 2,561 1,927 1.34 1.01
hello-world no-host 2 1 49 3 31.76 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,548 1,106 23,255 3,237 9.13 1.27
bin-true no-host 106,331 65,525 752,936 128,136 7.08 1.21
configure.cpython no-host 2,225,642 2,242,402 6,144,188 2,232,442 2.76 1.00
configure.ocaml no-host 410,183 391,553 637,374 413,958 1.55 1.01
configure.tcc no-host 6,527 5,465 23,185 6,976 3.55 1.07
configure.util-linux no-host 2,096,619 2,256,723 5,321,130 2,019,807 2.54 0.96
configure.yash no-host 256,294 244,548 384,773 258,454 1.50 1.01
hello-world no-host 153 83 3,655 345 23.89 2.25

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.8 8.9 5.03 2.06
bin-true no-host 2.9 1.3 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.4 27.4 27.4 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.4 19.3 19.1 19.4 0.99 1.00
configure.util-linux no-host 30.4 30.0 30.3 30.0 1.00 0.99
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.6 17.2 6.0 5.95 2.09

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.0 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 869 1 2 2.7 8.0 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 16,149 2 73 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,264 3 68 22.2 30.0 2,703,368 44,760 65,786 126,155 1,320,522 1,256,691 49,086 41 131,572 1
configure.ocaml no-host 3,965 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 53 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,927 1 2 2.6 24.2 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,257 64,449 42,657 4,609 54,535 57,113 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 7 4.3 bash
15 no-host abuild-print-help 10 5 6 3.4 dash
23 no-host abuild-print-help 460 412 52 21.8 osh-cpython
31 no-host abuild-print-help 23 19 5 8.9 osh-native
1 no-host bin-true 720 517 236 2.9 bash
9 no-host bin-true 581 452 137 1.3 dash
17 no-host bin-true 2,349 1,541 1,069 17.3 osh-cpython
25 no-host bin-true 869 580 306 8.0 osh-native
2 no-host configure.cpython 15,814 9,855 6,379 27.4 bash
10 no-host configure.cpython 15,930 9,952 6,429 27.4 dash
18 no-host configure.cpython 30,142 18,521 13,551 27.4 osh-cpython
26 no-host configure.cpython 16,149 9,728 6,726 27.4 osh-native
4 no-host configure.ocaml 3,956 1,741 1,262 20.6 bash
12 no-host configure.ocaml 3,891 1,757 1,154 20.6 dash
20 no-host configure.ocaml 4,797 2,402 1,609 20.6 osh-cpython
28 no-host configure.ocaml 3,965 1,767 1,242 20.6 osh-native
5 no-host configure.tcc 52 47 5 19.4 bash
13 no-host configure.tcc 46 30 17 19.3 dash
21 no-host configure.tcc 203 138 69 19.1 osh-cpython
29 no-host configure.tcc 53 27 26 19.4 osh-native
3 no-host configure.util-linux 14,803 9,491 5,841 30.4 bash
11 no-host configure.util-linux 15,663 9,550 6,652 30.0 dash
19 no-host configure.util-linux 32,439 21,851 11,708 30.3 osh-cpython
27 no-host configure.util-linux 15,264 9,229 6,237 30.0 osh-native
6 no-host configure.yash 1,905 1,159 753 24.4 bash
14 no-host configure.yash 1,862 1,131 736 24.2 dash
22 no-host configure.yash 2,561 1,521 1,085 24.4 osh-cpython
30 no-host configure.yash 1,927 1,147 784 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 41 8 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,548 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,255 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,237 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,331 0 0 0 8 0 1,992 179 bash
9 no-host bin-true 65,525 0 0 0 8 0 1,994 81 dash
17 no-host bin-true 752,936 0 0 0 8 0 1,986 247 osh-cpython
25 no-host bin-true 128,136 0 0 0 16 0 1,988 57 osh-native
2 no-host configure.cpython 2,225,642 0 0 0 32,928 0 14,445 1,069 bash
10 no-host configure.cpython 2,242,402 0 0 0 32,992 0 14,577 1,114 dash
18 no-host configure.cpython 6,144,188 1 0 0 27,512 0 13,229 1,298 osh-cpython
26 no-host configure.cpython 2,232,442 0 0 0 27,520 0 13,412 1,215 osh-native
4 no-host configure.ocaml 410,183 0 0 0 5,120 0 1,945 163 bash
12 no-host configure.ocaml 391,553 0 0 0 5,112 0 1,944 150 dash
20 no-host configure.ocaml 637,374 0 0 0 5,112 0 1,879 185 osh-cpython
28 no-host configure.ocaml 413,958 0 0 0 5,120 0 1,934 166 osh-native
5 no-host configure.tcc 6,527 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,465 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,185 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,976 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,096,619 0 0 0 42,400 0 18,682 1,123 bash
11 no-host configure.util-linux 2,256,723 0 0 0 42,592 0 17,515 1,199 dash
19 no-host configure.util-linux 5,321,130 9 0 0 39,136 0 17,032 1,211 osh-cpython
27 no-host configure.util-linux 2,019,807 0 0 0 39,144 0 17,099 1,055 osh-native
6 no-host configure.yash 256,294 0 0 0 4,120 0 867 101 bash
14 no-host configure.yash 244,548 0 0 0 3,720 0 865 76 dash
22 no-host configure.yash 384,773 0 0 0 3,728 0 858 91 osh-cpython
30 no-host configure.yash 258,454 0 0 0 3,736 0 850 80 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,655 0 0 0 8 0 7 6 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-29aae0f0
dash dash-308ec8e6
osh-cpython osh-e2b0d256
osh-native osh-136c8326
host label host id
no-host no-host-e54d7702