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 461 22 24.36 1.18
bin-true no-host 680 544 2,280 822 3.35 1.21
configure.cpython no-host 15,308 15,316 29,209 15,570 1.91 1.02
configure.ocaml no-host 3,870 3,788 4,673 3,871 1.21 1.00
configure.tcc no-host 50 42 197 49 3.98 1.00
configure.util-linux no-host 14,252 15,093 31,554 14,643 2.21 1.03
configure.yash no-host 1,842 1,802 2,493 1,859 1.35 1.01
hello-world no-host 2 1 50 3 33.42 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,536 1,091 23,410 3,237 9.23 1.28
bin-true no-host 107,318 66,450 753,359 130,175 7.02 1.21
configure.cpython no-host 2,215,345 2,240,054 6,143,223 2,235,892 2.77 1.01
configure.ocaml no-host 410,642 390,954 638,833 412,978 1.56 1.01
configure.tcc no-host 6,539 5,459 23,201 6,946 3.55 1.06
configure.util-linux no-host 2,100,514 2,257,052 5,321,866 2,008,309 2.53 0.96
configure.yash no-host 256,608 244,637 385,048 259,150 1.50 1.01
hello-world no-host 154 78 3,659 344 23.76 2.23

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.4 21.5 8.9 4.82 2.00
bin-true no-host 3.0 1.4 17.2 7.9 5.70 2.61
configure.cpython no-host 27.4 27.5 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.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.5 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.3 17.1 6.2 6.22 2.24

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.2 3,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 822 1 2 2.7 7.9 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,570 1 62 15.8 27.4 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,643 3 61 22.2 30.1 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,871 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,859 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,265 64,454 42,662 4,609 54,543 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 17 2 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 461 403 61 21.5 osh-cpython
31 no-host abuild-print-help 22 18 5 8.9 osh-native
1 no-host bin-true 680 521 191 3.0 bash
9 no-host bin-true 544 401 149 1.4 dash
17 no-host bin-true 2,280 1,450 1,096 17.2 osh-cpython
25 no-host bin-true 822 574 261 7.9 osh-native
2 no-host configure.cpython 15,308 9,151 6,537 27.4 bash
10 no-host configure.cpython 15,316 9,320 6,423 27.5 dash
18 no-host configure.cpython 29,209 17,559 13,520 27.4 osh-cpython
26 no-host configure.cpython 15,570 9,142 6,676 27.4 osh-native
4 no-host configure.ocaml 3,870 1,623 1,284 20.6 bash
12 no-host configure.ocaml 3,788 1,603 1,200 20.6 dash
20 no-host configure.ocaml 4,673 2,223 1,651 20.6 osh-cpython
28 no-host configure.ocaml 3,871 1,657 1,253 20.6 osh-native
5 no-host configure.tcc 50 35 15 19.3 bash
13 no-host configure.tcc 42 25 18 19.3 dash
21 no-host configure.tcc 197 144 57 19.3 osh-cpython
29 no-host configure.tcc 49 30 20 19.4 osh-native
3 no-host configure.util-linux 14,252 8,900 5,812 30.1 bash
11 no-host configure.util-linux 15,093 9,267 6,315 30.0 dash
19 no-host configure.util-linux 31,554 20,940 11,695 30.1 osh-cpython
27 no-host configure.util-linux 14,643 8,932 5,900 30.1 osh-native
6 no-host configure.yash 1,842 1,084 767 24.4 bash
14 no-host configure.yash 1,802 1,060 745 24.5 dash
22 no-host configure.yash 2,493 1,560 977 24.4 osh-cpython
30 no-host configure.yash 1,859 1,132 731 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 25 25 17.1 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,536 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,410 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,237 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,318 0 0 0 8 0 1,990 46 bash
9 no-host bin-true 66,450 0 0 0 8 0 1,993 44 dash
17 no-host bin-true 753,359 0 0 0 8 0 1,995 299 osh-cpython
25 no-host bin-true 130,175 0 0 0 16 0 1,985 68 osh-native
2 no-host configure.cpython 2,215,345 0 0 0 32,928 0 14,448 1,031 bash
10 no-host configure.cpython 2,240,054 1 0 0 32,992 0 14,610 1,060 dash
18 no-host configure.cpython 6,143,223 0 0 0 27,512 0 13,257 1,297 osh-cpython
26 no-host configure.cpython 2,235,892 0 0 0 27,520 0 13,230 1,046 osh-native
4 no-host configure.ocaml 410,642 0 0 0 5,120 0 1,954 199 bash
12 no-host configure.ocaml 390,954 0 0 0 5,112 0 1,887 161 dash
20 no-host configure.ocaml 638,833 0 0 0 5,112 0 1,864 195 osh-cpython
28 no-host configure.ocaml 412,978 0 0 0 5,120 0 1,939 141 osh-native
5 no-host configure.tcc 6,539 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,459 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,201 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,946 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,100,514 1 0 0 42,400 0 18,566 1,132 bash
11 no-host configure.util-linux 2,257,052 1 0 0 42,584 0 17,402 1,144 dash
19 no-host configure.util-linux 5,321,866 16 0 0 39,120 0 17,075 1,397 osh-cpython
27 no-host configure.util-linux 2,008,309 2 0 0 39,128 0 17,102 1,045 osh-native
6 no-host configure.yash 256,608 0 0 0 4,120 0 866 90 bash
14 no-host configure.yash 244,637 0 0 0 3,720 0 869 98 dash
22 no-host configure.yash 385,048 0 0 0 3,728 0 858 83 osh-cpython
30 no-host configure.yash 259,150 0 0 0 3,736 0 850 87 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,659 0 0 0 8 0 6 3 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1a09d3b7
dash dash-308ec8e6
osh-cpython osh-2d79797d
osh-native osh-e768872d
host label host id
no-host no-host-13226fd6