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 473 23 24.44 1.19
bin-true no-host 679 554 2,297 831 3.38 1.22
configure.cpython no-host 15,543 15,342 29,607 15,635 1.90 1.01
configure.ocaml no-host 3,873 3,813 4,770 3,949 1.23 1.02
configure.tcc no-host 48 43 195 51 4.05 1.05
configure.util-linux no-host 14,258 15,191 32,394 14,828 2.27 1.04
configure.yash no-host 1,849 1,812 2,529 1,908 1.37 1.03
hello-world no-host 2 1 48 3 29.95 1.84

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,567 1,094 23,397 3,232 9.11 1.26
bin-true no-host 105,377 66,438 754,368 128,246 7.16 1.22
configure.cpython no-host 2,221,485 2,238,820 6,153,278 2,230,259 2.77 1.00
configure.ocaml no-host 410,740 390,789 639,083 412,826 1.56 1.01
configure.tcc no-host 6,584 5,470 23,177 6,970 3.52 1.06
configure.util-linux no-host 2,099,167 2,257,853 5,329,194 2,010,039 2.54 0.96
configure.yash no-host 254,546 244,676 385,221 258,717 1.51 1.02
hello-world no-host 152 84 3,653 346 24.03 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.5 3.5 21.6 8.8 4.85 1.97
bin-true no-host 2.9 1.4 17.2 8.0 5.95 2.77
configure.cpython no-host 27.4 27.3 27.5 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.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.0 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.6 17.2 6.3 6.24 2.29

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.3 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 831 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,635 1 64 15.8 27.4 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,828 3 63 22.2 30.3 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,949 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,908 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,265 64,454 42,662 4,609 54,543 57,113 478 3 85,324 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 9 8 2 3.5 dash
23 no-host abuild-print-help 473 430 46 21.6 osh-cpython
31 no-host abuild-print-help 23 18 5 8.8 osh-native
1 no-host bin-true 679 518 194 2.9 bash
9 no-host bin-true 554 426 135 1.4 dash
17 no-host bin-true 2,297 1,485 1,081 17.2 osh-cpython
25 no-host bin-true 831 590 255 8.0 osh-native
2 no-host configure.cpython 15,543 9,391 6,561 27.4 bash
10 no-host configure.cpython 15,342 9,135 6,627 27.3 dash
18 no-host configure.cpython 29,607 17,875 13,653 27.5 osh-cpython
26 no-host configure.cpython 15,635 9,180 6,728 27.4 osh-native
4 no-host configure.ocaml 3,873 1,622 1,291 20.6 bash
12 no-host configure.ocaml 3,813 1,546 1,281 20.6 dash
20 no-host configure.ocaml 4,770 2,260 1,719 20.6 osh-cpython
28 no-host configure.ocaml 3,949 1,620 1,367 20.6 osh-native
5 no-host configure.tcc 48 28 21 19.3 bash
13 no-host configure.tcc 43 26 17 19.4 dash
21 no-host configure.tcc 195 145 54 19.3 osh-cpython
29 no-host configure.tcc 51 35 16 19.4 osh-native
3 no-host configure.util-linux 14,258 8,973 5,759 30.1 bash
11 no-host configure.util-linux 15,191 9,314 6,374 30.0 dash
19 no-host configure.util-linux 32,394 21,488 12,055 30.3 osh-cpython
27 no-host configure.util-linux 14,828 8,761 6,263 30.3 osh-native
6 no-host configure.yash 1,849 1,025 831 24.4 bash
14 no-host configure.yash 1,812 1,002 815 24.4 dash
22 no-host configure.yash 2,529 1,487 1,087 24.4 osh-cpython
30 no-host configure.yash 1,908 1,073 839 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 32 16 17.2 osh-cpython
24 no-host hello-world 3 3 0 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,567 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,397 0 0 0 8 0 47 15 osh-cpython
31 no-host abuild-print-help 3,232 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 105,377 0 0 0 8 0 1,989 53 bash
9 no-host bin-true 66,438 0 0 0 8 0 1,985 64 dash
17 no-host bin-true 754,368 0 0 0 8 0 1,997 235 osh-cpython
25 no-host bin-true 128,246 0 0 0 16 0 1,993 120 osh-native
2 no-host configure.cpython 2,221,485 0 0 0 32,928 0 14,413 1,160 bash
10 no-host configure.cpython 2,238,820 0 0 0 32,992 0 14,610 1,239 dash
18 no-host configure.cpython 6,153,278 0 0 0 27,512 0 13,276 1,186 osh-cpython
26 no-host configure.cpython 2,230,259 0 0 0 27,520 0 13,261 994 osh-native
4 no-host configure.ocaml 410,740 0 0 0 5,120 0 1,945 201 bash
12 no-host configure.ocaml 390,789 0 0 0 5,112 0 1,921 156 dash
20 no-host configure.ocaml 639,083 1 0 0 5,112 0 1,856 174 osh-cpython
28 no-host configure.ocaml 412,826 0 0 0 5,120 0 1,930 168 osh-native
5 no-host configure.tcc 6,584 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,177 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 46 8 osh-native
3 no-host configure.util-linux 2,099,167 0 0 0 42,408 0 18,556 1,181 bash
11 no-host configure.util-linux 2,257,853 0 0 0 42,592 0 17,377 1,110 dash
19 no-host configure.util-linux 5,329,194 11 0 0 39,136 0 17,073 1,327 osh-cpython
27 no-host configure.util-linux 2,010,039 0 0 0 39,128 0 17,047 1,014 osh-native
6 no-host configure.yash 254,546 0 0 0 4,120 0 873 78 bash
14 no-host configure.yash 244,676 0 0 0 3,720 0 871 70 dash
22 no-host configure.yash 385,221 0 0 0 3,728 0 859 94 osh-cpython
30 no-host configure.yash 258,717 0 0 0 3,736 0 849 89 osh-native
0 no-host hello-world 152 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,653 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4a61a8bb
dash dash-308ec8e6
osh-cpython osh-c06e0b81
osh-native osh-1c3b7a3d
host label host id
no-host no-host-13226fd6