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 464 22 24.27 1.15
bin-true no-host 675 543 2,229 808 3.30 1.20
configure.cpython no-host 15,071 15,173 28,632 15,339 1.90 1.02
configure.ocaml no-host 3,845 3,747 4,656 3,838 1.21 1.00
configure.tcc no-host 47 41 220 50 4.67 1.07
configure.util-linux no-host 14,128 14,957 31,154 14,495 2.21 1.03
configure.yash no-host 1,822 1,776 2,448 1,835 1.34 1.01
hello-world no-host 1 1 47 3 32.16 1.96

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,526 1,130 23,400 3,200 9.26 1.27
bin-true no-host 104,293 66,432 752,365 125,128 7.21 1.20
configure.cpython no-host 2,232,675 2,238,419 6,140,139 2,229,433 2.75 1.00
configure.ocaml no-host 410,475 391,508 639,021 413,174 1.56 1.01
configure.tcc no-host 6,541 5,477 23,204 6,999 3.55 1.07
configure.util-linux no-host 2,097,527 2,260,675 5,341,027 2,009,399 2.55 0.96
configure.yash no-host 256,416 245,164 386,088 258,013 1.51 1.01
hello-world no-host 154 82 3,659 348 23.76 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.4 21.4 8.8 4.79 1.97
bin-true no-host 2.9 1.4 17.4 8.0 6.05 2.77
configure.cpython no-host 27.4 27.3 27.3 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.2 30.0 30.3 0.99 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.2 6.0 5.95 2.09

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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 808 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,339 1 60 15.8 27.5 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,495 3 60 22.2 30.3 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,838 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.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,835 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,265 64,454 42,662 4,610 54,543 57,112 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 19 17 2 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 464 412 56 21.4 osh-cpython
31 no-host abuild-print-help 22 14 8 8.8 osh-native
1 no-host bin-true 675 506 201 2.9 bash
9 no-host bin-true 543 409 143 1.4 dash
17 no-host bin-true 2,229 1,413 1,074 17.4 osh-cpython
25 no-host bin-true 808 576 248 8.0 osh-native
2 no-host configure.cpython 15,071 8,992 6,464 27.4 bash
10 no-host configure.cpython 15,173 9,176 6,410 27.3 dash
18 no-host configure.cpython 28,632 17,401 13,062 27.3 osh-cpython
26 no-host configure.cpython 15,339 9,112 6,491 27.5 osh-native
4 no-host configure.ocaml 3,845 1,645 1,224 20.6 bash
12 no-host configure.ocaml 3,747 1,609 1,155 20.6 dash
20 no-host configure.ocaml 4,656 2,259 1,597 20.6 osh-cpython
28 no-host configure.ocaml 3,838 1,641 1,236 20.4 osh-native
5 no-host configure.tcc 47 35 13 19.3 bash
13 no-host configure.tcc 41 27 15 19.3 dash
21 no-host configure.tcc 220 169 54 19.4 osh-cpython
29 no-host configure.tcc 50 23 28 19.4 osh-native
3 no-host configure.util-linux 14,128 8,943 5,631 30.3 bash
11 no-host configure.util-linux 14,957 9,206 6,235 30.2 dash
19 no-host configure.util-linux 31,154 20,676 11,571 30.0 osh-cpython
27 no-host configure.util-linux 14,495 8,666 6,023 30.3 osh-native
6 no-host configure.yash 1,822 1,096 734 24.4 bash
14 no-host configure.yash 1,776 1,002 776 24.2 dash
22 no-host configure.yash 2,448 1,504 986 24.4 osh-cpython
30 no-host configure.yash 1,835 1,039 799 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 28 19 17.2 osh-cpython
24 no-host hello-world 3 3 0 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,526 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,400 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 104,293 0 0 0 8 0 1,994 157 bash
9 no-host bin-true 66,432 0 0 0 8 0 1,986 44 dash
17 no-host bin-true 752,365 0 0 0 8 0 1,999 175 osh-cpython
25 no-host bin-true 125,128 0 0 0 16 0 1,987 46 osh-native
2 no-host configure.cpython 2,232,675 0 0 0 32,928 0 14,450 1,117 bash
10 no-host configure.cpython 2,238,419 0 0 0 32,992 0 14,496 1,028 dash
18 no-host configure.cpython 6,140,139 0 0 0 27,512 0 13,217 1,231 osh-cpython
26 no-host configure.cpython 2,229,433 0 0 0 27,520 0 13,226 1,001 osh-native
4 no-host configure.ocaml 410,475 0 0 0 5,120 0 1,954 167 bash
12 no-host configure.ocaml 391,508 0 0 0 5,112 0 1,909 247 dash
20 no-host configure.ocaml 639,021 1 0 0 5,112 0 1,861 256 osh-cpython
28 no-host configure.ocaml 413,174 0 0 0 5,120 0 1,933 171 osh-native
5 no-host configure.tcc 6,541 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,204 0 0 0 96 0 52 12 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,097,527 0 0 0 42,400 0 18,499 1,056 bash
11 no-host configure.util-linux 2,260,675 0 0 0 42,584 0 17,419 1,128 dash
19 no-host configure.util-linux 5,341,027 11 0 0 39,112 0 17,063 1,146 osh-cpython
27 no-host configure.util-linux 2,009,399 0 0 0 39,128 0 17,003 1,160 osh-native
6 no-host configure.yash 256,416 0 0 0 4,120 0 869 92 bash
14 no-host configure.yash 245,164 0 0 0 3,720 0 863 86 dash
22 no-host configure.yash 386,088 0 0 0 3,728 0 856 125 osh-cpython
30 no-host configure.yash 258,013 0 0 0 3,736 0 853 90 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,659 0 0 0 8 0 7 1 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-68d9c3ca
dash dash-308ec8e6
osh-cpython osh-d70f7fcc
osh-native osh-e763d63d
host label host id
no-host no-host-13226fd6