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 20 10 475 23 23.83 1.17
bin-true no-host 702 558 2,347 834 3.34 1.19
configure.cpython no-host 16,080 16,073 30,662 16,153 1.91 1.00
configure.ocaml no-host 4,021 3,891 4,886 3,959 1.21 0.98
configure.tcc no-host 50 44 207 50 4.17 1.00
configure.util-linux no-host 14,927 15,783 33,325 15,189 2.23 1.02
configure.yash no-host 1,957 1,860 2,601 1,922 1.33 0.98
hello-world no-host 2 1 54 3 32.85 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,550 1,111 23,532 3,193 9.23 1.25
bin-true no-host 107,378 67,508 750,801 127,213 6.99 1.18
configure.cpython no-host 2,225,291 2,246,267 6,159,549 2,235,368 2.77 1.00
configure.ocaml no-host 410,799 391,394 641,238 413,718 1.56 1.01
configure.tcc no-host 6,539 5,480 23,336 6,965 3.57 1.07
configure.util-linux no-host 2,100,504 2,253,063 5,329,224 2,016,914 2.54 0.96
configure.yash no-host 256,670 243,652 385,096 259,230 1.50 1.01
hello-world no-host 155 78 3,688 351 23.79 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.5 3.4 21.8 8.9 4.88 2.00
bin-true no-host 3.0 1.6 17.4 8.3 5.78 2.74
configure.cpython no-host 27.4 27.3 27.3 27.5 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.3 19.4 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 1.01 1.00
hello-world no-host 2.9 1.3 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 834 1 2 2.7 8.3 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 16,153 1 66 15.8 27.5 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 15,189 3 66 22.2 30.3 2,703,513 44,766 65,792 126,155 1,320,632 1,256,726 49,086 41 131,584 1
configure.ocaml no-host 3,959 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.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,922 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 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 20 18 3 4.5 bash
15 no-host abuild-print-help 10 4 5 3.4 dash
23 no-host abuild-print-help 475 422 57 21.8 osh-cpython
31 no-host abuild-print-help 23 16 8 8.9 osh-native
1 no-host bin-true 702 516 217 3.0 bash
9 no-host bin-true 558 421 148 1.6 dash
17 no-host bin-true 2,347 1,481 1,144 17.4 osh-cpython
25 no-host bin-true 834 589 260 8.3 osh-native
2 no-host configure.cpython 16,080 9,442 7,059 27.4 bash
10 no-host configure.cpython 16,073 9,586 6,838 27.3 dash
18 no-host configure.cpython 30,662 18,372 14,312 27.3 osh-cpython
26 no-host configure.cpython 16,153 9,490 6,938 27.5 osh-native
4 no-host configure.ocaml 4,021 1,618 1,433 20.6 bash
12 no-host configure.ocaml 3,891 1,647 1,264 20.4 dash
20 no-host configure.ocaml 4,886 2,245 1,862 20.6 osh-cpython
28 no-host configure.ocaml 3,959 1,677 1,319 20.6 osh-native
5 no-host configure.tcc 50 37 13 19.3 bash
13 no-host configure.tcc 44 32 12 19.4 dash
21 no-host configure.tcc 207 142 69 19.4 osh-cpython
29 no-host configure.tcc 50 26 24 19.3 osh-native
3 no-host configure.util-linux 14,927 9,359 6,061 30.1 bash
11 no-host configure.util-linux 15,783 9,581 6,697 30.0 dash
19 no-host configure.util-linux 33,325 21,870 12,646 30.1 osh-cpython
27 no-host configure.util-linux 15,189 9,089 6,293 30.3 osh-native
6 no-host configure.yash 1,957 1,113 853 24.2 bash
14 no-host configure.yash 1,860 1,077 787 24.4 dash
22 no-host configure.yash 2,601 1,576 1,072 24.4 osh-cpython
30 no-host configure.yash 1,922 1,104 823 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 54 29 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,550 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,532 0 0 0 8 0 46 8 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 107,378 0 0 0 8 0 1,985 53 bash
9 no-host bin-true 67,508 0 0 0 8 0 1,982 35 dash
17 no-host bin-true 750,801 0 0 0 8 0 2,001 460 osh-cpython
25 no-host bin-true 127,213 0 0 0 16 0 1,987 61 osh-native
2 no-host configure.cpython 2,225,291 0 0 0 32,928 0 14,505 1,020 bash
10 no-host configure.cpython 2,246,267 0 0 0 32,992 0 14,661 955 dash
18 no-host configure.cpython 6,159,549 0 0 0 27,512 0 13,312 1,361 osh-cpython
26 no-host configure.cpython 2,235,368 0 0 0 27,520 0 13,331 963 osh-native
4 no-host configure.ocaml 410,799 0 0 0 5,120 0 1,952 158 bash
12 no-host configure.ocaml 391,394 0 0 0 5,112 0 1,941 146 dash
20 no-host configure.ocaml 641,238 0 0 0 5,112 0 1,858 177 osh-cpython
28 no-host configure.ocaml 413,718 0 0 0 5,120 0 1,931 163 osh-native
5 no-host configure.tcc 6,539 0 0 0 104 0 48 4 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 8 dash
21 no-host configure.tcc 23,336 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,965 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,100,504 0 0 0 42,400 0 18,471 1,288 bash
11 no-host configure.util-linux 2,253,063 4 0 0 42,584 0 17,424 1,209 dash
19 no-host configure.util-linux 5,329,224 9 0 0 39,128 0 17,071 1,396 osh-cpython
27 no-host configure.util-linux 2,016,914 4 0 0 39,144 0 17,203 981 osh-native
6 no-host configure.yash 256,670 0 0 0 4,120 0 869 81 bash
14 no-host configure.yash 243,652 0 0 0 3,720 0 865 79 dash
22 no-host configure.yash 385,096 0 0 0 3,728 0 859 80 osh-cpython
30 no-host configure.yash 259,230 0 0 0 3,736 0 853 85 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,688 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4314d2f4
dash dash-308ec8e6
osh-cpython osh-de8add44
osh-native osh-99c3cc54
host label host id
no-host no-host-556df3ee