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 450 22 23.18 1.13
bin-true no-host 685 555 2,865 1,049 4.18 1.53
configure.cpython no-host 15,804 15,901 30,695 15,441 1.94 0.98
configure.ocaml no-host 3,976 3,914 4,712 3,903 1.19 0.98
configure.tcc no-host 49 44 198 49 4.07 1.00
configure.util-linux no-host 14,730 15,828 31,156 14,526 2.12 0.99
configure.yash no-host 1,899 1,858 2,477 1,850 1.30 0.97
hello-world no-host 2 1 53 3 30.54 1.64

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,517 1,107 22,802 3,153 9.06 1.25
bin-true no-host 107,340 66,405 894,904 231,247 8.34 2.15
configure.cpython no-host 2,219,461 2,242,551 6,184,226 2,225,603 2.79 1.00
configure.ocaml no-host 410,943 391,092 640,618 413,400 1.56 1.01
configure.tcc no-host 6,544 5,484 23,287 7,029 3.56 1.07
configure.util-linux no-host 2,105,213 2,260,822 5,300,575 1,997,127 2.52 0.95
configure.yash no-host 256,063 245,050 386,939 261,516 1.51 1.02
hello-world no-host 153 79 3,693 350 24.14 2.29

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.3 3.4 21.4 8.9 4.96 2.06
bin-true no-host 2.9 1.3 19.1 8.0 6.64 2.77
configure.cpython no-host 27.5 27.4 27.4 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.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.4 6.3 6.33 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 1,049 0 2 2.6 8.0 202,738 13,857 2,818 9,734 106,375 86,629 3,008 4 50,000 0
configure.cpython no-host 15,441 1 63 15.0 27.4 1,772,719 49,108 28,528 86,381 908,132 778,206 22,694 60 50,000 0
configure.util-linux no-host 14,526 3 62 21.3 30.1 2,703,551 42,745 65,832 109,643 1,320,686 1,273,222 27,391 41 131,664 1
configure.ocaml no-host 3,903 1 2 2.6 20.6 150,084 10,993 5,163 7,513 71,663 70,908 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,573 30,573 0 1,504 14,830 14,239 226 0 50,000 0
configure.yash no-host 1,850 1 2 2.6 24.4 142,960 10,576 6,510 6,320 72,214 64,426 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 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 2 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 450 407 46 21.4 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
1 no-host bin-true 685 506 212 2.9 bash
9 no-host bin-true 555 420 143 1.3 dash
17 no-host bin-true 2,865 1,838 1,306 19.1 osh-cpython
25 no-host bin-true 1,049 761 305 8.0 osh-native
2 no-host configure.cpython 15,804 9,154 7,060 27.5 bash
10 no-host configure.cpython 15,901 9,404 6,929 27.4 dash
18 no-host configure.cpython 30,695 18,059 14,642 27.4 osh-cpython
26 no-host configure.cpython 15,441 9,091 6,585 27.4 osh-native
4 no-host configure.ocaml 3,976 1,699 1,304 20.6 bash
12 no-host configure.ocaml 3,914 1,591 1,342 20.6 dash
20 no-host configure.ocaml 4,712 2,234 1,690 20.6 osh-cpython
28 no-host configure.ocaml 3,903 1,780 1,162 20.6 osh-native
5 no-host configure.tcc 49 29 21 19.4 bash
13 no-host configure.tcc 44 22 22 19.3 dash
21 no-host configure.tcc 198 132 70 19.3 osh-cpython
29 no-host configure.tcc 49 37 12 19.3 osh-native
3 no-host configure.util-linux 14,730 9,243 5,972 30.1 bash
11 no-host configure.util-linux 15,828 9,554 6,782 30.3 dash
19 no-host configure.util-linux 31,156 20,723 11,510 30.3 osh-cpython
27 no-host configure.util-linux 14,526 8,692 6,031 30.1 osh-native
6 no-host configure.yash 1,899 1,118 790 24.4 bash
14 no-host configure.yash 1,858 1,078 784 24.4 dash
22 no-host configure.yash 2,477 1,545 974 24.2 osh-cpython
30 no-host configure.yash 1,850 1,067 788 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 53 33 20 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,517 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,802 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,153 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 107,340 0 0 0 8 0 1,986 71 bash
9 no-host bin-true 66,405 0 0 0 8 0 1,985 52 dash
17 no-host bin-true 894,904 0 0 0 8 0 2,002 365 osh-cpython
25 no-host bin-true 231,247 0 0 0 16 0 1,987 163 osh-native
2 no-host configure.cpython 2,219,461 0 0 0 32,928 0 14,489 1,309 bash
10 no-host configure.cpython 2,242,551 0 0 0 32,992 0 14,644 1,156 dash
18 no-host configure.cpython 6,184,226 0 0 0 27,512 0 13,258 1,277 osh-cpython
26 no-host configure.cpython 2,225,603 0 0 0 27,520 0 13,277 949 osh-native
4 no-host configure.ocaml 410,943 0 0 0 5,120 0 1,945 166 bash
12 no-host configure.ocaml 391,092 0 0 0 5,112 0 1,930 251 dash
20 no-host configure.ocaml 640,618 0 0 0 5,112 0 1,856 203 osh-cpython
28 no-host configure.ocaml 413,400 0 0 0 5,120 0 1,930 154 osh-native
5 no-host configure.tcc 6,544 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,484 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,287 0 0 0 96 0 53 18 osh-cpython
29 no-host configure.tcc 7,029 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,105,213 3 0 0 42,408 0 18,561 1,122 bash
11 no-host configure.util-linux 2,260,822 1 0 0 42,592 0 17,520 1,171 dash
19 no-host configure.util-linux 5,300,575 12 0 0 39,144 0 16,985 1,381 osh-cpython
27 no-host configure.util-linux 1,997,127 0 0 0 39,128 0 17,100 1,100 osh-native
6 no-host configure.yash 256,063 0 0 0 4,120 0 871 88 bash
14 no-host configure.yash 245,050 0 0 0 3,720 0 871 71 dash
22 no-host configure.yash 386,939 0 0 0 3,728 0 851 107 osh-cpython
30 no-host configure.yash 261,516 0 0 0 3,736 0 852 85 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,693 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-617ad26f
dash dash-308ec8e6
osh-cpython osh-92939ff6
osh-native osh-f008eaef
host label host id
no-host no-host-556df3ee