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 460 22 24.00 1.16
bin-true no-host 686 543 2,220 815 3.24 1.19
configure.cpython no-host 15,005 15,109 28,438 15,312 1.90 1.02
configure.ocaml no-host 3,786 3,746 4,627 3,845 1.22 1.02
configure.tcc no-host 48 42 192 49 4.04 1.03
configure.util-linux no-host 13,998 14,857 31,248 14,434 2.23 1.03
configure.yash no-host 1,846 1,761 2,454 1,836 1.33 0.99
hello-world no-host 2 1 47 3 27.79 1.66

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,551 1,131 23,214 3,156 9.10 1.24
bin-true no-host 107,360 65,452 746,675 126,182 6.95 1.18
configure.cpython no-host 2,215,532 2,246,350 6,088,785 2,250,305 2.75 1.02
configure.ocaml no-host 410,404 391,175 637,312 414,202 1.55 1.01
configure.tcc no-host 6,572 5,473 23,195 6,997 3.53 1.06
configure.util-linux no-host 2,095,804 2,263,127 5,330,196 2,016,278 2.54 0.96
configure.yash no-host 255,656 245,266 384,483 258,364 1.50 1.01
hello-world no-host 152 83 3,653 343 24.03 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.2 3.7 21.6 8.9 5.16 2.12
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.3 19.1 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.4 30.0 1.00 0.99
configure.yash no-host 24.2 24.4 24.4 24.5 1.01 1.01
hello-world no-host 2.9 1.4 17.2 6.2 5.95 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 815 1 2 2.7 7.9 154,662 12,890 2,792 11,730 78,321 64,611 5,012 3 50,000 0
configure.cpython no-host 15,312 1 61 15.8 27.4 1,772,605 49,191 28,502 101,770 908,047 762,788 42,399 60 50,000 0
configure.util-linux no-host 14,434 3 60 22.2 30.0 2,703,269 44,760 65,806 126,121 1,320,491 1,256,657 49,081 41 131,612 1
configure.ocaml no-host 3,845 1 2 2.7 20.6 150,027 11,039 5,132 8,602 71,623 69,802 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,836 1 2 2.6 24.5 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,229 64,449 42,657 4,603 54,507 57,119 478 3 85,314 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 3 4.2 bash
15 no-host abuild-print-help 9 8 2 3.7 dash
23 no-host abuild-print-help 460 436 27 21.6 osh-cpython
31 no-host abuild-print-help 22 14 9 8.9 osh-native
1 no-host bin-true 686 495 223 2.9 bash
9 no-host bin-true 543 416 137 1.4 dash
17 no-host bin-true 2,220 1,423 1,044 17.3 osh-cpython
25 no-host bin-true 815 549 281 7.9 osh-native
2 no-host configure.cpython 15,005 8,977 6,420 27.4 bash
10 no-host configure.cpython 15,109 9,214 6,321 27.4 dash
18 no-host configure.cpython 28,438 17,142 13,113 27.5 osh-cpython
26 no-host configure.cpython 15,312 8,994 6,586 27.4 osh-native
4 no-host configure.ocaml 3,786 1,673 1,152 20.6 bash
12 no-host configure.ocaml 3,746 1,569 1,195 20.4 dash
20 no-host configure.ocaml 4,627 2,270 1,562 20.6 osh-cpython
28 no-host configure.ocaml 3,845 1,577 1,305 20.6 osh-native
5 no-host configure.tcc 48 33 15 19.1 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 192 141 54 19.1 osh-cpython
29 no-host configure.tcc 49 20 29 19.4 osh-native
3 no-host configure.util-linux 13,998 8,700 5,771 30.3 bash
11 no-host configure.util-linux 14,857 9,131 6,211 30.1 dash
19 no-host configure.util-linux 31,248 20,898 11,416 30.4 osh-cpython
27 no-host configure.util-linux 14,434 8,728 5,920 30.0 osh-native
6 no-host configure.yash 1,846 1,070 772 24.2 bash
14 no-host configure.yash 1,761 1,032 733 24.4 dash
22 no-host configure.yash 2,454 1,455 1,040 24.4 osh-cpython
30 no-host configure.yash 1,836 991 848 24.5 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 20 27 17.2 osh-cpython
24 no-host hello-world 3 3 0 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,551 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,131 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,214 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,156 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 107,360 0 0 0 8 0 1,990 96 bash
9 no-host bin-true 65,452 0 0 0 8 0 1,988 36 dash
17 no-host bin-true 746,675 0 0 0 8 0 1,994 130 osh-cpython
25 no-host bin-true 126,182 0 0 0 16 0 1,991 69 osh-native
2 no-host configure.cpython 2,215,532 0 0 0 32,928 0 14,495 1,131 bash
10 no-host configure.cpython 2,246,350 0 0 0 32,992 0 14,590 1,085 dash
18 no-host configure.cpython 6,088,785 0 0 0 27,512 0 13,281 1,172 osh-cpython
26 no-host configure.cpython 2,250,305 0 0 0 27,520 0 13,218 972 osh-native
4 no-host configure.ocaml 410,404 0 0 0 5,120 0 1,945 167 bash
12 no-host configure.ocaml 391,175 0 0 0 5,112 0 1,935 152 dash
20 no-host configure.ocaml 637,312 1 0 0 5,112 0 1,867 167 osh-cpython
28 no-host configure.ocaml 414,202 0 0 0 5,120 0 1,932 145 osh-native
5 no-host configure.tcc 6,572 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,195 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,997 0 0 0 104 0 46 3 osh-native
3 no-host configure.util-linux 2,095,804 0 0 0 42,400 0 18,565 1,053 bash
11 no-host configure.util-linux 2,263,127 1 0 0 42,592 0 17,446 1,160 dash
19 no-host configure.util-linux 5,330,196 11 0 0 39,112 0 17,076 1,219 osh-cpython
27 no-host configure.util-linux 2,016,278 0 0 0 39,120 0 17,113 964 osh-native
6 no-host configure.yash 255,656 0 0 0 4,120 0 878 82 bash
14 no-host configure.yash 245,266 0 0 0 3,720 0 866 76 dash
22 no-host configure.yash 384,483 0 0 0 3,728 0 857 104 osh-cpython
30 no-host configure.yash 258,364 0 0 0 3,736 0 851 94 osh-native
0 no-host hello-world 152 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,653 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-81d056cf
dash dash-308ec8e6
osh-cpython osh-59720d55
osh-native osh-2c830bf8
host label host id
no-host no-host-e54d7702