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 460 22 24.15 1.16
bin-true no-host 673 547 2,209 819 3.28 1.22
configure.cpython no-host 14,941 15,049 28,540 15,193 1.91 1.02
configure.ocaml no-host 3,801 3,719 4,715 3,835 1.24 1.01
configure.tcc no-host 48 41 194 48 4.03 1.00
configure.util-linux no-host 14,149 15,018 31,437 14,342 2.22 1.01
configure.yash no-host 1,850 1,756 2,490 1,825 1.35 0.99
hello-world no-host 1 1 47 3 31.70 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,544 1,085 22,856 3,174 8.98 1.25
bin-true no-host 104,338 65,422 728,806 127,182 6.99 1.22
configure.cpython no-host 2,219,189 2,240,976 6,047,522 2,234,177 2.73 1.01
configure.ocaml no-host 410,606 390,799 633,655 413,278 1.54 1.01
configure.tcc no-host 6,553 5,483 22,912 6,963 3.50 1.06
configure.util-linux no-host 2,096,114 2,259,948 5,267,689 2,012,619 2.51 0.96
configure.yash no-host 256,835 244,522 383,633 258,327 1.49 1.01
hello-world no-host 152 82 3,644 341 23.97 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.5 3.5 21.6 8.9 4.85 2.00
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.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.4 30.0 1.01 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.6 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.2 6.0 3,710 3,710 0 681 1,865 1,164 2 0 50,000 0
bin-true no-host 819 1 2 2.7 8.0 154,656 12,889 2,791 11,730 78,317 64,609 5,012 3 50,000 0
configure.cpython no-host 15,193 1 59 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 14,342 3 60 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,835 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 48 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,825 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 22 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 19 6 14 4.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 460 401 62 21.6 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
1 no-host bin-true 673 504 202 2.9 bash
9 no-host bin-true 547 431 126 1.3 dash
17 no-host bin-true 2,209 1,481 978 17.3 osh-cpython
25 no-host bin-true 819 583 251 8.0 osh-native
2 no-host configure.cpython 14,941 9,150 6,192 27.4 bash
10 no-host configure.cpython 15,049 9,117 6,351 27.4 dash
18 no-host configure.cpython 28,540 17,692 12,641 27.4 osh-cpython
26 no-host configure.cpython 15,193 8,963 6,497 27.5 osh-native
4 no-host configure.ocaml 3,801 1,614 1,219 20.4 bash
12 no-host configure.ocaml 3,719 1,559 1,179 20.6 dash
20 no-host configure.ocaml 4,715 2,297 1,625 20.6 osh-cpython
28 no-host configure.ocaml 3,835 1,636 1,238 20.6 osh-native
5 no-host configure.tcc 48 27 21 19.3 bash
13 no-host configure.tcc 41 27 14 19.4 dash
21 no-host configure.tcc 194 139 58 19.3 osh-cpython
29 no-host configure.tcc 48 36 12 19.4 osh-native
3 no-host configure.util-linux 14,149 8,870 5,753 30.1 bash
11 no-host configure.util-linux 15,018 9,153 6,352 30.1 dash
19 no-host configure.util-linux 31,437 21,154 11,335 30.4 osh-cpython
27 no-host configure.util-linux 14,342 8,610 5,932 30.0 osh-native
6 no-host configure.yash 1,850 1,037 821 24.4 bash
14 no-host configure.yash 1,756 1,032 727 24.5 dash
22 no-host configure.yash 2,490 1,520 1,013 24.4 osh-cpython
30 no-host configure.yash 1,825 1,067 761 24.2 osh-native
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 18 30 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,544 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,856 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,174 0 0 0 16 0 41 4 osh-native
1 no-host bin-true 104,338 0 0 0 8 0 1,989 68 bash
9 no-host bin-true 65,422 0 0 0 8 0 1,988 100 dash
17 no-host bin-true 728,806 0 0 0 8 0 1,994 160 osh-cpython
25 no-host bin-true 127,182 0 0 0 16 0 1,989 251 osh-native
2 no-host configure.cpython 2,219,189 0 0 0 32,928 0 14,428 1,090 bash
10 no-host configure.cpython 2,240,976 0 0 0 32,992 0 14,539 1,041 dash
18 no-host configure.cpython 6,047,522 4 0 0 27,512 0 13,270 1,393 osh-cpython
26 no-host configure.cpython 2,234,177 1 0 0 27,520 0 13,330 1,002 osh-native
4 no-host configure.ocaml 410,606 0 0 0 5,120 0 1,966 151 bash
12 no-host configure.ocaml 390,799 0 0 0 5,112 0 1,873 174 dash
20 no-host configure.ocaml 633,655 0 0 0 5,112 0 1,864 185 osh-cpython
28 no-host configure.ocaml 413,278 0 0 0 5,120 0 1,936 163 osh-native
5 no-host configure.tcc 6,553 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 22,912 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,096,114 0 0 0 42,408 0 18,585 1,133 bash
11 no-host configure.util-linux 2,259,948 1 0 0 42,592 0 17,454 1,145 dash
19 no-host configure.util-linux 5,267,689 6 0 0 39,120 0 17,104 1,278 osh-cpython
27 no-host configure.util-linux 2,012,619 2 0 0 39,128 0 17,058 917 osh-native
6 no-host configure.yash 256,835 0 0 0 4,120 0 870 103 bash
14 no-host configure.yash 244,522 0 0 0 3,720 0 867 81 dash
22 no-host configure.yash 383,633 0 0 0 3,728 0 854 110 osh-cpython
30 no-host configure.yash 258,327 0 0 0 3,736 0 854 71 osh-native
0 no-host hello-world 152 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,644 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-f26d3719
dash dash-308ec8e6
osh-cpython osh-eaafdf5b
osh-native osh-62727a32
host label host id
no-host no-host-e54d7702