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 20 10 460 23 23.36 1.18
bin-true no-host 689 553 2,265 815 3.29 1.18
configure.cpython no-host 15,570 15,746 29,626 15,892 1.90 1.02
configure.ocaml no-host 3,916 3,851 4,828 3,914 1.23 1.00
configure.tcc no-host 49 42 201 50 4.09 1.02
configure.util-linux no-host 14,346 15,774 33,601 14,876 2.34 1.04
configure.yash no-host 1,901 1,830 2,514 1,884 1.32 0.99
hello-world no-host 2 1 52 3 33.47 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,508 1,106 23,388 3,211 9.33 1.28
bin-true no-host 105,391 66,378 739,893 125,199 7.02 1.19
configure.cpython no-host 2,216,281 2,239,304 6,129,530 2,240,010 2.77 1.01
configure.ocaml no-host 410,745 391,707 638,003 413,600 1.55 1.01
configure.tcc no-host 6,549 5,461 23,188 6,973 3.54 1.06
configure.util-linux no-host 2,095,685 2,262,927 5,299,766 2,011,363 2.53 0.96
configure.yash no-host 256,675 245,198 385,131 257,820 1.50 1.00
hello-world no-host 152 83 3,666 346 24.12 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.3 3.4 21.6 8.9 5.00 2.06
bin-true no-host 2.9 1.3 17.4 8.0 6.05 2.77
configure.cpython no-host 27.4 27.4 27.5 27.1 1.00 0.99
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.3 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 1.01 1.00
hello-world no-host 2.8 1.6 17.4 6.0 6.33 2.19

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,722 3,722 0 684 1,873 1,165 2 0 50,000 0
bin-true no-host 815 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,892 1 64 15.8 27.1 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,876 3 63 22.2 30.1 2,703,267 44,765 65,791 126,121 1,320,493 1,256,653 49,081 41 131,582 1
configure.ocaml no-host 3,914 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 50 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,884 1 2 2.6 24.2 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.9 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 20 20 0 4.3 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 460 410 52 21.6 osh-cpython
31 no-host abuild-print-help 23 15 8 8.9 osh-native
1 no-host bin-true 689 525 194 2.9 bash
9 no-host bin-true 553 421 137 1.3 dash
17 no-host bin-true 2,265 1,527 995 17.4 osh-cpython
25 no-host bin-true 815 570 260 8.0 osh-native
2 no-host configure.cpython 15,570 9,346 6,627 27.4 bash
10 no-host configure.cpython 15,746 9,415 6,763 27.4 dash
18 no-host configure.cpython 29,626 17,853 13,693 27.5 osh-cpython
26 no-host configure.cpython 15,892 9,385 6,777 27.1 osh-native
4 no-host configure.ocaml 3,916 1,614 1,333 20.6 bash
12 no-host configure.ocaml 3,851 1,583 1,288 20.6 dash
20 no-host configure.ocaml 4,828 2,273 1,761 20.6 osh-cpython
28 no-host configure.ocaml 3,914 1,735 1,217 20.6 osh-native
5 no-host configure.tcc 49 29 21 19.1 bash
13 no-host configure.tcc 42 28 15 19.3 dash
21 no-host configure.tcc 201 144 60 19.3 osh-cpython
29 no-host configure.tcc 50 19 32 19.3 osh-native
3 no-host configure.util-linux 14,346 9,061 5,758 30.3 bash
11 no-host configure.util-linux 15,774 9,429 6,838 30.1 dash
19 no-host configure.util-linux 33,601 22,546 12,212 30.1 osh-cpython
27 no-host configure.util-linux 14,876 9,023 6,032 30.1 osh-native
6 no-host configure.yash 1,901 1,054 857 24.2 bash
14 no-host configure.yash 1,830 1,062 770 24.2 dash
22 no-host configure.yash 2,514 1,505 1,055 24.4 osh-cpython
30 no-host configure.yash 1,884 1,126 761 24.2 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 52 25 26 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,508 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,388 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,211 0 0 0 16 0 41 4 osh-native
1 no-host bin-true 105,391 0 0 0 8 0 1,989 140 bash
9 no-host bin-true 66,378 0 0 0 8 0 1,987 81 dash
17 no-host bin-true 739,893 0 0 0 8 0 1,993 229 osh-cpython
25 no-host bin-true 125,199 0 0 0 16 0 1,988 58 osh-native
2 no-host configure.cpython 2,216,281 0 0 0 32,928 0 14,488 1,048 bash
10 no-host configure.cpython 2,239,304 1 0 0 32,992 0 14,639 1,018 dash
18 no-host configure.cpython 6,129,530 2 0 0 27,512 0 13,330 1,191 osh-cpython
26 no-host configure.cpython 2,240,010 0 0 0 27,520 0 13,241 1,025 osh-native
4 no-host configure.ocaml 410,745 0 0 0 5,120 0 1,955 205 bash
12 no-host configure.ocaml 391,707 0 0 0 5,112 0 1,936 127 dash
20 no-host configure.ocaml 638,003 0 0 0 5,112 0 1,851 182 osh-cpython
28 no-host configure.ocaml 413,600 0 0 0 5,120 0 1,929 189 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,461 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,188 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,973 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,095,685 1 0 0 42,408 0 18,724 975 bash
11 no-host configure.util-linux 2,262,927 1 0 0 42,592 0 17,449 1,235 dash
19 no-host configure.util-linux 5,299,766 5 0 0 39,120 0 17,080 1,287 osh-cpython
27 no-host configure.util-linux 2,011,363 4 0 0 39,128 0 17,070 1,111 osh-native
6 no-host configure.yash 256,675 0 0 0 4,120 0 871 86 bash
14 no-host configure.yash 245,198 0 0 0 3,720 0 871 79 dash
22 no-host configure.yash 385,131 0 0 0 3,728 0 859 91 osh-cpython
30 no-host configure.yash 257,820 0 0 0 3,736 0 851 88 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,666 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-eeacc72f
dash dash-308ec8e6
osh-cpython osh-c3613293
osh-native osh-3618f983
host label host id
no-host no-host-1c33b689