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 449 22 23.35 1.15
bin-true no-host 672 545 2,931 1,037 4.36 1.54
configure.cpython no-host 14,976 15,024 28,505 15,212 1.90 1.02
configure.ocaml no-host 3,814 3,723 4,606 3,883 1.21 1.02
configure.tcc no-host 47 42 195 50 4.11 1.05
configure.util-linux no-host 14,087 14,840 31,198 14,372 2.21 1.02
configure.yash no-host 1,815 1,762 2,489 1,852 1.37 1.02
hello-world no-host 2 1 48 3 31.86 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,557 1,138 22,851 3,197 8.94 1.25
bin-true no-host 105,386 65,446 888,193 210,537 8.43 2.00
configure.cpython no-host 2,222,216 2,242,477 6,155,638 2,221,122 2.77 1.00
configure.ocaml no-host 411,280 390,437 641,111 413,713 1.56 1.01
configure.tcc no-host 6,534 5,476 23,278 7,029 3.56 1.08
configure.util-linux no-host 2,109,052 2,258,827 5,328,441 1,999,233 2.53 0.95
configure.yash no-host 255,579 244,058 388,757 261,107 1.52 1.02
hello-world no-host 151 81 3,699 350 24.50 2.32

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.6 9.0 5.00 2.09
bin-true no-host 2.8 1.4 19.2 8.0 6.99 2.90
configure.cpython no-host 27.4 27.0 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.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.5 1.01 1.01
hello-world no-host 2.9 1.4 17.6 6.3 6.09 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 1,037 1 2 2.6 8.0 206,738 17,814 2,818 9,734 110,375 86,629 3,008 4 50,000 0
configure.cpython no-host 15,212 1 61 15.0 27.4 1,772,716 49,108 28,528 86,381 908,129 778,206 22,694 60 50,000 0
configure.util-linux no-host 14,372 3 60 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,883 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 50 0 0 1.3 19.4 30,573 30,573 0 1,504 14,830 14,239 226 0 50,000 0
configure.yash no-host 1,852 1 2 2.6 24.5 143,034 10,578 6,510 6,320 72,288 64,426 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 17 3 4.3 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 449 406 46 21.6 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
1 no-host bin-true 672 491 212 2.8 bash
9 no-host bin-true 545 412 141 1.4 dash
17 no-host bin-true 2,931 1,977 1,219 19.2 osh-cpython
25 no-host bin-true 1,037 748 306 8.0 osh-native
2 no-host configure.cpython 14,976 9,066 6,312 27.4 bash
10 no-host configure.cpython 15,024 9,068 6,369 27.0 dash
18 no-host configure.cpython 28,505 17,482 12,857 27.5 osh-cpython
26 no-host configure.cpython 15,212 9,056 6,425 27.4 osh-native
4 no-host configure.ocaml 3,814 1,598 1,252 20.4 bash
12 no-host configure.ocaml 3,723 1,589 1,154 20.6 dash
20 no-host configure.ocaml 4,606 2,212 1,599 20.6 osh-cpython
28 no-host configure.ocaml 3,883 1,640 1,281 20.6 osh-native
5 no-host configure.tcc 47 34 14 19.3 bash
13 no-host configure.tcc 42 22 20 19.3 dash
21 no-host configure.tcc 195 141 58 19.3 osh-cpython
29 no-host configure.tcc 50 41 9 19.4 osh-native
3 no-host configure.util-linux 14,087 8,977 5,589 30.0 bash
11 no-host configure.util-linux 14,840 9,222 6,106 30.0 dash
19 no-host configure.util-linux 31,198 20,714 11,588 30.1 osh-cpython
27 no-host configure.util-linux 14,372 8,762 5,817 30.1 osh-native
6 no-host configure.yash 1,815 1,074 750 24.4 bash
14 no-host configure.yash 1,762 1,019 747 24.4 dash
22 no-host configure.yash 2,489 1,469 1,063 24.5 osh-cpython
30 no-host configure.yash 1,852 1,121 735 24.5 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 32 16 17.6 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,557 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,138 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,851 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,386 0 0 0 8 0 1,997 80 bash
9 no-host bin-true 65,446 0 0 0 8 0 1,993 63 dash
17 no-host bin-true 888,193 0 0 0 8 0 1,998 308 osh-cpython
25 no-host bin-true 210,537 0 0 0 16 0 1,989 112 osh-native
2 no-host configure.cpython 2,222,216 0 0 0 32,928 0 14,521 1,188 bash
10 no-host configure.cpython 2,242,477 0 0 0 32,992 0 14,657 1,261 dash
18 no-host configure.cpython 6,155,638 1 0 0 27,512 0 13,255 1,258 osh-cpython
26 no-host configure.cpython 2,221,122 0 0 0 27,520 0 13,283 1,176 osh-native
4 no-host configure.ocaml 411,280 0 0 0 5,120 0 1,961 179 bash
12 no-host configure.ocaml 390,437 0 0 0 5,112 0 1,882 141 dash
20 no-host configure.ocaml 641,111 0 0 0 5,112 0 1,851 186 osh-cpython
28 no-host configure.ocaml 413,713 0 0 0 5,120 0 1,923 169 osh-native
5 no-host configure.tcc 6,534 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,278 0 0 0 96 0 53 12 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,109,052 0 0 0 42,400 0 18,636 1,256 bash
11 no-host configure.util-linux 2,258,827 4 0 0 42,584 0 17,396 1,012 dash
19 no-host configure.util-linux 5,328,441 18 0 0 39,120 0 16,981 1,235 osh-cpython
27 no-host configure.util-linux 1,999,233 0 0 0 39,120 0 16,997 1,114 osh-native
6 no-host configure.yash 255,579 0 0 0 4,120 0 872 114 bash
14 no-host configure.yash 244,058 0 0 0 3,720 0 865 96 dash
22 no-host configure.yash 388,757 0 0 0 3,728 0 856 82 osh-cpython
30 no-host configure.yash 261,107 0 0 0 3,736 0 844 82 osh-native
0 no-host hello-world 151 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,699 0 0 0 8 0 7 6 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-1b5f91a3
dash dash-308ec8e6
osh-cpython osh-7b546036
osh-native osh-bc148ada
host label host id
no-host no-host-556df3ee