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 461 22 23.97 1.16
bin-true no-host 678 550 2,257 824 3.33 1.22
configure.cpython no-host 15,101 15,132 28,871 15,447 1.91 1.02
configure.ocaml no-host 3,842 3,742 4,685 3,852 1.22 1.00
configure.tcc no-host 48 42 196 50 4.11 1.04
configure.util-linux no-host 14,049 14,894 31,250 14,562 2.22 1.04
configure.yash no-host 1,823 1,781 2,475 1,836 1.36 1.01
hello-world no-host 1 1 49 3 32.66 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,559 1,106 22,972 3,164 8.98 1.24
bin-true no-host 104,399 66,395 756,332 127,164 7.24 1.22
configure.cpython no-host 2,219,596 2,247,089 6,185,750 2,222,202 2.79 1.00
configure.ocaml no-host 410,886 391,491 639,727 413,298 1.56 1.01
configure.tcc no-host 6,543 5,494 23,279 6,985 3.56 1.07
configure.util-linux no-host 2,102,977 2,259,148 5,328,008 1,998,925 2.53 0.95
configure.yash no-host 256,074 244,489 385,159 258,556 1.50 1.01
hello-world no-host 154 81 3,700 347 24.03 2.25

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.8 9.0 4.88 2.03
bin-true no-host 3.0 1.4 17.6 8.0 5.82 2.65
configure.cpython no-host 27.4 27.3 27.5 27.4 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.4 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.1 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.9 1.4 17.4 6.3 6.04 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.3 6.3 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,447 1 63 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,562 3 62 21.3 30.1 2,703,426 42,745 65,812 109,643 1,320,611 1,273,172 27,391 41 131,624 1
configure.ocaml no-host 3,852 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,836 1 2 2.6 24.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 10 6 4 3.4 dash
23 no-host abuild-print-help 461 409 55 21.8 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
1 no-host bin-true 678 507 202 3.0 bash
9 no-host bin-true 550 423 136 1.4 dash
17 no-host bin-true 2,257 1,492 1,033 17.6 osh-cpython
25 no-host bin-true 824 578 261 8.0 osh-native
2 no-host configure.cpython 15,101 9,321 6,181 27.4 bash
10 no-host configure.cpython 15,132 9,248 6,298 27.3 dash
18 no-host configure.cpython 28,871 17,590 13,159 27.5 osh-cpython
26 no-host configure.cpython 15,447 9,193 6,514 27.4 osh-native
4 no-host configure.ocaml 3,842 1,620 1,250 20.4 bash
12 no-host configure.ocaml 3,742 1,614 1,149 20.6 dash
20 no-host configure.ocaml 4,685 2,263 1,629 20.6 osh-cpython
28 no-host configure.ocaml 3,852 1,690 1,197 20.6 osh-native
5 no-host configure.tcc 48 28 20 19.4 bash
13 no-host configure.tcc 42 21 21 19.4 dash
21 no-host configure.tcc 196 151 48 19.4 osh-cpython
29 no-host configure.tcc 50 32 18 19.4 osh-native
3 no-host configure.util-linux 14,049 9,019 5,495 30.3 bash
11 no-host configure.util-linux 14,894 9,233 6,146 30.1 dash
19 no-host configure.util-linux 31,250 20,684 11,656 30.3 osh-cpython
27 no-host configure.util-linux 14,562 8,850 5,908 30.1 osh-native
6 no-host configure.yash 1,823 1,058 774 24.4 bash
14 no-host configure.yash 1,781 1,018 765 24.4 dash
22 no-host configure.yash 2,475 1,492 1,027 24.4 osh-cpython
30 no-host configure.yash 1,836 1,109 728 24.4 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 26 22 17.4 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,559 0 0 0 16 0 41 6 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 22,972 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,164 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 104,399 0 0 0 8 0 1,993 50 bash
9 no-host bin-true 66,395 0 0 0 8 0 1,988 126 dash
17 no-host bin-true 756,332 0 0 0 8 0 1,998 85 osh-cpython
25 no-host bin-true 127,164 0 0 0 16 0 1,988 87 osh-native
2 no-host configure.cpython 2,219,596 0 0 0 32,928 0 14,538 1,078 bash
10 no-host configure.cpython 2,247,089 1 0 0 32,992 0 14,515 1,108 dash
18 no-host configure.cpython 6,185,750 0 0 0 27,512 0 13,201 1,212 osh-cpython
26 no-host configure.cpython 2,222,202 0 0 0 27,520 0 13,298 1,020 osh-native
4 no-host configure.ocaml 410,886 0 0 0 5,120 0 1,963 187 bash
12 no-host configure.ocaml 391,491 0 0 0 5,112 0 1,946 159 dash
20 no-host configure.ocaml 639,727 0 0 0 5,112 0 1,849 185 osh-cpython
28 no-host configure.ocaml 413,298 0 0 0 5,120 0 1,927 163 osh-native
5 no-host configure.tcc 6,543 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,494 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,279 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,985 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,102,977 1 0 0 42,400 0 18,631 1,017 bash
11 no-host configure.util-linux 2,259,148 0 0 0 42,584 0 17,472 1,138 dash
19 no-host configure.util-linux 5,328,008 9 0 0 39,112 0 16,948 1,304 osh-cpython
27 no-host configure.util-linux 1,998,925 0 0 0 39,128 0 17,003 1,052 osh-native
6 no-host configure.yash 256,074 0 0 0 4,120 0 872 88 bash
14 no-host configure.yash 244,489 0 0 0 3,720 0 869 87 dash
22 no-host configure.yash 385,159 0 0 0 3,728 0 854 90 osh-cpython
30 no-host configure.yash 258,556 0 0 0 3,736 0 847 84 osh-native
0 no-host hello-world 154 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,700 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-2d76dffc
dash dash-308ec8e6
osh-cpython osh-43933917
osh-native osh-71ee16f5
host label host id
no-host no-host-556df3ee