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 456 22 24.24 1.18
bin-true no-host 686 543 2,293 809 3.34 1.18
configure.cpython no-host 15,314 15,399 29,414 15,282 1.92 1.00
configure.ocaml no-host 3,819 3,777 4,612 3,820 1.21 1.00
configure.tcc no-host 47 42 193 49 4.06 1.03
configure.util-linux no-host 14,124 15,085 31,254 14,306 2.21 1.01
configure.yash no-host 1,831 1,811 2,452 1,833 1.34 1.00
hello-world no-host 2 1 51 3 32.02 1.78

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,526 1,104 22,773 3,181 9.02 1.26
bin-true no-host 105,242 65,417 757,654 126,158 7.20 1.20
configure.cpython no-host 2,219,508 2,243,969 6,159,723 2,218,177 2.78 1.00
configure.ocaml no-host 410,526 391,239 639,405 413,328 1.56 1.01
configure.tcc no-host 6,588 5,473 23,289 6,981 3.54 1.06
configure.util-linux no-host 2,102,796 2,255,566 5,298,477 1,993,339 2.52 0.95
configure.yash no-host 256,409 245,163 384,007 258,532 1.50 1.01
hello-world no-host 152 85 3,686 347 24.25 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.9 8.9 4.91 2.00
bin-true no-host 3.0 1.3 17.6 8.1 5.82 2.70
configure.cpython no-host 27.5 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.3 19.5 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.0 1.00 0.99
configure.yash no-host 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.6 1.4 17.4 6.0 6.65 2.30

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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 809 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,282 1 61 15.0 27.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,306 3 61 21.3 30.0 2,703,426 42,790 65,831 109,643 1,320,611 1,273,172 49,081 41 131,662 1
configure.ocaml no-host 3,820 1 2 2.6 20.4 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,833 1 2 2.6 24.2 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,473 42,681 4,555 54,561 57,176 478 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 5 5 3.5 dash
23 no-host abuild-print-help 456 416 42 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
1 no-host bin-true 686 491 225 3.0 bash
9 no-host bin-true 543 417 134 1.3 dash
17 no-host bin-true 2,293 1,482 1,086 17.6 osh-cpython
25 no-host bin-true 809 574 251 8.1 osh-native
2 no-host configure.cpython 15,314 9,137 6,555 27.5 bash
10 no-host configure.cpython 15,399 9,441 6,374 27.3 dash
18 no-host configure.cpython 29,414 17,852 13,488 27.4 osh-cpython
26 no-host configure.cpython 15,282 9,128 6,407 27.4 osh-native
4 no-host configure.ocaml 3,819 1,658 1,202 20.4 bash
12 no-host configure.ocaml 3,777 1,588 1,209 20.6 dash
20 no-host configure.ocaml 4,612 2,267 1,551 20.6 osh-cpython
28 no-host configure.ocaml 3,820 1,653 1,205 20.4 osh-native
5 no-host configure.tcc 47 36 12 19.3 bash
13 no-host configure.tcc 42 29 13 19.5 dash
21 no-host configure.tcc 193 157 39 19.4 osh-cpython
29 no-host configure.tcc 49 34 15 19.3 osh-native
3 no-host configure.util-linux 14,124 8,946 5,653 30.3 bash
11 no-host configure.util-linux 15,085 9,337 6,239 30.3 dash
19 no-host configure.util-linux 31,254 21,049 11,303 30.3 osh-cpython
27 no-host configure.util-linux 14,306 8,677 5,820 30.0 osh-native
6 no-host configure.yash 1,831 1,067 772 24.4 bash
14 no-host configure.yash 1,811 1,080 734 24.4 dash
22 no-host configure.yash 2,452 1,499 996 24.2 osh-cpython
30 no-host configure.yash 1,833 1,054 781 24.2 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 51 29 21 17.4 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,526 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,104 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,773 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 105,242 0 0 0 8 0 1,989 205 bash
9 no-host bin-true 65,417 0 0 0 8 0 1,981 55 dash
17 no-host bin-true 757,654 0 0 0 8 0 1,999 138 osh-cpython
25 no-host bin-true 126,158 0 0 0 16 0 1,991 53 osh-native
2 no-host configure.cpython 2,219,508 1 0 0 32,928 0 14,489 1,222 bash
10 no-host configure.cpython 2,243,969 0 0 0 32,992 0 14,678 1,128 dash
18 no-host configure.cpython 6,159,723 0 0 0 27,512 0 13,278 1,250 osh-cpython
26 no-host configure.cpython 2,218,177 1 0 0 27,520 0 13,307 1,120 osh-native
4 no-host configure.ocaml 410,526 0 0 0 5,120 0 1,936 192 bash
12 no-host configure.ocaml 391,239 0 0 0 5,112 0 1,883 144 dash
20 no-host configure.ocaml 639,405 1 0 0 5,112 0 1,853 171 osh-cpython
28 no-host configure.ocaml 413,328 0 0 0 5,120 0 1,925 176 osh-native
5 no-host configure.tcc 6,588 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,289 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,981 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,102,796 0 0 0 42,400 0 18,608 1,084 bash
11 no-host configure.util-linux 2,255,566 0 0 0 42,584 0 17,444 1,132 dash
19 no-host configure.util-linux 5,298,477 5 0 0 39,112 0 16,988 1,320 osh-cpython
27 no-host configure.util-linux 1,993,339 0 0 0 39,128 0 16,999 901 osh-native
6 no-host configure.yash 256,409 0 0 0 4,120 0 869 89 bash
14 no-host configure.yash 245,163 0 0 0 3,720 0 866 71 dash
22 no-host configure.yash 384,007 0 0 0 3,728 0 856 101 osh-cpython
30 no-host configure.yash 258,532 0 0 0 3,736 0 851 77 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,686 0 0 0 8 0 7 2 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-20d2742d
dash dash-308ec8e6
osh-cpython osh-cb71dc9b
osh-native osh-07cd7c04
host label host id
no-host no-host-556df3ee