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 462 23 23.97 1.17
bin-true no-host 669 544 2,256 827 3.37 1.24
configure.cpython no-host 15,101 15,065 28,723 15,317 1.90 1.01
configure.ocaml no-host 3,819 3,752 4,623 3,838 1.21 1.00
configure.tcc no-host 47 42 194 49 4.09 1.04
configure.util-linux no-host 14,054 14,936 31,224 14,466 2.22 1.03
configure.yash no-host 1,813 1,768 2,454 1,830 1.35 1.01
hello-world no-host 2 1 47 3 28.32 1.70

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,540 1,101 23,230 3,202 9.15 1.26
bin-true no-host 104,271 66,468 748,188 130,149 7.18 1.25
configure.cpython no-host 2,218,093 2,246,354 6,146,315 2,237,056 2.77 1.01
configure.ocaml no-host 409,939 391,264 637,466 413,582 1.56 1.01
configure.tcc no-host 6,557 5,479 23,187 7,006 3.54 1.07
configure.util-linux no-host 2,098,551 2,262,231 5,306,839 2,012,547 2.53 0.96
configure.yash no-host 256,495 244,011 384,496 258,729 1.50 1.01
hello-world no-host 153 83 3,666 346 23.96 2.26

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.4 8.9 4.79 2.00
bin-true no-host 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 27.5 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.9 20.6 20.6 20.6 0.99 0.99
configure.tcc no-host 19.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.3 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.1 24.2 24.2 24.4 1.01 1.01
hello-world no-host 2.9 1.6 17.2 6.3 5.95 2.18

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.3 3,723 3,723 0 684 1,875 1,164 2 0 50,000 0
bin-true no-host 827 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,317 1 62 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,466 3 61 22.2 30.1 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,838 1 2 2.7 20.6 150,030 11,045 5,138 8,602 71,629 69,799 2,680 3 50,000 0
configure.tcc no-host 49 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,830 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.9 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 8 12 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 462 403 62 21.4 osh-cpython
31 no-host abuild-print-help 23 12 12 8.9 osh-native
1 no-host bin-true 669 493 206 2.9 bash
9 no-host bin-true 544 417 135 1.4 dash
17 no-host bin-true 2,256 1,487 1,029 17.3 osh-cpython
25 no-host bin-true 827 583 257 8.1 osh-native
2 no-host configure.cpython 15,101 8,934 6,542 27.5 bash
10 no-host configure.cpython 15,065 9,150 6,337 27.3 dash
18 no-host configure.cpython 28,723 17,408 13,160 27.4 osh-cpython
26 no-host configure.cpython 15,317 8,962 6,622 27.4 osh-native
4 no-host configure.ocaml 3,819 1,708 1,146 20.9 bash
12 no-host configure.ocaml 3,752 1,643 1,128 20.6 dash
20 no-host configure.ocaml 4,623 2,274 1,553 20.6 osh-cpython
28 no-host configure.ocaml 3,838 1,646 1,232 20.6 osh-native
5 no-host configure.tcc 47 28 20 19.4 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 194 162 34 19.3 osh-cpython
29 no-host configure.tcc 49 38 11 19.4 osh-native
3 no-host configure.util-linux 14,054 8,863 5,661 30.3 bash
11 no-host configure.util-linux 14,936 9,110 6,310 30.3 dash
19 no-host configure.util-linux 31,224 20,974 11,327 30.1 osh-cpython
27 no-host configure.util-linux 14,466 8,666 5,987 30.1 osh-native
6 no-host configure.yash 1,813 1,040 780 24.1 bash
14 no-host configure.yash 1,768 982 787 24.2 dash
22 no-host configure.yash 2,454 1,566 932 24.2 osh-cpython
30 no-host configure.yash 1,830 992 842 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 34 13 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,540 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,230 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 104,271 0 0 0 8 0 1,995 49 bash
9 no-host bin-true 66,468 0 0 0 8 0 1,987 38 dash
17 no-host bin-true 748,188 0 0 0 8 0 1,994 399 osh-cpython
25 no-host bin-true 130,149 0 0 0 16 0 1,985 51 osh-native
2 no-host configure.cpython 2,218,093 0 0 0 32,928 0 14,494 1,308 bash
10 no-host configure.cpython 2,246,354 0 0 0 32,992 0 14,546 1,067 dash
18 no-host configure.cpython 6,146,315 1 0 0 27,512 0 13,321 1,371 osh-cpython
26 no-host configure.cpython 2,237,056 0 0 0 27,520 0 13,310 1,070 osh-native
4 no-host configure.ocaml 409,939 0 0 0 5,120 0 1,947 186 bash
12 no-host configure.ocaml 391,264 0 0 0 5,112 0 1,885 152 dash
20 no-host configure.ocaml 637,466 0 0 0 5,112 0 1,859 213 osh-cpython
28 no-host configure.ocaml 413,582 0 0 0 5,120 0 1,939 162 osh-native
5 no-host configure.tcc 6,557 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,187 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 7,006 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,098,551 1 0 0 42,400 0 18,551 1,244 bash
11 no-host configure.util-linux 2,262,231 1 0 0 42,584 0 17,496 1,048 dash
19 no-host configure.util-linux 5,306,839 9 0 0 39,112 0 17,048 1,228 osh-cpython
27 no-host configure.util-linux 2,012,547 1 0 0 39,120 0 17,067 979 osh-native
6 no-host configure.yash 256,495 0 0 0 4,120 0 870 68 bash
14 no-host configure.yash 244,011 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 384,496 0 0 0 3,728 0 853 158 osh-cpython
30 no-host configure.yash 258,729 0 0 0 3,736 0 853 89 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,666 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-5efb0ada
dash dash-308ec8e6
osh-cpython osh-2981e29a
osh-native osh-40008866
host label host id
no-host no-host-13226fd6