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 467 23 24.07 1.20
bin-true no-host 674 544 2,267 823 3.36 1.22
configure.cpython no-host 15,327 15,445 29,139 15,635 1.90 1.02
configure.ocaml no-host 3,878 3,818 4,736 3,903 1.22 1.01
configure.tcc no-host 50 43 195 50 3.94 1.00
configure.util-linux no-host 14,359 15,194 31,963 14,698 2.23 1.02
configure.yash no-host 1,862 1,821 2,509 1,877 1.35 1.01
hello-world no-host 2 1 49 3 32.37 1.95

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,564 1,099 23,462 3,212 9.15 1.25
bin-true no-host 105,295 66,437 749,405 129,154 7.12 1.23
configure.cpython no-host 2,223,759 2,246,387 6,098,604 2,223,275 2.74 1.00
configure.ocaml no-host 410,680 391,200 637,449 413,324 1.55 1.01
configure.tcc no-host 6,550 5,494 23,122 7,002 3.53 1.07
configure.util-linux no-host 2,098,607 2,265,625 5,332,813 2,006,207 2.54 0.96
configure.yash no-host 256,185 244,570 385,806 258,216 1.51 1.01
hello-world no-host 156 81 3,658 349 23.45 2.24

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.2 3.4 21.8 9.0 5.19 2.16
bin-true no-host 2.9 1.4 17.2 8.1 5.95 2.82
configure.cpython no-host 27.3 27.4 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.1 19.3 0.99 1.00
configure.util-linux no-host 30.0 30.0 30.3 30.3 1.01 1.01
configure.yash no-host 24.4 24.4 24.2 24.5 0.99 1.01
hello-world no-host 2.9 1.4 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,718 3,718 0 684 1,870 1,164 2 0 50,000 0
bin-true no-host 823 1 2 2.7 8.1 154,683 12,988 2,795 11,737 78,339 64,607 5,012 3 50,000 0
configure.cpython no-host 15,635 1 65 15.8 27.4 1,772,599 49,193 28,504 101,770 908,046 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,698 3 63 22.2 30.3 2,703,263 44,762 65,788 126,121 1,320,490 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 3,903 1 2 2.7 20.6 150,025 11,041 5,134 8,602 71,624 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,518 30,518 0 1,599 14,794 14,125 350 0 50,000 0
configure.yash no-host 1,877 1 2 2.6 24.5 139,682 7,960 6,596 7,554 70,296 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,261 64,451 42,659 4,610 54,539 57,112 478 3 85,318 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 16 4 4.2 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 467 403 67 21.8 osh-cpython
31 no-host abuild-print-help 23 10 13 9.0 osh-native
1 no-host bin-true 674 503 204 2.9 bash
9 no-host bin-true 544 416 137 1.4 dash
17 no-host bin-true 2,267 1,467 1,070 17.2 osh-cpython
25 no-host bin-true 823 583 256 8.1 osh-native
2 no-host configure.cpython 15,327 9,190 6,543 27.3 bash
10 no-host configure.cpython 15,445 9,217 6,648 27.4 dash
18 no-host configure.cpython 29,139 17,746 13,285 27.4 osh-cpython
26 no-host configure.cpython 15,635 9,170 6,736 27.4 osh-native
4 no-host configure.ocaml 3,878 1,604 1,311 20.6 bash
12 no-host configure.ocaml 3,818 1,574 1,261 20.6 dash
20 no-host configure.ocaml 4,736 2,305 1,641 20.4 osh-cpython
28 no-host configure.ocaml 3,903 1,627 1,314 20.6 osh-native
5 no-host configure.tcc 50 28 22 19.3 bash
13 no-host configure.tcc 43 24 19 19.4 dash
21 no-host configure.tcc 195 151 48 19.1 osh-cpython
29 no-host configure.tcc 50 33 17 19.3 osh-native
3 no-host configure.util-linux 14,359 8,973 5,869 30.0 bash
11 no-host configure.util-linux 15,194 9,230 6,466 30.0 dash
19 no-host configure.util-linux 31,963 21,146 11,940 30.3 osh-cpython
27 no-host configure.util-linux 14,698 8,697 6,199 30.3 osh-native
6 no-host configure.yash 1,862 1,063 808 24.4 bash
14 no-host configure.yash 1,821 1,053 772 24.4 dash
22 no-host configure.yash 2,509 1,549 1,005 24.2 osh-cpython
30 no-host configure.yash 1,877 1,105 777 24.5 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 37 12 17.2 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,564 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,462 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,212 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,295 0 0 0 8 0 1,991 49 bash
9 no-host bin-true 66,437 0 0 0 8 0 1,985 39 dash
17 no-host bin-true 749,405 0 0 0 8 0 1,994 344 osh-cpython
25 no-host bin-true 129,154 0 0 0 16 0 1,990 85 osh-native
2 no-host configure.cpython 2,223,759 1 0 0 32,928 0 14,496 976 bash
10 no-host configure.cpython 2,246,387 0 0 0 32,992 0 14,619 1,105 dash
18 no-host configure.cpython 6,098,604 0 0 0 27,512 0 13,316 1,157 osh-cpython
26 no-host configure.cpython 2,223,275 0 0 0 27,520 0 13,324 1,174 osh-native
4 no-host configure.ocaml 410,680 0 0 0 5,120 0 1,944 175 bash
12 no-host configure.ocaml 391,200 0 0 0 5,112 0 1,880 138 dash
20 no-host configure.ocaml 637,449 0 0 0 5,112 0 1,859 179 osh-cpython
28 no-host configure.ocaml 413,324 0 0 0 5,120 0 1,933 160 osh-native
5 no-host configure.tcc 6,550 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,494 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,122 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 7,002 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,098,607 0 0 0 42,400 0 18,589 1,058 bash
11 no-host configure.util-linux 2,265,625 1 0 0 42,584 0 17,504 1,147 dash
19 no-host configure.util-linux 5,332,813 10 0 0 39,112 0 17,094 1,321 osh-cpython
27 no-host configure.util-linux 2,006,207 1 0 0 39,128 0 17,070 1,029 osh-native
6 no-host configure.yash 256,185 0 0 0 4,120 0 872 77 bash
14 no-host configure.yash 244,570 0 0 0 3,720 0 863 82 dash
22 no-host configure.yash 385,806 0 0 0 3,728 0 855 86 osh-cpython
30 no-host configure.yash 258,216 0 0 0 3,736 0 852 70 osh-native
0 no-host hello-world 156 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,658 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-5ce4702c
dash dash-308ec8e6
osh-cpython osh-486e939a
osh-native osh-2e5cdfad
host label host id
no-host no-host-1c33b689