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 456 23 24.16 1.21
bin-true no-host 673 542 2,239 824 3.33 1.22
configure.cpython no-host 15,071 15,122 28,781 15,344 1.91 1.02
configure.ocaml no-host 3,796 3,801 4,615 3,835 1.22 1.01
configure.tcc no-host 48 43 194 50 4.05 1.03
configure.util-linux no-host 13,995 15,005 31,315 14,436 2.24 1.03
configure.yash no-host 1,826 1,816 2,450 1,827 1.34 1.00
hello-world no-host 1 1 50 3 33.88 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,566 1,089 23,292 3,219 9.08 1.25
bin-true no-host 102,277 65,382 750,309 128,211 7.34 1.25
configure.cpython no-host 2,223,575 2,252,894 6,154,117 2,228,946 2.77 1.00
configure.ocaml no-host 410,695 391,558 637,247 413,760 1.55 1.01
configure.tcc no-host 6,583 5,509 23,186 6,960 3.52 1.06
configure.util-linux no-host 2,098,166 2,254,469 5,329,378 2,011,814 2.54 0.96
configure.yash no-host 254,162 244,145 385,586 258,761 1.52 1.02
hello-world no-host 150 82 3,649 345 24.33 2.30

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.5 21.6 8.8 4.85 1.97
bin-true no-host 3.0 1.6 17.3 8.1 5.74 2.70
configure.cpython no-host 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.3 30.4 1.00 1.01
configure.yash no-host 24.2 24.2 25.2 24.4 1.04 1.01
hello-world no-host 2.8 1.4 17.0 6.0 6.19 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,723 3,723 0 684 1,875 1,164 2 0 50,000 0
bin-true no-host 824 1 2 2.7 8.1 154,688 12,992 2,799 11,737 78,344 64,607 5,012 3 50,000 0
configure.cpython no-host 15,344 1 64 15.8 27.4 1,772,604 49,197 28,508 101,770 908,051 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,436 3 62 22.2 30.4 2,703,268 44,766 65,792 126,121 1,320,495 1,256,652 49,081 41 131,584 1
configure.ocaml no-host 3,835 1 2 2.7 20.4 150,030 11,045 5,138 8,602 71,629 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,523 30,523 0 1,599 14,799 14,125 350 0 50,000 0
configure.yash no-host 1,827 1 2 2.6 24.4 139,687 7,964 6,600 7,554 70,301 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,266 64,455 42,663 4,610 54,544 57,112 478 3 85,326 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.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 456 420 39 21.6 osh-cpython
31 no-host abuild-print-help 23 20 3 8.8 osh-native
1 no-host bin-true 673 492 211 3.0 bash
9 no-host bin-true 542 412 140 1.6 dash
17 no-host bin-true 2,239 1,505 988 17.3 osh-cpython
25 no-host bin-true 824 597 243 8.1 osh-native
2 no-host configure.cpython 15,071 9,250 6,222 27.4 bash
10 no-host configure.cpython 15,122 9,171 6,360 27.3 dash
18 no-host configure.cpython 28,781 17,515 13,117 27.4 osh-cpython
26 no-host configure.cpython 15,344 8,934 6,682 27.4 osh-native
4 no-host configure.ocaml 3,796 1,600 1,235 20.6 bash
12 no-host configure.ocaml 3,801 1,639 1,185 20.6 dash
20 no-host configure.ocaml 4,615 2,271 1,545 20.6 osh-cpython
28 no-host configure.ocaml 3,835 1,574 1,299 20.4 osh-native
5 no-host configure.tcc 48 32 16 19.4 bash
13 no-host configure.tcc 43 29 14 19.3 dash
21 no-host configure.tcc 194 142 56 19.4 osh-cpython
29 no-host configure.tcc 50 27 23 19.4 osh-native
3 no-host configure.util-linux 13,995 8,881 5,592 30.1 bash
11 no-host configure.util-linux 15,005 9,067 6,437 30.3 dash
19 no-host configure.util-linux 31,315 20,690 11,719 30.3 osh-cpython
27 no-host configure.util-linux 14,436 8,619 6,019 30.4 osh-native
6 no-host configure.yash 1,826 1,083 752 24.2 bash
14 no-host configure.yash 1,816 1,048 772 24.2 dash
22 no-host configure.yash 2,450 1,460 1,032 25.2 osh-cpython
30 no-host configure.yash 1,827 1,022 810 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 25 24 17.0 osh-cpython
24 no-host hello-world 3 0 3 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,566 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,292 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,219 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 102,277 0 0 0 8 0 1,987 124 bash
9 no-host bin-true 65,382 0 0 0 8 0 1,981 73 dash
17 no-host bin-true 750,309 0 0 0 8 0 1,991 142 osh-cpython
25 no-host bin-true 128,211 0 0 0 16 0 1,987 153 osh-native
2 no-host configure.cpython 2,223,575 0 0 0 32,928 0 14,404 1,095 bash
10 no-host configure.cpython 2,252,894 0 0 0 32,992 0 14,579 1,002 dash
18 no-host configure.cpython 6,154,117 0 0 0 27,512 0 13,247 1,136 osh-cpython
26 no-host configure.cpython 2,228,946 0 0 0 27,520 0 13,261 988 osh-native
4 no-host configure.ocaml 410,695 0 0 0 5,120 0 1,945 175 bash
12 no-host configure.ocaml 391,558 0 0 0 5,112 0 1,943 153 dash
20 no-host configure.ocaml 637,247 0 0 0 5,112 0 1,858 184 osh-cpython
28 no-host configure.ocaml 413,760 0 0 0 5,120 0 1,935 170 osh-native
5 no-host configure.tcc 6,583 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,509 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,186 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,098,166 3 0 0 42,400 0 18,672 1,038 bash
11 no-host configure.util-linux 2,254,469 1 0 0 42,592 0 17,425 1,134 dash
19 no-host configure.util-linux 5,329,378 4 0 0 39,112 0 17,043 1,290 osh-cpython
27 no-host configure.util-linux 2,011,814 1 0 0 39,128 0 17,115 1,040 osh-native
6 no-host configure.yash 254,162 0 0 0 4,120 0 870 85 bash
14 no-host configure.yash 244,145 0 0 0 3,720 0 866 84 dash
22 no-host configure.yash 385,586 0 0 0 3,728 0 858 107 osh-cpython
30 no-host configure.yash 258,761 0 0 0 3,736 0 854 95 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,649 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-853edcf1
dash dash-308ec8e6
osh-cpython osh-d85a97bd
osh-native osh-d1bb9f99
host label host id
no-host no-host-13226fd6