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 454 22 23.66 1.14
bin-true no-host 665 542 2,241 812 3.37 1.22
configure.cpython no-host 15,109 15,215 28,525 15,285 1.89 1.01
configure.ocaml no-host 3,841 3,735 4,631 3,814 1.21 0.99
configure.tcc no-host 47 41 192 49 4.04 1.04
configure.util-linux no-host 14,111 14,914 31,123 14,361 2.21 1.02
configure.yash no-host 1,850 1,771 2,448 1,825 1.32 0.99
hello-world no-host 1 1 49 3 32.99 1.90

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,100 22,927 3,172 9.12 1.26
bin-true no-host 105,369 66,522 748,346 126,191 7.10 1.20
configure.cpython no-host 2,215,263 2,254,661 6,142,036 2,222,667 2.77 1.00
configure.ocaml no-host 410,448 391,034 636,846 413,409 1.55 1.01
configure.tcc no-host 6,590 5,456 23,213 6,981 3.52 1.06
configure.util-linux no-host 2,107,162 2,262,861 5,295,756 1,999,036 2.51 0.95
configure.yash no-host 254,958 245,160 384,453 257,837 1.51 1.01
hello-world no-host 151 83 3,726 349 24.68 2.31

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.9 8.8 5.06 2.03
bin-true no-host 3.0 1.3 17.4 8.1 5.78 2.70
configure.cpython no-host 27.4 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
hello-world no-host 2.8 1.4 17.3 6.3 6.29 2.29

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 681 1,877 1,169 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 154,692 12,992 2,799 9,731 78,346 66,615 5,012 3 50,000 0
configure.cpython no-host 15,285 1 62 15.0 27.4 1,772,668 49,197 28,508 86,378 908,098 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,361 2 60 21.3 30.1 2,703,404 44,766 65,812 109,640 1,320,596 1,273,168 49,081 41 131,624 1
configure.ocaml no-host 3,814 1 2 2.6 20.6 150,038 11,045 5,138 7,510 71,634 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,527 30,527 0 1,501 14,801 14,225 350 0 50,000 0
configure.yash no-host 1,825 1 2 2.6 24.2 139,695 7,964 6,600 6,317 70,306 63,072 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,552 54,546 57,172 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 16 4 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 454 403 54 21.9 osh-cpython
31 no-host abuild-print-help 22 10 13 8.8 osh-native
1 no-host bin-true 665 495 202 3.0 bash
9 no-host bin-true 542 420 131 1.3 dash
17 no-host bin-true 2,241 1,455 1,039 17.4 osh-cpython
25 no-host bin-true 812 570 258 8.1 osh-native
2 no-host configure.cpython 15,109 9,129 6,382 27.4 bash
10 no-host configure.cpython 15,215 9,309 6,329 27.4 dash
18 no-host configure.cpython 28,525 17,349 13,028 27.3 osh-cpython
26 no-host configure.cpython 15,285 9,038 6,511 27.4 osh-native
4 no-host configure.ocaml 3,841 1,634 1,233 20.4 bash
12 no-host configure.ocaml 3,735 1,585 1,170 20.6 dash
20 no-host configure.ocaml 4,631 2,263 1,571 20.6 osh-cpython
28 no-host configure.ocaml 3,814 1,682 1,169 20.6 osh-native
5 no-host configure.tcc 47 30 18 19.3 bash
13 no-host configure.tcc 41 30 11 19.3 dash
21 no-host configure.tcc 192 150 45 19.3 osh-cpython
29 no-host configure.tcc 49 20 30 19.3 osh-native
3 no-host configure.util-linux 14,111 8,959 5,639 30.3 bash
11 no-host configure.util-linux 14,914 9,092 6,320 30.1 dash
19 no-host configure.util-linux 31,123 20,799 11,412 30.1 osh-cpython
27 no-host configure.util-linux 14,361 8,688 5,870 30.1 osh-native
6 no-host configure.yash 1,850 1,031 827 24.4 bash
14 no-host configure.yash 1,771 1,016 758 24.4 dash
22 no-host configure.yash 2,448 1,451 1,040 24.4 osh-cpython
30 no-host configure.yash 1,825 1,091 739 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 28 21 17.3 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,515 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,927 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,172 0 0 0 16 0 38 0 osh-native
1 no-host bin-true 105,369 0 0 0 8 0 1,989 42 bash
9 no-host bin-true 66,522 0 0 0 8 0 1,992 45 dash
17 no-host bin-true 748,346 0 0 0 8 0 1,994 264 osh-cpython
25 no-host bin-true 126,191 0 0 0 16 0 1,990 75 osh-native
2 no-host configure.cpython 2,215,263 0 0 0 32,928 0 14,560 1,158 bash
10 no-host configure.cpython 2,254,661 1 0 0 32,992 0 14,623 1,340 dash
18 no-host configure.cpython 6,142,036 0 0 0 27,512 0 13,283 1,483 osh-cpython
26 no-host configure.cpython 2,222,667 0 0 0 27,520 0 13,185 1,072 osh-native
4 no-host configure.ocaml 410,448 0 0 0 5,120 0 1,948 164 bash
12 no-host configure.ocaml 391,034 0 0 0 5,112 0 1,880 145 dash
20 no-host configure.ocaml 636,846 0 0 0 5,112 0 1,851 200 osh-cpython
28 no-host configure.ocaml 413,409 0 0 0 5,120 0 1,930 159 osh-native
5 no-host configure.tcc 6,590 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,456 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,213 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,981 0 0 0 104 0 47 6 osh-native
3 no-host configure.util-linux 2,107,162 0 0 0 42,408 0 18,560 1,117 bash
11 no-host configure.util-linux 2,262,861 0 0 0 42,592 0 17,481 1,083 dash
19 no-host configure.util-linux 5,295,756 13 0 0 39,112 0 16,974 1,156 osh-cpython
27 no-host configure.util-linux 1,999,036 1 0 0 39,120 0 16,990 1,203 osh-native
6 no-host configure.yash 254,958 0 0 0 4,120 0 871 82 bash
14 no-host configure.yash 245,160 0 0 0 3,720 0 872 90 dash
22 no-host configure.yash 384,453 0 0 0 3,728 0 854 91 osh-cpython
30 no-host configure.yash 257,837 0 0 0 3,736 0 850 65 osh-native
0 no-host hello-world 151 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,726 0 0 0 8 0 7 3 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-8b7c20ff
dash dash-308ec8e6
osh-cpython osh-fe7e04de
osh-native osh-c515a50c
host label host id
no-host no-host-556df3ee