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 9 457 23 23.83 1.19
bin-true no-host 682 544 2,256 817 3.31 1.20
configure.cpython no-host 15,294 15,276 28,766 15,526 1.88 1.02
configure.ocaml no-host 3,879 3,761 4,674 3,884 1.20 1.00
configure.tcc no-host 48 41 197 52 4.09 1.07
configure.util-linux no-host 14,151 15,044 31,762 14,767 2.24 1.04
configure.yash no-host 1,858 1,782 2,499 1,884 1.34 1.01
hello-world no-host 2 1 49 3 30.38 1.79

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,530 1,110 23,196 3,230 9.17 1.28
bin-true no-host 107,343 67,480 751,434 128,135 7.00 1.19
configure.cpython no-host 2,226,091 2,250,206 6,113,560 2,240,853 2.75 1.01
configure.ocaml no-host 410,278 391,524 636,724 413,627 1.55 1.01
configure.tcc no-host 6,547 5,468 23,220 6,986 3.55 1.07
configure.util-linux no-host 2,102,713 2,268,157 5,307,008 2,009,778 2.52 0.96
configure.yash no-host 256,763 245,132 385,256 258,196 1.50 1.01
hello-world no-host 151 82 3,660 344 24.24 2.28

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.2 3.4 21.8 8.9 5.19 2.12
bin-true no-host 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 27.5 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.4 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.4 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.5 24.4 24.2 1.00 0.99
hello-world no-host 2.8 1.4 17.2 6.0 6.24 2.19

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.3 6.0 3,720 3,720 0 684 1,872 1,164 2 0 50,000 0
bin-true no-host 817 1 2 2.7 8.1 154,685 12,990 2,797 11,737 78,341 64,607 5,012 3 50,000 0
configure.cpython no-host 15,526 1 62 15.8 27.5 1,772,601 49,195 28,506 101,770 908,048 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,767 3 63 22.2 30.1 2,703,265 44,764 65,790 126,121 1,320,492 1,256,652 49,081 41 131,580 1
configure.ocaml no-host 3,884 1 2 2.7 20.4 150,027 11,043 5,136 8,602 71,626 69,799 2,680 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.4 30,520 30,520 0 1,599 14,796 14,125 350 0 50,000 0
configure.yash no-host 1,884 1 2 2.6 24.2 139,684 7,962 6,598 7,554 70,298 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,263 64,453 42,661 4,609 54,541 57,113 478 3 85,322 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 15 4 4.2 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 457 396 64 21.8 osh-cpython
31 no-host abuild-print-help 23 14 10 8.9 osh-native
1 no-host bin-true 682 499 216 2.9 bash
9 no-host bin-true 544 414 138 1.4 dash
17 no-host bin-true 2,256 1,478 1,034 17.3 osh-cpython
25 no-host bin-true 817 557 274 8.1 osh-native
2 no-host configure.cpython 15,294 9,109 6,580 27.5 bash
10 no-host configure.cpython 15,276 9,236 6,456 27.4 dash
18 no-host configure.cpython 28,766 17,369 13,236 27.5 osh-cpython
26 no-host configure.cpython 15,526 9,133 6,662 27.5 osh-native
4 no-host configure.ocaml 3,879 1,642 1,259 20.6 bash
12 no-host configure.ocaml 3,761 1,615 1,164 20.6 dash
20 no-host configure.ocaml 4,674 2,166 1,709 20.6 osh-cpython
28 no-host configure.ocaml 3,884 1,673 1,247 20.4 osh-native
5 no-host configure.tcc 48 26 22 19.4 bash
13 no-host configure.tcc 41 25 16 19.4 dash
21 no-host configure.tcc 197 152 49 19.4 osh-cpython
29 no-host configure.tcc 52 35 17 19.4 osh-native
3 no-host configure.util-linux 14,151 8,827 5,801 30.1 bash
11 no-host configure.util-linux 15,044 9,195 6,345 30.4 dash
19 no-host configure.util-linux 31,762 20,952 11,915 30.1 osh-cpython
27 no-host configure.util-linux 14,767 8,774 6,190 30.1 osh-native
6 no-host configure.yash 1,858 1,068 798 24.4 bash
14 no-host configure.yash 1,782 1,046 739 24.5 dash
22 no-host configure.yash 2,499 1,481 1,058 24.4 osh-cpython
30 no-host configure.yash 1,884 1,090 796 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 29 20 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,530 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,196 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,230 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,343 0 0 0 8 0 1,986 45 bash
9 no-host bin-true 67,480 0 0 0 8 0 1,988 141 dash
17 no-host bin-true 751,434 0 0 0 8 0 1,999 383 osh-cpython
25 no-host bin-true 128,135 0 0 0 16 0 1,991 58 osh-native
2 no-host configure.cpython 2,226,091 0 0 0 32,928 0 14,453 1,068 bash
10 no-host configure.cpython 2,250,206 0 0 0 32,992 0 14,643 1,088 dash
18 no-host configure.cpython 6,113,560 0 0 0 27,512 0 13,259 1,135 osh-cpython
26 no-host configure.cpython 2,240,853 0 0 0 27,520 0 13,250 963 osh-native
4 no-host configure.ocaml 410,278 0 0 0 5,120 0 1,962 141 bash
12 no-host configure.ocaml 391,524 0 0 0 5,112 0 1,936 161 dash
20 no-host configure.ocaml 636,724 0 0 0 5,112 0 1,864 184 osh-cpython
28 no-host configure.ocaml 413,627 0 0 0 5,120 0 1,925 180 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,220 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 46 47 osh-native
3 no-host configure.util-linux 2,102,713 1 0 0 42,408 0 18,603 1,011 bash
11 no-host configure.util-linux 2,268,157 2 0 0 42,592 0 17,539 1,055 dash
19 no-host configure.util-linux 5,307,008 9 0 0 39,136 0 17,072 1,436 osh-cpython
27 no-host configure.util-linux 2,009,778 0 0 0 39,120 0 17,028 969 osh-native
6 no-host configure.yash 256,763 0 0 0 4,120 0 867 109 bash
14 no-host configure.yash 245,132 0 0 0 3,720 0 873 94 dash
22 no-host configure.yash 385,256 0 0 0 3,728 0 852 98 osh-cpython
30 no-host configure.yash 258,196 0 0 0 3,736 0 854 108 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,660 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-8fe7ee56
dash dash-308ec8e6
osh-cpython osh-92aa5551
osh-native osh-1016bb73
host label host id
no-host no-host-13226fd6