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 446 23 23.56 1.22
bin-true no-host 670 544 2,227 812 3.32 1.21
configure.cpython no-host 14,919 14,963 28,672 15,321 1.92 1.03
configure.ocaml no-host 3,794 3,728 4,605 3,885 1.21 1.02
configure.tcc no-host 48 42 192 49 4.03 1.03
configure.util-linux no-host 13,994 14,788 31,513 14,338 2.25 1.02
configure.yash no-host 1,812 1,762 2,464 1,836 1.36 1.01
hello-world no-host 1 1 47 3 31.83 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,539 1,127 23,580 3,190 9.29 1.26
bin-true no-host 106,377 66,491 741,430 127,149 6.97 1.20
configure.cpython no-host 2,222,733 2,239,111 6,118,063 2,240,637 2.75 1.01
configure.ocaml no-host 411,052 391,573 637,786 413,140 1.55 1.01
configure.tcc no-host 6,576 5,473 23,182 6,981 3.53 1.06
configure.util-linux no-host 2,101,078 2,263,037 5,319,221 2,013,350 2.53 0.96
configure.yash no-host 255,198 244,007 383,704 258,793 1.50 1.01
hello-world no-host 154 79 3,663 349 23.79 2.27

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 8.8 5.00 2.03
bin-true no-host 3.0 1.6 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.5 27.3 27.3 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.1 19.3 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.3 17.4 6.3 6.05 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,722 3,722 0 684 1,873 1,165 2 0 50,000 0
bin-true no-host 812 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,342 64,608 5,012 3 50,000 0
configure.cpython no-host 15,321 1 63 15.8 27.3 1,772,603 49,196 28,507 101,770 908,049 762,784 42,399 60 50,000 0
configure.util-linux no-host 14,338 2 60 22.2 30.3 2,703,267 44,765 65,811 126,121 1,320,493 1,256,653 49,081 41 131,622 1
configure.ocaml no-host 3,885 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,627 69,800 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,522 30,522 0 1,599 14,797 14,126 350 0 50,000 0
configure.yash no-host 1,836 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,299 61,833 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,265 64,454 42,662 4,610 54,542 57,113 478 3 85,324 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 16 3 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 446 405 44 21.6 osh-cpython
31 no-host abuild-print-help 23 18 5 8.8 osh-native
1 no-host bin-true 670 501 200 3.0 bash
9 no-host bin-true 544 417 135 1.6 dash
17 no-host bin-true 2,227 1,426 1,050 17.4 osh-cpython
25 no-host bin-true 812 585 242 8.0 osh-native
2 no-host configure.cpython 14,919 9,026 6,284 27.4 bash
10 no-host configure.cpython 14,963 9,058 6,309 27.5 dash
18 no-host configure.cpython 28,672 17,546 12,952 27.3 osh-cpython
26 no-host configure.cpython 15,321 9,027 6,557 27.3 osh-native
4 no-host configure.ocaml 3,794 1,563 1,271 20.6 bash
12 no-host configure.ocaml 3,728 1,576 1,171 20.6 dash
20 no-host configure.ocaml 4,605 2,228 1,581 20.6 osh-cpython
28 no-host configure.ocaml 3,885 1,690 1,234 20.6 osh-native
5 no-host configure.tcc 48 30 18 19.1 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 192 129 66 19.4 osh-cpython
29 no-host configure.tcc 49 28 21 19.3 osh-native
3 no-host configure.util-linux 13,994 8,762 5,686 30.3 bash
11 no-host configure.util-linux 14,788 9,042 6,232 30.3 dash
19 no-host configure.util-linux 31,513 20,722 11,875 30.3 osh-cpython
27 no-host configure.util-linux 14,338 8,780 5,753 30.3 osh-native
6 no-host configure.yash 1,812 1,034 786 24.2 bash
14 no-host configure.yash 1,762 990 776 24.2 dash
22 no-host configure.yash 2,464 1,449 1,059 24.4 osh-cpython
30 no-host configure.yash 1,836 1,108 732 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 47 18 29 17.4 osh-cpython
24 no-host hello-world 3 0 3 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,539 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,127 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,580 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,377 0 0 0 8 0 1,994 57 bash
9 no-host bin-true 66,491 0 0 0 8 0 1,988 58 dash
17 no-host bin-true 741,430 0 0 0 8 0 1,999 241 osh-cpython
25 no-host bin-true 127,149 0 0 0 16 0 1,992 117 osh-native
2 no-host configure.cpython 2,222,733 0 0 0 32,928 0 14,446 1,280 bash
10 no-host configure.cpython 2,239,111 0 0 0 32,992 0 14,588 1,066 dash
18 no-host configure.cpython 6,118,063 0 0 0 27,512 0 13,314 1,186 osh-cpython
26 no-host configure.cpython 2,240,637 0 0 0 27,520 0 13,298 1,164 osh-native
4 no-host configure.ocaml 411,052 0 0 0 5,120 0 1,951 169 bash
12 no-host configure.ocaml 391,573 0 0 0 5,112 0 1,933 169 dash
20 no-host configure.ocaml 637,786 0 0 0 5,112 0 1,859 185 osh-cpython
28 no-host configure.ocaml 413,140 0 0 0 5,120 0 1,935 189 osh-native
5 no-host configure.tcc 6,576 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,182 0 0 0 96 0 52 6 osh-cpython
29 no-host configure.tcc 6,981 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,101,078 0 0 0 42,408 0 18,329 1,143 bash
11 no-host configure.util-linux 2,263,037 0 0 0 42,592 0 17,487 1,222 dash
19 no-host configure.util-linux 5,319,221 9 0 0 39,136 0 17,005 1,396 osh-cpython
27 no-host configure.util-linux 2,013,350 4 0 0 39,120 0 16,981 1,080 osh-native
6 no-host configure.yash 255,198 0 0 0 4,120 0 870 89 bash
14 no-host configure.yash 244,007 0 0 0 3,720 0 866 103 dash
22 no-host configure.yash 383,704 0 0 0 3,728 0 856 101 osh-cpython
30 no-host configure.yash 258,793 0 0 0 3,736 0 855 88 osh-native
0 no-host hello-world 154 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,663 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-b10e3cf2
dash dash-308ec8e6
osh-cpython osh-6cc7c06b
osh-native osh-2136997a
host label host id
no-host no-host-1c33b689