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.90 1.20
bin-true no-host 707 543 2,265 835 3.21 1.18
configure.cpython no-host 15,194 15,345 28,907 15,645 1.90 1.03
configure.ocaml no-host 3,839 3,793 4,769 3,859 1.24 1.00
configure.tcc no-host 48 42 201 49 4.21 1.03
configure.util-linux no-host 14,249 15,185 31,606 14,693 2.22 1.03
configure.yash no-host 1,837 1,800 2,531 1,854 1.38 1.01
hello-world no-host 2 1 50 3 31.79 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,542 1,128 23,254 3,227 9.15 1.27
bin-true no-host 107,298 67,440 753,912 129,236 7.03 1.20
configure.cpython no-host 2,223,407 2,241,615 6,140,421 2,228,438 2.76 1.00
configure.ocaml no-host 410,731 390,639 637,735 413,878 1.55 1.01
configure.tcc no-host 6,568 5,488 23,185 6,995 3.53 1.07
configure.util-linux no-host 2,106,101 2,258,893 5,320,807 2,016,132 2.53 0.96
configure.yash no-host 255,637 245,184 384,871 258,584 1.51 1.01
hello-world no-host 153 81 3,650 342 23.86 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.5 8.9 4.82 2.00
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.3 27.4 27.5 27.5 1.01 1.01
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.0 1.00 1.00
configure.yash no-host 24.4 24.1 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 17.3 6.2 6.00 2.14

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.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 835 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,645 1 65 15.8 27.5 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,693 3 62 22.2 30.0 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,859 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.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,854 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 19 18 1 4.5 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 457 407 53 21.5 osh-cpython
31 no-host abuild-print-help 23 17 7 8.9 osh-native
1 no-host bin-true 707 511 227 3.0 bash
9 no-host bin-true 543 426 127 1.4 dash
17 no-host bin-true 2,265 1,465 1,057 17.3 osh-cpython
25 no-host bin-true 835 596 252 8.0 osh-native
2 no-host configure.cpython 15,194 9,045 6,553 27.3 bash
10 no-host configure.cpython 15,345 9,242 6,528 27.4 dash
18 no-host configure.cpython 28,907 17,456 13,303 27.5 osh-cpython
26 no-host configure.cpython 15,645 9,171 6,747 27.5 osh-native
4 no-host configure.ocaml 3,839 1,728 1,151 20.6 bash
12 no-host configure.ocaml 3,793 1,586 1,226 20.4 dash
20 no-host configure.ocaml 4,769 2,284 1,692 20.6 osh-cpython
28 no-host configure.ocaml 3,859 1,626 1,271 20.6 osh-native
5 no-host configure.tcc 48 22 26 19.3 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 201 158 46 19.4 osh-cpython
29 no-host configure.tcc 49 38 12 19.3 osh-native
3 no-host configure.util-linux 14,249 8,805 5,917 30.1 bash
11 no-host configure.util-linux 15,185 9,246 6,434 30.1 dash
19 no-host configure.util-linux 31,606 21,160 11,549 30.3 osh-cpython
27 no-host configure.util-linux 14,693 8,863 6,009 30.0 osh-native
6 no-host configure.yash 1,837 1,078 763 24.4 bash
14 no-host configure.yash 1,800 976 827 24.1 dash
22 no-host configure.yash 2,531 1,478 1,097 24.2 osh-cpython
30 no-host configure.yash 1,854 1,078 779 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 25 25 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,542 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,128 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,254 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,227 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,298 0 0 0 8 0 1,987 62 bash
9 no-host bin-true 67,440 0 0 0 8 0 1,987 33 dash
17 no-host bin-true 753,912 0 0 0 8 0 1,999 439 osh-cpython
25 no-host bin-true 129,236 0 0 0 16 0 1,986 134 osh-native
2 no-host configure.cpython 2,223,407 0 0 0 32,928 0 14,633 1,147 bash
10 no-host configure.cpython 2,241,615 0 0 0 32,992 0 14,669 1,087 dash
18 no-host configure.cpython 6,140,421 0 0 0 27,512 0 13,300 1,284 osh-cpython
26 no-host configure.cpython 2,228,438 0 0 0 27,520 0 13,241 1,236 osh-native
4 no-host configure.ocaml 410,731 0 0 0 5,120 0 1,953 194 bash
12 no-host configure.ocaml 390,639 0 0 0 5,112 0 1,899 153 dash
20 no-host configure.ocaml 637,735 0 0 0 5,112 0 1,856 202 osh-cpython
28 no-host configure.ocaml 413,878 0 0 0 5,120 0 1,935 166 osh-native
5 no-host configure.tcc 6,568 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 23,185 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,995 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,106,101 0 0 0 42,400 0 18,703 1,079 bash
11 no-host configure.util-linux 2,258,893 1 0 0 42,584 0 17,549 1,091 dash
19 no-host configure.util-linux 5,320,807 14 0 0 39,112 0 17,060 1,242 osh-cpython
27 no-host configure.util-linux 2,016,132 1 0 0 39,128 0 17,089 1,103 osh-native
6 no-host configure.yash 255,637 0 0 0 4,120 0 871 88 bash
14 no-host configure.yash 245,184 0 0 0 3,720 0 868 75 dash
22 no-host configure.yash 384,871 0 0 0 3,728 0 857 97 osh-cpython
30 no-host configure.yash 258,584 0 0 0 3,736 0 852 90 osh-native
0 no-host hello-world 153 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,650 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-ec751d5c
dash dash-308ec8e6
osh-cpython osh-26b81393
osh-native osh-f7378f06
host label host id
no-host no-host-13226fd6