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 454 22 23.60 1.15
bin-true no-host 678 539 2,220 821 3.27 1.21
configure.cpython no-host 14,988 15,077 28,347 15,177 1.89 1.01
configure.ocaml no-host 3,811 3,718 4,598 3,819 1.21 1.00
configure.tcc no-host 47 42 190 49 4.03 1.03
configure.util-linux no-host 13,963 14,810 30,959 14,386 2.22 1.03
configure.yash no-host 1,809 1,773 2,432 1,826 1.34 1.01
hello-world no-host 2 1 48 3 32.08 1.92

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,126 23,183 3,171 9.10 1.24
bin-true no-host 109,328 66,435 753,545 127,224 6.89 1.16
configure.cpython no-host 2,223,790 2,243,381 6,130,789 2,231,733 2.76 1.00
configure.ocaml no-host 410,507 391,254 637,923 413,054 1.55 1.01
configure.tcc no-host 6,562 5,489 23,193 6,975 3.53 1.06
configure.util-linux no-host 2,102,156 2,271,184 5,311,323 2,011,158 2.53 0.96
configure.yash no-host 256,591 245,053 384,586 258,863 1.50 1.01
hello-world no-host 155 81 3,654 342 23.57 2.21

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.6 8.9 4.85 2.00
bin-true no-host 2.9 1.6 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.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.0 30.0 30.3 0.99 1.00
configure.yash no-host 24.4 24.4 24.1 24.2 0.99 0.99
hello-world no-host 2.9 1.4 17.3 6.3 6.00 2.18

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.3 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 821 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 15,177 1 60 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 14,386 2 58 22.2 30.3 2,703,259 44,760 65,806 126,121 1,320,486 1,256,652 49,081 41 131,612 1
configure.ocaml no-host 3,819 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 49 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,826 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 22 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 19 14 6 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 454 396 61 21.6 osh-cpython
31 no-host abuild-print-help 22 19 3 8.9 osh-native
1 no-host bin-true 678 507 205 2.9 bash
9 no-host bin-true 539 402 145 1.6 dash
17 no-host bin-true 2,220 1,451 1,019 17.3 osh-cpython
25 no-host bin-true 821 596 239 8.0 osh-native
2 no-host configure.cpython 14,988 8,860 6,524 27.4 bash
10 no-host configure.cpython 15,077 9,164 6,320 27.4 dash
18 no-host configure.cpython 28,347 17,321 12,854 27.4 osh-cpython
26 no-host configure.cpython 15,177 8,968 6,474 27.4 osh-native
4 no-host configure.ocaml 3,811 1,629 1,217 20.6 bash
12 no-host configure.ocaml 3,718 1,584 1,153 20.6 dash
20 no-host configure.ocaml 4,598 2,169 1,628 20.4 osh-cpython
28 no-host configure.ocaml 3,819 1,634 1,224 20.6 osh-native
5 no-host configure.tcc 47 33 15 19.3 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 190 123 71 19.3 osh-cpython
29 no-host configure.tcc 49 37 11 19.4 osh-native
3 no-host configure.util-linux 13,963 8,911 5,526 30.3 bash
11 no-host configure.util-linux 14,810 9,040 6,263 30.0 dash
19 no-host configure.util-linux 30,959 20,523 11,503 30.0 osh-cpython
27 no-host configure.util-linux 14,386 8,663 5,905 30.3 osh-native
6 no-host configure.yash 1,809 1,045 772 24.4 bash
14 no-host configure.yash 1,773 1,013 761 24.4 dash
22 no-host configure.yash 2,432 1,509 964 24.1 osh-cpython
30 no-host configure.yash 1,826 1,021 809 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 32 16 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 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 1 bash
15 no-host abuild-print-help 1,126 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,183 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 40 3 osh-native
1 no-host bin-true 109,328 0 0 0 8 0 1,987 56 bash
9 no-host bin-true 66,435 0 0 0 8 0 1,985 44 dash
17 no-host bin-true 753,545 0 0 0 8 0 1,996 145 osh-cpython
25 no-host bin-true 127,224 0 0 0 16 0 1,991 116 osh-native
2 no-host configure.cpython 2,223,790 1 0 0 32,928 0 14,486 1,130 bash
10 no-host configure.cpython 2,243,381 0 0 0 32,992 0 14,597 1,041 dash
18 no-host configure.cpython 6,130,789 3 0 0 27,512 0 13,218 1,227 osh-cpython
26 no-host configure.cpython 2,231,733 0 0 0 27,520 0 13,383 971 osh-native
4 no-host configure.ocaml 410,507 0 0 0 5,120 0 1,962 165 bash
12 no-host configure.ocaml 391,254 0 0 0 5,112 0 1,940 162 dash
20 no-host configure.ocaml 637,923 0 0 0 5,112 0 1,856 165 osh-cpython
28 no-host configure.ocaml 413,054 0 0 0 5,120 0 1,928 160 osh-native
5 no-host configure.tcc 6,562 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,193 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,975 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,102,156 0 0 0 42,400 0 18,622 1,009 bash
11 no-host configure.util-linux 2,271,184 0 0 0 42,584 0 17,422 1,273 dash
19 no-host configure.util-linux 5,311,323 11 0 0 39,120 0 17,085 1,195 osh-cpython
27 no-host configure.util-linux 2,011,158 2 0 0 39,120 0 17,021 920 osh-native
6 no-host configure.yash 256,591 0 0 0 4,120 0 871 76 bash
14 no-host configure.yash 245,053 0 0 0 3,720 0 871 87 dash
22 no-host configure.yash 384,586 0 0 0 3,728 0 861 86 osh-cpython
30 no-host configure.yash 258,863 0 0 0 3,736 0 853 95 osh-native
0 no-host hello-world 155 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,654 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-c0f31c92
dash dash-308ec8e6
osh-cpython osh-52505042
osh-native osh-b6524edd
host label host id
no-host no-host-e54d7702