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 465 23 23.88 1.19
bin-true no-host 680 553 2,287 830 3.36 1.22
configure.cpython no-host 15,517 15,480 30,006 15,881 1.93 1.02
configure.ocaml no-host 3,967 3,858 4,826 3,987 1.22 1.01
configure.tcc no-host 49 43 199 51 4.04 1.03
configure.util-linux no-host 14,456 15,448 32,935 14,966 2.28 1.04
configure.yash no-host 1,891 1,824 2,552 1,921 1.35 1.02
hello-world no-host 2 1 53 3 33.25 2.03

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,534 1,090 23,582 3,200 9.31 1.26
bin-true no-host 103,373 66,478 752,895 128,131 7.28 1.24
configure.cpython no-host 2,218,194 2,248,445 6,147,095 2,228,710 2.77 1.00
configure.ocaml no-host 410,732 391,201 639,985 414,358 1.56 1.01
configure.tcc no-host 6,573 5,490 23,274 7,009 3.54 1.07
configure.util-linux no-host 2,097,365 2,267,535 5,322,345 2,012,348 2.54 0.96
configure.yash no-host 256,204 244,546 384,056 258,616 1.50 1.01
hello-world no-host 154 81 3,684 347 23.92 2.25

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.9 8.8 5.06 2.03
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.5 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.0 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.6 17.4 6.3 6.05 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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 830 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,881 1 63 15.8 27.4 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,966 3 65 22.2 30.0 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,987 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 51 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,921 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 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 18 2 4.3 bash
15 no-host abuild-print-help 10 4 6 3.5 dash
23 no-host abuild-print-help 465 430 38 21.9 osh-cpython
31 no-host abuild-print-help 23 16 7 8.8 osh-native
1 no-host bin-true 680 493 218 3.0 bash
9 no-host bin-true 553 428 137 1.4 dash
17 no-host bin-true 2,287 1,462 1,090 17.4 osh-cpython
25 no-host bin-true 830 603 242 8.0 osh-native
2 no-host configure.cpython 15,517 9,206 6,709 27.5 bash
10 no-host configure.cpython 15,480 9,251 6,652 27.3 dash
18 no-host configure.cpython 30,006 18,189 13,784 27.5 osh-cpython
26 no-host configure.cpython 15,881 9,350 6,801 27.4 osh-native
4 no-host configure.ocaml 3,967 1,741 1,264 20.4 bash
12 no-host configure.ocaml 3,858 1,688 1,190 20.4 dash
20 no-host configure.ocaml 4,826 2,225 1,813 20.6 osh-cpython
28 no-host configure.ocaml 3,987 1,800 1,227 20.6 osh-native
5 no-host configure.tcc 49 37 13 19.3 bash
13 no-host configure.tcc 43 22 22 19.3 dash
21 no-host configure.tcc 199 155 48 19.4 osh-cpython
29 no-host configure.tcc 51 40 11 19.4 osh-native
3 no-host configure.util-linux 14,456 8,837 6,093 30.0 bash
11 no-host configure.util-linux 15,448 9,530 6,403 30.0 dash
19 no-host configure.util-linux 32,935 21,725 12,362 30.1 osh-cpython
27 no-host configure.util-linux 14,966 8,814 6,334 30.0 osh-native
6 no-host configure.yash 1,891 1,093 808 24.2 bash
14 no-host configure.yash 1,824 1,062 766 24.2 dash
22 no-host configure.yash 2,552 1,574 1,023 24.2 osh-cpython
30 no-host configure.yash 1,921 1,054 869 24.2 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 53 27 26 17.4 osh-cpython
24 no-host hello-world 3 0 3 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,534 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,582 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,200 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 103,373 0 0 0 8 0 1,991 116 bash
9 no-host bin-true 66,478 0 0 0 8 0 1,987 63 dash
17 no-host bin-true 752,895 0 0 0 8 0 1,995 200 osh-cpython
25 no-host bin-true 128,131 0 0 0 16 0 1,992 71 osh-native
2 no-host configure.cpython 2,218,194 0 0 0 32,928 0 14,426 1,120 bash
10 no-host configure.cpython 2,248,445 0 0 0 32,992 0 14,613 1,047 dash
18 no-host configure.cpython 6,147,095 1 0 0 27,512 0 13,316 1,467 osh-cpython
26 no-host configure.cpython 2,228,710 0 0 0 27,520 0 13,348 1,046 osh-native
4 no-host configure.ocaml 410,732 0 0 0 5,120 0 1,949 157 bash
12 no-host configure.ocaml 391,201 0 0 0 5,112 0 1,887 126 dash
20 no-host configure.ocaml 639,985 0 0 0 5,112 0 1,859 276 osh-cpython
28 no-host configure.ocaml 414,358 0 0 0 5,120 0 1,930 182 osh-native
5 no-host configure.tcc 6,573 0 0 0 104 0 48 0 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,274 0 0 0 96 0 52 5 osh-cpython
29 no-host configure.tcc 7,009 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,097,365 1 0 0 42,408 0 18,622 1,202 bash
11 no-host configure.util-linux 2,267,535 0 0 0 42,592 0 17,479 1,185 dash
19 no-host configure.util-linux 5,322,345 12 0 0 39,112 0 17,062 1,302 osh-cpython
27 no-host configure.util-linux 2,012,348 1 0 0 39,128 0 17,077 992 osh-native
6 no-host configure.yash 256,204 0 0 0 4,120 0 869 91 bash
14 no-host configure.yash 244,546 0 0 0 3,720 0 866 84 dash
22 no-host configure.yash 384,056 0 0 0 3,728 0 859 111 osh-cpython
30 no-host configure.yash 258,616 0 0 0 3,736 0 851 74 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,684 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-7830f151
dash dash-308ec8e6
osh-cpython osh-7b4a5e32
osh-native osh-1d1beb75
host label host id
no-host no-host-1c33b689