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 452 23 23.25 1.16
bin-true no-host 681 549 2,265 820 3.33 1.20
configure.cpython no-host 14,995 15,048 28,567 15,213 1.91 1.01
configure.ocaml no-host 3,784 3,711 4,609 3,793 1.22 1.00
configure.tcc no-host 48 42 192 48 4.02 1.01
configure.util-linux no-host 14,108 14,785 31,223 14,326 2.21 1.02
configure.yash no-host 1,821 1,768 2,450 1,820 1.35 1.00
hello-world no-host 2 1 49 3 31.09 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,529 1,118 22,776 3,183 9.01 1.26
bin-true no-host 104,333 65,497 752,746 128,173 7.21 1.23
configure.cpython no-host 2,219,751 2,243,583 6,138,810 2,221,792 2.77 1.00
configure.ocaml no-host 410,789 391,060 638,344 413,566 1.55 1.01
configure.tcc no-host 6,529 5,473 23,263 6,998 3.56 1.07
configure.util-linux no-host 2,108,174 2,258,298 5,306,193 1,996,571 2.52 0.95
configure.yash no-host 256,131 244,549 383,539 258,020 1.50 1.01
hello-world no-host 153 84 3,683 347 24.07 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.5 21.8 9.0 5.03 2.09
bin-true no-host 3.0 1.4 17.4 8.1 5.78 2.70
configure.cpython no-host 27.5 27.4 27.3 27.5 0.99 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.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.9 1.6 17.1 6.2 5.94 2.14

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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 820 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,213 1 60 15.0 27.5 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,326 3 60 21.3 30.1 2,703,426 42,790 65,831 109,643 1,320,611 1,273,172 49,081 41 131,662 1
configure.ocaml no-host 3,793 1 2 2.6 20.6 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.4 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,292 64,473 42,681 4,555 54,561 57,176 478 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 16 4 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 452 413 41 21.8 osh-cpython
31 no-host abuild-print-help 23 16 7 9.0 osh-native
1 no-host bin-true 681 507 205 3.0 bash
9 no-host bin-true 549 425 132 1.4 dash
17 no-host bin-true 2,265 1,514 1,013 17.4 osh-cpython
25 no-host bin-true 820 562 272 8.1 osh-native
2 no-host configure.cpython 14,995 8,976 6,414 27.5 bash
10 no-host configure.cpython 15,048 9,028 6,431 27.4 dash
18 no-host configure.cpython 28,567 17,682 12,742 27.3 osh-cpython
26 no-host configure.cpython 15,213 9,191 6,290 27.5 osh-native
4 no-host configure.ocaml 3,784 1,572 1,251 20.6 bash
12 no-host configure.ocaml 3,711 1,631 1,098 20.6 dash
20 no-host configure.ocaml 4,609 2,194 1,620 20.6 osh-cpython
28 no-host configure.ocaml 3,793 1,654 1,175 20.6 osh-native
5 no-host configure.tcc 48 26 22 19.3 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 192 163 32 19.3 osh-cpython
29 no-host configure.tcc 48 38 11 19.4 osh-native
3 no-host configure.util-linux 14,108 8,837 5,751 30.1 bash
11 no-host configure.util-linux 14,785 9,211 6,065 30.1 dash
19 no-host configure.util-linux 31,223 21,198 11,115 30.1 osh-cpython
27 no-host configure.util-linux 14,326 8,742 5,781 30.1 osh-native
6 no-host configure.yash 1,821 1,057 771 24.4 bash
14 no-host configure.yash 1,768 1,065 706 24.4 dash
22 no-host configure.yash 2,450 1,586 906 24.2 osh-cpython
30 no-host configure.yash 1,820 1,006 817 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 49 45 4 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,529 0 0 0 16 0 40 4 bash
15 no-host abuild-print-help 1,118 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,776 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,183 0 0 0 16 0 39 3 osh-native
1 no-host bin-true 104,333 0 0 0 8 0 1,985 62 bash
9 no-host bin-true 65,497 0 0 0 8 0 1,989 61 dash
17 no-host bin-true 752,746 0 0 0 8 0 1,995 263 osh-cpython
25 no-host bin-true 128,173 0 0 0 16 0 1,990 62 osh-native
2 no-host configure.cpython 2,219,751 2 0 0 32,928 0 14,489 1,134 bash
10 no-host configure.cpython 2,243,583 0 0 0 32,992 0 14,640 941 dash
18 no-host configure.cpython 6,138,810 0 0 0 27,512 0 13,240 1,187 osh-cpython
26 no-host configure.cpython 2,221,792 0 0 0 27,520 0 13,226 1,050 osh-native
4 no-host configure.ocaml 410,789 0 0 0 5,120 0 1,948 166 bash
12 no-host configure.ocaml 391,060 0 0 0 5,112 0 1,872 166 dash
20 no-host configure.ocaml 638,344 0 0 0 5,112 0 1,854 159 osh-cpython
28 no-host configure.ocaml 413,566 0 0 0 5,120 0 1,928 167 osh-native
5 no-host configure.tcc 6,529 0 0 0 104 0 49 10 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,263 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,998 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,108,174 0 0 0 42,400 0 18,583 1,162 bash
11 no-host configure.util-linux 2,258,298 1 0 0 42,592 0 17,490 1,039 dash
19 no-host configure.util-linux 5,306,193 8 0 0 39,112 0 16,910 1,227 osh-cpython
27 no-host configure.util-linux 1,996,571 4 0 0 39,120 0 16,966 981 osh-native
6 no-host configure.yash 256,131 0 0 0 4,120 0 876 80 bash
14 no-host configure.yash 244,549 0 0 0 3,720 0 872 83 dash
22 no-host configure.yash 383,539 0 0 0 3,728 0 853 84 osh-cpython
30 no-host configure.yash 258,020 0 0 0 3,736 0 847 84 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 1 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,683 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-a13c371a
dash dash-308ec8e6
osh-cpython osh-0eadd4e3
osh-native osh-f5024090
host label host id
no-host no-host-556df3ee