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 22 10 450 22 20.79 1.03
bin-true no-host 684 548 2,226 822 3.25 1.20
configure.cpython no-host 15,267 15,603 29,067 15,504 1.90 1.02
configure.ocaml no-host 3,888 3,792 4,687 3,879 1.21 1.00
configure.tcc no-host 49 42 192 50 3.92 1.02
configure.util-linux no-host 14,388 15,351 31,508 14,642 2.19 1.02
configure.yash no-host 1,884 1,792 2,456 1,869 1.30 0.99
hello-world no-host 2 1 49 3 32.01 1.96

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,547 1,116 23,440 3,223 9.20 1.27
bin-true no-host 107,340 66,422 749,593 128,143 6.98 1.19
configure.cpython no-host 2,217,824 2,240,514 6,133,730 2,237,443 2.77 1.01
configure.ocaml no-host 410,718 390,815 640,029 413,875 1.56 1.01
configure.tcc no-host 6,558 5,501 23,264 6,989 3.55 1.07
configure.util-linux no-host 2,101,659 2,254,796 5,331,010 2,023,831 2.54 0.96
configure.yash no-host 256,728 244,655 385,353 258,998 1.50 1.01
hello-world no-host 154 84 3,678 349 23.88 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.9 8.8 5.06 2.03
bin-true no-host 2.9 1.6 17.4 8.0 6.05 2.77
configure.cpython no-host 27.4 27.5 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.1 19.4 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.0 1.00 0.99
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.6 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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 822 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,504 1 62 15.8 27.4 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,642 3 62 22.2 30.0 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,879 1 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,869 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,270 64,455 42,663 4,610 54,546 57,114 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 22 16 7 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 450 413 40 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 8.8 osh-native
1 no-host bin-true 684 495 221 2.9 bash
9 no-host bin-true 548 414 143 1.6 dash
17 no-host bin-true 2,226 1,429 1,055 17.4 osh-cpython
25 no-host bin-true 822 588 248 8.0 osh-native
2 no-host configure.cpython 15,267 9,170 6,491 27.4 bash
10 no-host configure.cpython 15,603 9,500 6,533 27.5 dash
18 no-host configure.cpython 29,067 17,555 13,400 27.4 osh-cpython
26 no-host configure.cpython 15,504 9,205 6,566 27.4 osh-native
4 no-host configure.ocaml 3,888 1,579 1,350 20.6 bash
12 no-host configure.ocaml 3,792 1,662 1,147 20.6 dash
20 no-host configure.ocaml 4,687 2,259 1,633 20.4 osh-cpython
28 no-host configure.ocaml 3,879 1,662 1,255 20.6 osh-native
5 no-host configure.tcc 49 29 20 19.1 bash
13 no-host configure.tcc 42 32 11 19.4 dash
21 no-host configure.tcc 192 116 79 19.3 osh-cpython
29 no-host configure.tcc 50 28 22 19.4 osh-native
3 no-host configure.util-linux 14,388 9,104 5,768 30.3 bash
11 no-host configure.util-linux 15,351 9,311 6,541 30.1 dash
19 no-host configure.util-linux 31,508 21,119 11,489 30.1 osh-cpython
27 no-host configure.util-linux 14,642 8,941 5,888 30.0 osh-native
6 no-host configure.yash 1,884 1,181 712 24.2 bash
14 no-host configure.yash 1,792 1,039 755 24.2 dash
22 no-host configure.yash 2,456 1,515 982 24.4 osh-cpython
30 no-host configure.yash 1,869 1,030 842 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 21 28 17.4 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,547 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,116 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,440 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,223 0 0 0 16 0 40 1 osh-native
1 no-host bin-true 107,340 0 0 0 8 0 1,987 95 bash
9 no-host bin-true 66,422 0 0 0 8 0 1,992 29 dash
17 no-host bin-true 749,593 0 0 0 8 0 1,989 107 osh-cpython
25 no-host bin-true 128,143 0 0 0 16 0 1,986 66 osh-native
2 no-host configure.cpython 2,217,824 5 0 0 32,928 0 14,446 1,102 bash
10 no-host configure.cpython 2,240,514 0 0 0 32,992 0 14,665 1,098 dash
18 no-host configure.cpython 6,133,730 0 0 0 27,512 0 13,320 1,266 osh-cpython
26 no-host configure.cpython 2,237,443 0 0 0 27,520 0 13,350 1,083 osh-native
4 no-host configure.ocaml 410,718 0 0 0 5,120 0 1,945 150 bash
12 no-host configure.ocaml 390,815 0 0 0 5,112 0 1,864 160 dash
20 no-host configure.ocaml 640,029 0 0 0 5,112 0 1,854 195 osh-cpython
28 no-host configure.ocaml 413,875 0 0 0 5,120 0 1,935 187 osh-native
5 no-host configure.tcc 6,558 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,501 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,264 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,989 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,101,659 1 0 0 42,400 0 18,959 1,438 bash
11 no-host configure.util-linux 2,254,796 0 0 0 42,592 0 17,499 1,309 dash
19 no-host configure.util-linux 5,331,010 9 0 0 39,112 0 17,088 1,381 osh-cpython
27 no-host configure.util-linux 2,023,831 0 0 0 39,128 0 17,052 1,207 osh-native
6 no-host configure.yash 256,728 0 0 0 4,120 0 870 101 bash
14 no-host configure.yash 244,655 0 0 0 3,720 0 873 105 dash
22 no-host configure.yash 385,353 0 0 0 3,728 0 860 108 osh-cpython
30 no-host configure.yash 258,998 0 0 0 3,736 0 854 92 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,678 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-a9edb4f4
dash dash-308ec8e6
osh-cpython osh-07fd7d86
osh-native osh-812f0be9
host label host id
no-host no-host-556df3ee