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 459 22 23.79 1.14
bin-true no-host 682 548 2,290 818 3.36 1.20
configure.cpython no-host 15,113 15,228 28,752 15,345 1.90 1.02
configure.ocaml no-host 3,802 3,750 4,653 3,838 1.22 1.01
configure.tcc no-host 48 42 195 49 4.02 1.00
configure.util-linux no-host 14,104 14,949 31,284 14,545 2.22 1.03
configure.yash no-host 1,821 1,776 2,465 1,834 1.35 1.01
hello-world no-host 2 1 49 3 32.38 1.91

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,557 1,106 22,953 3,185 8.98 1.25
bin-true no-host 105,480 65,436 761,824 128,204 7.22 1.22
configure.cpython no-host 2,230,149 2,249,378 6,187,764 2,229,426 2.77 1.00
configure.ocaml no-host 410,167 390,688 640,969 413,774 1.56 1.01
configure.tcc no-host 6,529 5,495 23,294 7,018 3.57 1.07
configure.util-linux no-host 2,106,252 2,260,902 5,331,433 1,996,438 2.53 0.95
configure.yash no-host 255,585 244,469 385,702 257,491 1.51 1.01
hello-world no-host 149 80 3,696 347 24.81 2.33

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 9.0 5.06 2.09
bin-true no-host 3.0 1.4 17.6 8.3 5.82 2.74
configure.cpython no-host 27.4 27.3 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.1 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.3 29.9 30.0 0.99 0.99
configure.yash no-host 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.6 6.3 6.38 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.3 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,345 1 63 15.0 27.5 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,545 3 61 21.3 30.0 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,838 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,834 1 2 2.6 24.2 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 14 6 4.3 bash
15 no-host abuild-print-help 9 6 4 3.4 dash
23 no-host abuild-print-help 459 422 40 21.9 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
1 no-host bin-true 682 514 202 3.0 bash
9 no-host bin-true 548 428 128 1.4 dash
17 no-host bin-true 2,290 1,466 1,088 17.6 osh-cpython
25 no-host bin-true 818 598 234 8.3 osh-native
2 no-host configure.cpython 15,113 9,053 6,469 27.4 bash
10 no-host configure.cpython 15,228 9,062 6,584 27.3 dash
18 no-host configure.cpython 28,752 17,886 12,727 27.4 osh-cpython
26 no-host configure.cpython 15,345 9,077 6,536 27.5 osh-native
4 no-host configure.ocaml 3,802 1,614 1,226 20.6 bash
12 no-host configure.ocaml 3,750 1,603 1,161 20.6 dash
20 no-host configure.ocaml 4,653 2,255 1,604 20.6 osh-cpython
28 no-host configure.ocaml 3,838 1,632 1,243 20.6 osh-native
5 no-host configure.tcc 48 29 19 19.4 bash
13 no-host configure.tcc 42 23 20 19.1 dash
21 no-host configure.tcc 195 148 50 19.1 osh-cpython
29 no-host configure.tcc 49 26 24 19.3 osh-native
3 no-host configure.util-linux 14,104 8,923 5,653 30.3 bash
11 no-host configure.util-linux 14,949 9,148 6,294 30.3 dash
19 no-host configure.util-linux 31,284 21,169 11,199 29.9 osh-cpython
27 no-host configure.util-linux 14,545 8,702 6,018 30.0 osh-native
6 no-host configure.yash 1,821 1,150 679 24.4 bash
14 no-host configure.yash 1,776 1,013 766 24.4 dash
22 no-host configure.yash 2,465 1,432 1,076 24.2 osh-cpython
30 no-host configure.yash 1,834 1,080 758 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 41 8 17.6 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,557 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,953 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,185 0 0 0 16 0 38 2 osh-native
1 no-host bin-true 105,480 0 0 0 8 0 1,990 122 bash
9 no-host bin-true 65,436 0 0 0 8 0 1,987 79 dash
17 no-host bin-true 761,824 0 0 0 8 0 1,996 287 osh-cpython
25 no-host bin-true 128,204 0 0 0 16 0 1,988 62 osh-native
2 no-host configure.cpython 2,230,149 0 0 0 32,928 0 14,518 1,130 bash
10 no-host configure.cpython 2,249,378 0 0 0 32,992 0 14,527 1,020 dash
18 no-host configure.cpython 6,187,764 0 0 0 27,512 0 13,236 1,359 osh-cpython
26 no-host configure.cpython 2,229,426 0 0 0 27,520 0 13,318 1,086 osh-native
4 no-host configure.ocaml 410,167 0 0 0 5,120 0 1,950 176 bash
12 no-host configure.ocaml 390,688 0 0 0 5,112 0 1,874 129 dash
20 no-host configure.ocaml 640,969 0 0 0 5,112 0 1,853 210 osh-cpython
28 no-host configure.ocaml 413,774 0 0 0 5,120 0 1,934 159 osh-native
5 no-host configure.tcc 6,529 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,294 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,018 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,106,252 0 0 0 42,408 0 18,569 1,021 bash
11 no-host configure.util-linux 2,260,902 2 0 0 42,592 0 17,396 1,109 dash
19 no-host configure.util-linux 5,331,433 15 0 0 39,112 0 16,956 1,091 osh-cpython
27 no-host configure.util-linux 1,996,438 0 0 0 39,120 0 16,995 1,002 osh-native
6 no-host configure.yash 255,585 0 0 0 4,120 0 871 88 bash
14 no-host configure.yash 244,469 0 0 0 3,720 0 870 79 dash
22 no-host configure.yash 385,702 0 0 0 3,728 0 854 114 osh-cpython
30 no-host configure.yash 257,491 0 0 0 3,736 0 851 94 osh-native
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,696 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-3cc76968
dash dash-308ec8e6
osh-cpython osh-feaf3ba0
osh-native osh-556e2153
host label host id
no-host no-host-556df3ee