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 458 22 23.72 1.13
bin-true no-host 688 552 2,302 811 3.35 1.18
configure.cpython no-host 14,939 14,971 29,321 15,336 1.96 1.03
configure.ocaml no-host 3,860 3,730 4,738 3,863 1.23 1.00
configure.tcc no-host 47 42 194 50 4.09 1.05
configure.util-linux no-host 14,022 15,094 31,523 14,784 2.25 1.05
configure.yash no-host 1,810 1,773 2,456 1,823 1.36 1.01
hello-world no-host 2 1 48 3 29.66 1.73

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,511 1,105 22,952 3,176 9.14 1.26
bin-true no-host 108,305 66,496 752,109 125,156 6.94 1.16
configure.cpython no-host 2,223,205 2,242,492 6,125,259 2,222,739 2.76 1.00
configure.ocaml no-host 410,690 390,774 638,889 413,372 1.56 1.01
configure.tcc no-host 6,566 5,481 23,317 7,010 3.55 1.07
configure.util-linux no-host 2,103,931 2,256,625 5,290,174 1,996,280 2.51 0.95
configure.yash no-host 256,026 244,602 384,305 257,803 1.50 1.01
hello-world no-host 154 83 3,679 350 23.89 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.3 3.4 21.8 9.0 5.03 2.09
bin-true no-host 2.9 1.4 17.4 8.0 6.05 2.77
configure.cpython no-host 27.5 27.3 27.4 27.4 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.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.3 30.0 1.00 1.00
configure.yash no-host 24.2 24.5 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 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,732 3,732 0 681 1,882 1,169 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.0 154,697 12,996 2,803 9,731 78,351 66,615 5,012 3 50,000 0
configure.cpython no-host 15,336 1 63 15.0 27.4 1,772,673 49,201 28,512 86,378 908,103 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,784 3 65 21.3 30.0 2,703,409 44,771 65,797 109,640 1,320,601 1,273,168 49,081 41 131,594 1
configure.ocaml no-host 3,863 1 2 2.6 20.6 150,043 11,050 5,143 7,510 71,639 70,894 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,532 30,532 0 1,501 14,806 14,225 350 0 50,000 0
configure.yash no-host 1,823 1 2 2.6 24.2 139,700 7,968 6,604 6,317 70,311 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,275 64,459 42,667 4,552 54,551 57,172 478 3 85,334 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.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 458 417 44 21.8 osh-cpython
31 no-host abuild-print-help 22 17 5 9.0 osh-native
1 no-host bin-true 688 504 216 2.9 bash
9 no-host bin-true 552 430 132 1.4 dash
17 no-host bin-true 2,302 1,513 1,057 17.4 osh-cpython
25 no-host bin-true 811 578 248 8.0 osh-native
2 no-host configure.cpython 14,939 8,839 6,494 27.5 bash
10 no-host configure.cpython 14,971 9,044 6,310 27.3 dash
18 no-host configure.cpython 29,321 17,902 13,341 27.4 osh-cpython
26 no-host configure.cpython 15,336 9,064 6,546 27.4 osh-native
4 no-host configure.ocaml 3,860 1,697 1,198 20.6 bash
12 no-host configure.ocaml 3,730 1,568 1,180 20.6 dash
20 no-host configure.ocaml 4,738 2,316 1,631 20.4 osh-cpython
28 no-host configure.ocaml 3,863 1,614 1,289 20.6 osh-native
5 no-host configure.tcc 47 30 18 19.3 bash
13 no-host configure.tcc 42 21 21 19.4 dash
21 no-host configure.tcc 194 128 70 19.3 osh-cpython
29 no-host configure.tcc 50 18 32 19.4 osh-native
3 no-host configure.util-linux 14,022 8,800 5,697 30.1 bash
11 no-host configure.util-linux 15,094 9,253 6,349 30.3 dash
19 no-host configure.util-linux 31,523 21,236 11,391 30.3 osh-cpython
27 no-host configure.util-linux 14,784 8,987 5,989 30.0 osh-native
6 no-host configure.yash 1,810 1,059 760 24.2 bash
14 no-host configure.yash 1,773 1,033 744 24.5 dash
22 no-host configure.yash 2,456 1,533 966 24.2 osh-cpython
30 no-host configure.yash 1,823 1,122 704 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 25 24 17.4 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,511 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,952 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 108,305 0 0 0 8 0 1,992 131 bash
9 no-host bin-true 66,496 0 0 0 8 0 1,991 138 dash
17 no-host bin-true 752,109 0 0 0 8 0 1,998 136 osh-cpython
25 no-host bin-true 125,156 0 0 0 16 0 1,992 53 osh-native
2 no-host configure.cpython 2,223,205 0 0 0 32,928 0 14,462 1,234 bash
10 no-host configure.cpython 2,242,492 0 0 0 32,992 0 14,596 1,112 dash
18 no-host configure.cpython 6,125,259 0 0 0 27,512 0 13,277 1,276 osh-cpython
26 no-host configure.cpython 2,222,739 0 0 0 27,520 0 13,297 1,104 osh-native
4 no-host configure.ocaml 410,690 0 0 0 5,120 0 1,957 170 bash
12 no-host configure.ocaml 390,774 0 0 0 5,112 0 1,891 162 dash
20 no-host configure.ocaml 638,889 0 0 0 5,112 0 1,852 193 osh-cpython
28 no-host configure.ocaml 413,372 0 0 0 5,120 0 1,929 159 osh-native
5 no-host configure.tcc 6,566 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,317 0 0 0 96 0 53 17 osh-cpython
29 no-host configure.tcc 7,010 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,103,931 0 0 0 42,400 0 18,587 1,077 bash
11 no-host configure.util-linux 2,256,625 1 0 0 42,584 0 17,493 1,206 dash
19 no-host configure.util-linux 5,290,174 5 0 0 39,112 0 16,917 1,375 osh-cpython
27 no-host configure.util-linux 1,996,280 0 0 0 39,120 0 16,995 1,083 osh-native
6 no-host configure.yash 256,026 0 0 0 4,120 0 868 81 bash
14 no-host configure.yash 244,602 0 0 0 3,720 0 865 81 dash
22 no-host configure.yash 384,305 0 0 0 3,728 0 851 105 osh-cpython
30 no-host configure.yash 257,803 0 0 0 3,736 0 851 88 osh-native
0 no-host hello-world 154 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,679 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-fc251d48
dash dash-308ec8e6
osh-cpython osh-973cadab
osh-native osh-4d650179
host label host id
no-host no-host-556df3ee