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 442 24 22.93 1.23
bin-true no-host 686 541 2,234 814 3.26 1.19
configure.cpython no-host 18,005 15,231 28,634 15,397 1.59 0.86
configure.ocaml no-host 3,829 3,735 4,661 3,797 1.22 0.99
configure.tcc no-host 49 41 199 52 4.10 1.07
configure.util-linux no-host 14,864 15,044 31,925 14,567 2.15 0.98
configure.yash no-host 1,832 1,772 2,479 1,807 1.35 0.99
hello-world no-host 2 1 49 3 28.83 1.66

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,530 1,105 24,766 3,380 9.79 1.34
bin-true no-host 106,347 66,500 748,603 125,135 7.04 1.18
configure.cpython no-host 2,219,024 2,243,096 6,184,764 2,242,705 2.79 1.01
configure.ocaml no-host 409,843 391,108 643,942 414,899 1.57 1.01
configure.tcc no-host 6,547 5,478 26,207 7,468 4.00 1.14
configure.util-linux no-host 2,097,377 2,253,337 5,704,324 2,077,811 2.72 0.99
configure.yash no-host 256,102 244,457 387,462 258,936 1.51 1.01
hello-world no-host 150 78 3,679 348 24.53 2.32

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 2.8 1.4 17.4 8.0 6.32 2.90
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.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.0 30.1 0.99 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
hello-world no-host 2.8 1.4 17.3 6.0 6.29 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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 814 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,397 1 63 15.8 27.3 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,567 3 62 22.2 30.1 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,797 1 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 52 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,807 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 9.0 116,270 64,455 42,663 4,610 54,546 57,114 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 12 8 4.3 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 442 421 26 21.8 osh-cpython
31 no-host abuild-print-help 24 18 6 9.0 osh-native
1 no-host bin-true 686 499 220 2.8 bash
9 no-host bin-true 541 411 139 1.4 dash
17 no-host bin-true 2,234 1,455 1,035 17.4 osh-cpython
25 no-host bin-true 814 582 247 8.0 osh-native
2 no-host configure.cpython 18,005 10,659 7,823 27.4 bash
10 no-host configure.cpython 15,231 9,272 6,374 27.5 dash
18 no-host configure.cpython 28,634 17,682 12,918 27.3 osh-cpython
26 no-host configure.cpython 15,397 8,913 6,796 27.3 osh-native
4 no-host configure.ocaml 3,829 1,618 1,251 20.6 bash
12 no-host configure.ocaml 3,735 1,549 1,206 20.6 dash
20 no-host configure.ocaml 4,661 2,375 1,507 20.4 osh-cpython
28 no-host configure.ocaml 3,797 1,659 1,183 20.6 osh-native
5 no-host configure.tcc 49 30 19 19.3 bash
13 no-host configure.tcc 41 32 10 19.4 dash
21 no-host configure.tcc 199 163 41 19.3 osh-cpython
29 no-host configure.tcc 52 25 28 19.3 osh-native
3 no-host configure.util-linux 14,864 9,289 6,043 30.3 bash
11 no-host configure.util-linux 15,044 9,243 6,299 30.1 dash
19 no-host configure.util-linux 31,925 21,719 12,132 30.0 osh-cpython
27 no-host configure.util-linux 14,567 9,065 5,934 30.1 osh-native
6 no-host configure.yash 1,832 1,136 704 24.2 bash
14 no-host configure.yash 1,772 1,054 722 24.4 dash
22 no-host configure.yash 2,479 1,522 1,008 24.2 osh-cpython
30 no-host configure.yash 1,807 1,052 761 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 33 16 17.3 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,530 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,766 0 0 0 8 0 53 12 osh-cpython
31 no-host abuild-print-help 3,380 0 0 0 16 0 47 5 osh-native
1 no-host bin-true 106,347 0 0 0 8 0 1,988 57 bash
9 no-host bin-true 66,500 0 0 0 8 0 1,988 41 dash
17 no-host bin-true 748,603 0 0 0 8 0 1,989 151 osh-cpython
25 no-host bin-true 125,135 0 0 0 16 0 1,991 75 osh-native
2 no-host configure.cpython 2,219,024 0 0 0 32,928 0 14,277 1,024 bash
10 no-host configure.cpython 2,243,096 0 0 0 32,992 0 14,543 1,278 dash
18 no-host configure.cpython 6,184,764 1 0 0 27,512 0 13,403 1,269 osh-cpython
26 no-host configure.cpython 2,242,705 4 0 0 27,520 0 13,536 1,242 osh-native
4 no-host configure.ocaml 409,843 0 0 0 5,120 0 1,947 152 bash
12 no-host configure.ocaml 391,108 0 0 0 5,112 0 1,887 209 dash
20 no-host configure.ocaml 643,942 0 0 0 5,112 0 1,885 172 osh-cpython
28 no-host configure.ocaml 414,899 0 0 0 5,120 0 1,957 170 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 26,207 0 0 0 96 0 67 5 osh-cpython
29 no-host configure.tcc 7,468 0 0 0 104 0 61 8 osh-native
3 no-host configure.util-linux 2,097,377 1 0 0 42,408 0 18,569 1,149 bash
11 no-host configure.util-linux 2,253,337 0 0 0 42,592 0 17,566 1,193 dash
19 no-host configure.util-linux 5,704,324 8 0 0 39,136 0 18,172 1,429 osh-cpython
27 no-host configure.util-linux 2,077,811 0 0 0 39,120 0 18,418 1,278 osh-native
6 no-host configure.yash 256,102 0 0 0 4,120 0 867 90 bash
14 no-host configure.yash 244,457 0 0 0 3,720 0 867 80 dash
22 no-host configure.yash 387,462 0 0 0 3,728 0 874 96 osh-cpython
30 no-host configure.yash 258,936 0 0 0 3,736 0 869 68 osh-native
0 no-host hello-world 150 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,679 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-ed340a82
dash dash-308ec8e6
osh-cpython osh-52e8dbfd
osh-native osh-34022829
host label host id
no-host no-host-556df3ee