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 471 23 23.93 1.16
bin-true no-host 695 554 2,305 830 3.32 1.19
configure.cpython no-host 15,625 15,755 29,895 15,978 1.91 1.02
configure.ocaml no-host 3,950 3,872 4,803 3,966 1.22 1.00
configure.tcc no-host 49 42 201 50 4.12 1.02
configure.util-linux no-host 14,604 15,418 32,829 15,142 2.25 1.04
configure.yash no-host 1,900 1,832 2,555 1,907 1.35 1.00
hello-world no-host 2 1 50 3 32.59 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,579 1,136 23,414 3,193 9.08 1.24
bin-true no-host 107,314 65,463 753,416 126,161 7.02 1.18
configure.cpython no-host 2,219,423 2,243,497 6,142,105 2,231,576 2.77 1.01
configure.ocaml no-host 410,957 391,044 639,268 413,827 1.56 1.01
configure.tcc no-host 6,549 5,488 23,182 6,980 3.54 1.07
configure.util-linux no-host 2,101,245 2,262,627 5,323,861 2,012,101 2.53 0.96
configure.yash no-host 255,026 244,629 385,293 258,776 1.51 1.01
hello-world no-host 154 80 3,654 345 23.73 2.24

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.6 8.8 4.85 1.97
bin-true no-host 3.0 1.4 17.3 7.9 5.74 2.61
configure.cpython no-host 27.4 27.4 27.5 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.4 19.3 19.1 19.3 0.99 0.99
configure.util-linux no-host 30.4 30.0 30.1 30.1 0.99 0.99
configure.yash no-host 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.2 6.2 5.95 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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 830 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,978 1 64 15.8 27.3 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,142 3 65 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,966 1 2 2.7 20.4 150,029 11,044 5,137 8,602 71,628 69,799 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,798 14,125 350 0 50,000 0
configure.yash no-host 1,907 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 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 20 16 4 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 471 436 38 21.6 osh-cpython
31 no-host abuild-print-help 23 17 7 8.8 osh-native
1 no-host bin-true 695 523 202 3.0 bash
9 no-host bin-true 554 427 135 1.4 dash
17 no-host bin-true 2,305 1,486 1,096 17.3 osh-cpython
25 no-host bin-true 830 576 267 7.9 osh-native
2 no-host configure.cpython 15,625 9,363 6,662 27.4 bash
10 no-host configure.cpython 15,755 9,501 6,688 27.4 dash
18 no-host configure.cpython 29,895 17,815 14,019 27.5 osh-cpython
26 no-host configure.cpython 15,978 9,199 7,039 27.3 osh-native
4 no-host configure.ocaml 3,950 1,662 1,326 20.4 bash
12 no-host configure.ocaml 3,872 1,724 1,164 20.6 dash
20 no-host configure.ocaml 4,803 2,245 1,771 20.6 osh-cpython
28 no-host configure.ocaml 3,966 1,744 1,259 20.4 osh-native
5 no-host configure.tcc 49 33 16 19.4 bash
13 no-host configure.tcc 42 19 24 19.3 dash
21 no-host configure.tcc 201 136 69 19.1 osh-cpython
29 no-host configure.tcc 50 31 19 19.3 osh-native
3 no-host configure.util-linux 14,604 9,158 5,922 30.4 bash
11 no-host configure.util-linux 15,418 9,247 6,667 30.0 dash
19 no-host configure.util-linux 32,829 21,927 12,046 30.1 osh-cpython
27 no-host configure.util-linux 15,142 9,001 6,337 30.1 osh-native
6 no-host configure.yash 1,900 1,192 716 24.2 bash
14 no-host configure.yash 1,832 1,060 776 24.2 dash
22 no-host configure.yash 2,555 1,578 1,021 24.2 osh-cpython
30 no-host configure.yash 1,907 1,115 795 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 27 22 17.2 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,579 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,414 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 107,314 0 0 0 8 0 1,983 78 bash
9 no-host bin-true 65,463 0 0 0 8 0 1,980 52 dash
17 no-host bin-true 753,416 0 0 0 8 0 2,000 228 osh-cpython
25 no-host bin-true 126,161 0 0 0 16 0 1,989 53 osh-native
2 no-host configure.cpython 2,219,423 1 0 0 32,928 0 14,379 1,076 bash
10 no-host configure.cpython 2,243,497 0 0 0 32,992 0 14,661 1,058 dash
18 no-host configure.cpython 6,142,105 0 0 0 27,512 0 13,248 1,344 osh-cpython
26 no-host configure.cpython 2,231,576 0 0 0 27,520 0 13,341 1,062 osh-native
4 no-host configure.ocaml 410,957 0 0 0 5,120 0 1,962 187 bash
12 no-host configure.ocaml 391,044 0 0 0 5,112 0 1,903 163 dash
20 no-host configure.ocaml 639,268 0 0 0 5,112 0 1,854 198 osh-cpython
28 no-host configure.ocaml 413,827 0 0 0 5,120 0 1,928 166 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 48 1 dash
21 no-host configure.tcc 23,182 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,980 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,101,245 1 0 0 42,400 0 18,599 1,255 bash
11 no-host configure.util-linux 2,262,627 2 0 0 42,592 0 17,415 1,009 dash
19 no-host configure.util-linux 5,323,861 7 0 0 39,120 0 17,087 1,303 osh-cpython
27 no-host configure.util-linux 2,012,101 7 0 0 39,128 0 17,070 993 osh-native
6 no-host configure.yash 255,026 0 0 0 4,120 0 868 88 bash
14 no-host configure.yash 244,629 0 0 0 3,720 0 872 82 dash
22 no-host configure.yash 385,293 0 0 0 3,728 0 859 174 osh-cpython
30 no-host configure.yash 258,776 0 0 0 3,736 0 852 78 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,654 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-f20c1b70
dash dash-308ec8e6
osh-cpython osh-e3f735ef
osh-native osh-e7b86d83
host label host id
no-host no-host-13226fd6