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 453 22 23.42 1.15
bin-true no-host 669 534 2,214 817 3.31 1.22
configure.cpython no-host 14,876 15,013 28,270 15,255 1.90 1.03
configure.ocaml no-host 3,792 3,726 4,596 3,824 1.21 1.01
configure.tcc no-host 47 42 192 49 4.05 1.03
configure.util-linux no-host 13,966 14,873 31,088 14,501 2.23 1.04
configure.yash no-host 1,807 1,767 2,454 1,825 1.36 1.01
hello-world no-host 2 1 47 3 31.39 1.92

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,539 1,097 23,687 3,206 9.33 1.26
bin-true no-host 103,297 66,427 742,553 128,091 7.19 1.24
configure.cpython no-host 2,220,482 2,241,411 6,108,381 2,234,482 2.75 1.01
configure.ocaml no-host 409,998 390,982 638,094 413,622 1.56 1.01
configure.tcc no-host 6,578 5,477 23,163 6,994 3.52 1.06
configure.util-linux no-host 2,097,012 2,263,334 5,313,957 2,014,893 2.53 0.96
configure.yash no-host 256,077 244,531 384,600 258,291 1.50 1.01
hello-world no-host 153 81 3,672 347 24.00 2.27

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.8 8.8 4.88 1.97
bin-true no-host 3.0 1.6 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.4 27.4 27.5 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.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.3 30.4 1.00 1.01
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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,873 1,165 2 0 50,000 0
bin-true no-host 817 1 2 2.7 8.0 154,687 12,991 2,798 11,737 78,342 64,608 5,012 3 50,000 0
configure.cpython no-host 15,255 1 60 15.8 27.5 1,772,603 49,196 28,507 101,770 908,049 762,784 42,399 60 50,000 0
configure.util-linux no-host 14,501 3 61 22.2 30.4 2,703,267 44,765 65,791 126,121 1,320,493 1,256,653 49,081 41 131,582 1
configure.ocaml no-host 3,824 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,627 69,800 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,522 30,522 0 1,599 14,797 14,126 350 0 50,000 0
configure.yash no-host 1,825 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,299 61,833 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,542 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 19 13 7 4.5 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 453 398 59 21.8 osh-cpython
31 no-host abuild-print-help 22 21 2 8.8 osh-native
1 no-host bin-true 669 479 220 3.0 bash
9 no-host bin-true 534 411 134 1.6 dash
17 no-host bin-true 2,214 1,471 993 17.4 osh-cpython
25 no-host bin-true 817 597 237 8.0 osh-native
2 no-host configure.cpython 14,876 8,996 6,280 27.4 bash
10 no-host configure.cpython 15,013 9,166 6,264 27.4 dash
18 no-host configure.cpython 28,270 17,085 13,001 27.4 osh-cpython
26 no-host configure.cpython 15,255 9,039 6,484 27.5 osh-native
4 no-host configure.ocaml 3,792 1,671 1,153 20.6 bash
12 no-host configure.ocaml 3,726 1,599 1,146 20.6 dash
20 no-host configure.ocaml 4,596 2,233 1,570 20.4 osh-cpython
28 no-host configure.ocaml 3,824 1,670 1,189 20.6 osh-native
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 42 21 21 19.4 dash
21 no-host configure.tcc 192 138 58 19.4 osh-cpython
29 no-host configure.tcc 49 29 21 19.4 osh-native
3 no-host configure.util-linux 13,966 8,889 5,548 30.1 bash
11 no-host configure.util-linux 14,873 9,058 6,304 30.1 dash
19 no-host configure.util-linux 31,088 20,921 11,239 30.3 osh-cpython
27 no-host configure.util-linux 14,501 8,578 6,104 30.4 osh-native
6 no-host configure.yash 1,807 1,050 767 24.4 bash
14 no-host configure.yash 1,767 1,036 734 24.2 dash
22 no-host configure.yash 2,454 1,541 955 24.4 osh-cpython
30 no-host configure.yash 1,825 1,087 741 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 28 19 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,539 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,687 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 103,297 0 0 0 8 0 1,987 80 bash
9 no-host bin-true 66,427 0 0 0 8 0 1,984 33 dash
17 no-host bin-true 742,553 0 0 0 8 0 1,995 210 osh-cpython
25 no-host bin-true 128,091 0 0 0 16 0 1,991 54 osh-native
2 no-host configure.cpython 2,220,482 0 0 0 32,928 0 14,541 1,034 bash
10 no-host configure.cpython 2,241,411 0 0 0 32,992 0 14,606 1,177 dash
18 no-host configure.cpython 6,108,381 1 0 0 27,512 0 13,294 1,297 osh-cpython
26 no-host configure.cpython 2,234,482 1 0 0 27,520 0 13,216 963 osh-native
4 no-host configure.ocaml 409,998 0 0 0 5,120 0 1,950 157 bash
12 no-host configure.ocaml 390,982 0 0 0 5,112 0 1,933 165 dash
20 no-host configure.ocaml 638,094 0 0 0 5,112 0 1,856 172 osh-cpython
28 no-host configure.ocaml 413,622 0 0 0 5,120 0 1,927 161 osh-native
5 no-host configure.tcc 6,578 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,163 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,097,012 0 0 0 42,400 0 18,655 1,076 bash
11 no-host configure.util-linux 2,263,334 0 0 0 42,584 0 17,411 1,171 dash
19 no-host configure.util-linux 5,313,957 12 0 0 39,112 0 17,030 1,298 osh-cpython
27 no-host configure.util-linux 2,014,893 1 0 0 39,128 0 17,054 1,044 osh-native
6 no-host configure.yash 256,077 0 0 0 4,120 0 869 76 bash
14 no-host configure.yash 244,531 0 0 0 3,720 0 872 71 dash
22 no-host configure.yash 384,600 0 0 0 3,728 0 857 108 osh-cpython
30 no-host configure.yash 258,291 0 0 0 3,736 0 850 88 osh-native
0 no-host hello-world 153 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,672 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-6ee85ff2
dash dash-308ec8e6
osh-cpython osh-13ca7ab5
osh-native osh-a94bf77b
host label host id
no-host no-host-1c33b689