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 444 22 23.14 1.14
bin-true no-host 683 532 2,224 809 3.26 1.18
configure.cpython no-host 14,976 15,017 28,292 15,160 1.89 1.01
configure.ocaml no-host 3,780 3,722 4,598 3,830 1.22 1.01
configure.tcc no-host 48 41 193 49 4.03 1.02
configure.util-linux no-host 13,918 14,815 30,895 14,399 2.22 1.03
configure.yash no-host 1,860 1,750 2,446 1,822 1.31 0.98
hello-world no-host 2 1 48 3 32.11 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,532 1,130 22,845 3,193 9.02 1.26
bin-true no-host 105,291 66,431 750,277 127,112 7.13 1.21
configure.cpython no-host 2,224,411 2,238,782 6,141,252 2,218,458 2.76 1.00
configure.ocaml no-host 410,408 390,995 637,266 413,150 1.55 1.01
configure.tcc no-host 6,578 5,463 23,233 6,995 3.53 1.06
configure.util-linux no-host 2,103,643 2,258,775 5,278,762 2,003,316 2.51 0.95
configure.yash no-host 255,094 244,454 384,701 257,360 1.51 1.01
hello-world no-host 156 82 3,719 349 23.84 2.24

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.8 9.0 5.03 2.09
bin-true no-host 3.0 1.4 17.6 8.1 5.83 2.70
configure.cpython no-host 27.5 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.1 1.00 0.99
configure.util-linux no-host 30.0 30.1 30.3 30.1 1.01 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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,727 3,727 0 681 1,877 1,169 2 0 50,000 0
bin-true no-host 809 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,160 1 59 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,399 2 59 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,830 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.1 30,527 30,527 0 1,501 14,801 14,225 350 0 50,000 0
configure.yash no-host 1,822 1 2 2.6 24.4 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 9.0 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 17 3 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 444 408 39 21.8 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
1 no-host bin-true 683 508 205 3.0 bash
9 no-host bin-true 532 408 134 1.4 dash
17 no-host bin-true 2,224 1,516 964 17.6 osh-cpython
25 no-host bin-true 809 578 246 8.1 osh-native
2 no-host configure.cpython 14,976 9,106 6,263 27.5 bash
10 no-host configure.cpython 15,017 9,185 6,248 27.3 dash
18 no-host configure.cpython 28,292 17,464 12,639 27.4 osh-cpython
26 no-host configure.cpython 15,160 8,857 6,548 27.4 osh-native
4 no-host configure.ocaml 3,780 1,614 1,204 20.4 bash
12 no-host configure.ocaml 3,722 1,602 1,140 20.4 dash
20 no-host configure.ocaml 4,598 2,260 1,538 20.6 osh-cpython
28 no-host configure.ocaml 3,830 1,564 1,304 20.6 osh-native
5 no-host configure.tcc 48 35 14 19.3 bash
13 no-host configure.tcc 41 24 17 19.3 dash
21 no-host configure.tcc 193 160 35 19.3 osh-cpython
29 no-host configure.tcc 49 25 24 19.1 osh-native
3 no-host configure.util-linux 13,918 8,913 5,481 30.0 bash
11 no-host configure.util-linux 14,815 9,047 6,250 30.1 dash
19 no-host configure.util-linux 30,895 20,460 11,508 30.3 osh-cpython
27 no-host configure.util-linux 14,399 8,580 6,004 30.1 osh-native
6 no-host configure.yash 1,860 1,059 782 24.2 bash
14 no-host configure.yash 1,750 1,054 699 24.4 dash
22 no-host configure.yash 2,446 1,458 1,031 24.4 osh-cpython
30 no-host configure.yash 1,822 1,041 785 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 32 16 17.3 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,532 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,845 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 39 0 osh-native
1 no-host bin-true 105,291 0 0 0 8 0 1,987 61 bash
9 no-host bin-true 66,431 0 0 0 8 0 1,990 53 dash
17 no-host bin-true 750,277 0 0 0 8 0 1,998 202 osh-cpython
25 no-host bin-true 127,112 0 0 0 16 0 1,993 52 osh-native
2 no-host configure.cpython 2,224,411 0 0 0 32,928 0 14,458 1,185 bash
10 no-host configure.cpython 2,238,782 0 0 0 32,992 0 14,653 1,167 dash
18 no-host configure.cpython 6,141,252 0 0 0 27,512 0 13,246 1,176 osh-cpython
26 no-host configure.cpython 2,218,458 0 0 0 27,520 0 13,303 1,098 osh-native
4 no-host configure.ocaml 410,408 0 0 0 5,120 0 1,940 160 bash
12 no-host configure.ocaml 390,995 0 0 0 5,112 0 1,900 139 dash
20 no-host configure.ocaml 637,266 0 0 0 5,112 0 1,863 203 osh-cpython
28 no-host configure.ocaml 413,150 0 0 0 5,120 0 1,935 164 osh-native
5 no-host configure.tcc 6,578 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,233 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,995 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,103,643 0 0 0 42,400 0 18,681 1,029 bash
11 no-host configure.util-linux 2,258,775 0 0 0 42,592 0 17,485 1,371 dash
19 no-host configure.util-linux 5,278,762 6 0 0 39,112 0 17,098 1,287 osh-cpython
27 no-host configure.util-linux 2,003,316 0 0 0 39,120 0 16,986 1,118 osh-native
6 no-host configure.yash 255,094 0 0 0 4,120 0 877 80 bash
14 no-host configure.yash 244,454 0 0 0 3,720 0 869 69 dash
22 no-host configure.yash 384,701 0 0 0 3,728 0 856 79 osh-cpython
30 no-host configure.yash 257,360 0 0 0 3,736 0 850 93 osh-native
0 no-host hello-world 156 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,719 0 0 0 8 0 7 6 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-6e764633
dash dash-308ec8e6
osh-cpython osh-7fef9b60
osh-native osh-011f4d8f
host label host id
no-host no-host-556df3ee