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 23 23.95 1.16
bin-true no-host 678 546 2,261 807 3.34 1.19
configure.cpython no-host 15,221 15,506 29,394 15,534 1.93 1.02
configure.ocaml no-host 3,930 3,851 4,678 3,905 1.19 0.99
configure.tcc no-host 49 42 192 49 3.91 1.01
configure.util-linux no-host 14,330 15,410 32,236 14,736 2.25 1.03
configure.yash no-host 1,859 1,838 2,487 1,876 1.34 1.01
hello-world no-host 2 1 50 3 29.89 1.72

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,515 1,145 23,342 3,185 9.28 1.27
bin-true no-host 106,329 66,434 752,076 126,120 7.07 1.19
configure.cpython no-host 2,218,969 2,246,180 6,086,877 2,233,816 2.74 1.01
configure.ocaml no-host 410,834 391,549 636,724 413,455 1.55 1.01
configure.tcc no-host 6,550 5,485 23,154 6,983 3.53 1.07
configure.util-linux no-host 2,100,131 2,259,367 5,324,603 2,017,926 2.54 0.96
configure.yash no-host 256,007 244,565 385,316 259,143 1.51 1.01
hello-world no-host 153 85 3,668 350 23.97 2.29

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.5 21.5 8.7 4.97 2.00
bin-true no-host 3.0 1.3 17.4 7.9 5.78 2.61
configure.cpython no-host 27.3 27.5 27.4 27.5 1.00 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.4 1.01 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.2 24.5 24.5 1.00 1.00
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.3 6.2 3,724 3,724 0 684 1,876 1,164 2 0 50,000 0
bin-true no-host 807 1 2 2.7 7.9 154,689 12,992 2,799 11,737 78,345 64,607 5,012 3 50,000 0
configure.cpython no-host 15,534 1 65 15.8 27.5 1,772,605 49,197 28,508 101,770 908,052 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,736 3 65 22.2 30.1 2,703,269 44,766 65,792 126,121 1,320,496 1,256,652 49,081 41 131,584 1
configure.ocaml no-host 3,905 1 2 2.7 20.4 150,031 11,045 5,138 8,602 71,630 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,524 30,524 0 1,599 14,800 14,125 350 0 50,000 0
configure.yash no-host 1,876 1 2 2.6 24.5 139,688 7,964 6,600 7,554 70,302 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,267 64,455 42,663 4,610 54,545 57,112 478 3 85,326 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 15 5 4.3 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 464 406 61 21.5 osh-cpython
31 no-host abuild-print-help 23 14 9 8.7 osh-native
1 no-host bin-true 678 503 206 3.0 bash
9 no-host bin-true 546 418 136 1.3 dash
17 no-host bin-true 2,261 1,512 1,016 17.4 osh-cpython
25 no-host bin-true 807 578 246 7.9 osh-native
2 no-host configure.cpython 15,221 9,122 6,488 27.3 bash
10 no-host configure.cpython 15,506 9,416 6,515 27.5 dash
18 no-host configure.cpython 29,394 17,813 13,467 27.4 osh-cpython
26 no-host configure.cpython 15,534 9,083 6,712 27.5 osh-native
4 no-host configure.ocaml 3,930 1,681 1,252 20.4 bash
12 no-host configure.ocaml 3,851 1,646 1,226 20.6 dash
20 no-host configure.ocaml 4,678 2,310 1,568 20.6 osh-cpython
28 no-host configure.ocaml 3,905 1,688 1,254 20.4 osh-native
5 no-host configure.tcc 49 34 16 19.3 bash
13 no-host configure.tcc 42 19 23 19.3 dash
21 no-host configure.tcc 192 159 36 19.3 osh-cpython
29 no-host configure.tcc 49 30 20 19.3 osh-native
3 no-host configure.util-linux 14,330 9,027 5,773 30.0 bash
11 no-host configure.util-linux 15,410 9,144 6,746 30.1 dash
19 no-host configure.util-linux 32,236 21,529 11,834 30.1 osh-cpython
27 no-host configure.util-linux 14,736 8,818 6,112 30.1 osh-native
6 no-host configure.yash 1,859 1,067 799 24.5 bash
14 no-host configure.yash 1,838 1,133 708 24.2 dash
22 no-host configure.yash 2,487 1,532 999 24.5 osh-cpython
30 no-host configure.yash 1,876 1,107 773 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 50 42 7 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,515 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,145 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,342 0 0 0 8 0 47 5 osh-cpython
31 no-host abuild-print-help 3,185 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,329 0 0 0 8 0 1,983 41 bash
9 no-host bin-true 66,434 0 0 0 8 0 1,984 48 dash
17 no-host bin-true 752,076 0 0 0 8 0 1,993 181 osh-cpython
25 no-host bin-true 126,120 0 0 0 16 0 1,996 87 osh-native
2 no-host configure.cpython 2,218,969 1 0 0 32,928 0 14,570 1,007 bash
10 no-host configure.cpython 2,246,180 0 0 0 32,992 0 14,617 1,235 dash
18 no-host configure.cpython 6,086,877 0 0 0 27,512 0 13,239 1,133 osh-cpython
26 no-host configure.cpython 2,233,816 0 0 0 27,520 0 13,365 1,052 osh-native
4 no-host configure.ocaml 410,834 0 0 0 5,120 0 1,958 183 bash
12 no-host configure.ocaml 391,549 0 0 0 5,112 0 1,940 145 dash
20 no-host configure.ocaml 636,724 0 0 0 5,112 0 1,857 165 osh-cpython
28 no-host configure.ocaml 413,455 0 0 0 5,120 0 1,932 158 osh-native
5 no-host configure.tcc 6,550 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,154 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,983 0 0 0 104 0 46 3 osh-native
3 no-host configure.util-linux 2,100,131 0 0 0 42,408 0 18,580 980 bash
11 no-host configure.util-linux 2,259,367 0 0 0 42,592 0 17,480 1,067 dash
19 no-host configure.util-linux 5,324,603 13 0 0 39,136 0 17,043 1,240 osh-cpython
27 no-host configure.util-linux 2,017,926 0 0 0 39,120 0 17,087 1,190 osh-native
6 no-host configure.yash 256,007 0 0 0 4,120 0 867 91 bash
14 no-host configure.yash 244,565 0 0 0 3,720 0 868 85 dash
22 no-host configure.yash 385,316 0 0 0 3,728 0 854 84 osh-cpython
30 no-host configure.yash 259,143 0 0 0 3,736 0 851 76 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,668 0 0 0 8 0 7 4 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-20fe446f
dash dash-308ec8e6
osh-cpython osh-dc659731
osh-native osh-3b086618
host label host id
no-host no-host-1c33b689