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 10 444 22 23.09 1.15
bin-true no-host 687 544 2,264 822 3.30 1.20
configure.cpython no-host 14,960 15,262 28,375 15,229 1.90 1.02
configure.ocaml no-host 3,826 3,741 4,652 3,819 1.22 1.00
configure.tcc no-host 48 42 198 49 4.13 1.03
configure.util-linux no-host 14,019 14,930 31,214 14,310 2.23 1.02
configure.yash no-host 1,817 1,760 2,459 1,838 1.35 1.01
hello-world no-host 2 1 49 3 30.82 1.76

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,560 1,110 22,853 3,153 8.93 1.23
bin-true no-host 107,363 67,498 758,015 125,145 7.06 1.17
configure.cpython no-host 2,219,372 2,242,743 6,168,522 2,228,113 2.78 1.00
configure.ocaml no-host 410,721 391,278 640,056 413,810 1.56 1.01
configure.tcc no-host 6,571 5,480 23,236 6,976 3.54 1.06
configure.util-linux no-host 2,107,556 2,266,154 5,341,999 1,990,513 2.53 0.94
configure.yash no-host 255,668 244,664 384,647 258,537 1.50 1.01
hello-world no-host 155 80 3,692 347 23.82 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 8.9 5.03 2.06
bin-true no-host 3.0 1.3 17.6 8.1 5.82 2.70
configure.cpython no-host 27.4 27.4 27.5 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.4 19.3 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.4 30.0 30.0 30.3 0.99 1.00
configure.yash no-host 24.5 24.4 24.5 24.4 1.00 0.99
hello-world no-host 2.9 1.4 17.4 6.2 6.04 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 822 1 2 2.6 8.1 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,229 1 61 15.0 27.5 1,772,695 49,108 28,528 86,381 908,118 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,310 3 59 21.3 30.3 2,703,431 42,745 65,832 109,643 1,320,616 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,819 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.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,838 1 2 2.6 24.4 139,720 7,961 6,620 6,320 70,324 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 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 17 3 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 444 399 48 21.8 osh-cpython
31 no-host abuild-print-help 22 22 0 8.9 osh-native
1 no-host bin-true 687 522 197 3.0 bash
9 no-host bin-true 544 421 135 1.3 dash
17 no-host bin-true 2,264 1,466 1,064 17.6 osh-cpython
25 no-host bin-true 822 573 263 8.1 osh-native
2 no-host configure.cpython 14,960 8,920 6,434 27.4 bash
10 no-host configure.cpython 15,262 9,149 6,535 27.4 dash
18 no-host configure.cpython 28,375 17,047 13,169 27.5 osh-cpython
26 no-host configure.cpython 15,229 9,078 6,422 27.5 osh-native
4 no-host configure.ocaml 3,826 1,571 1,288 20.6 bash
12 no-host configure.ocaml 3,741 1,593 1,166 20.4 dash
20 no-host configure.ocaml 4,652 2,313 1,544 20.6 osh-cpython
28 no-host configure.ocaml 3,819 1,665 1,193 20.6 osh-native
5 no-host configure.tcc 48 20 28 19.4 bash
13 no-host configure.tcc 42 21 21 19.3 dash
21 no-host configure.tcc 198 136 65 19.4 osh-cpython
29 no-host configure.tcc 49 35 15 19.4 osh-native
3 no-host configure.util-linux 14,019 8,875 5,616 30.4 bash
11 no-host configure.util-linux 14,930 9,238 6,184 30.0 dash
19 no-host configure.util-linux 31,214 20,863 11,432 30.0 osh-cpython
27 no-host configure.util-linux 14,310 8,672 5,836 30.3 osh-native
6 no-host configure.yash 1,817 1,093 733 24.5 bash
14 no-host configure.yash 1,760 993 772 24.4 dash
22 no-host configure.yash 2,459 1,566 937 24.5 osh-cpython
30 no-host configure.yash 1,838 1,083 759 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 23 26 17.4 osh-cpython
24 no-host hello-world 3 0 3 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,560 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,853 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,153 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 107,363 0 0 0 8 0 1,994 101 bash
9 no-host bin-true 67,498 0 0 0 8 0 1,984 51 dash
17 no-host bin-true 758,015 0 0 0 8 0 1,989 185 osh-cpython
25 no-host bin-true 125,145 0 0 0 16 0 1,991 246 osh-native
2 no-host configure.cpython 2,219,372 0 0 0 32,928 0 14,529 1,145 bash
10 no-host configure.cpython 2,242,743 0 0 0 32,992 0 14,600 1,252 dash
18 no-host configure.cpython 6,168,522 1 0 0 27,512 0 13,280 1,199 osh-cpython
26 no-host configure.cpython 2,228,113 2 0 0 27,520 0 13,275 1,087 osh-native
4 no-host configure.ocaml 410,721 0 0 0 5,120 0 1,964 168 bash
12 no-host configure.ocaml 391,278 0 0 0 5,112 0 1,895 174 dash
20 no-host configure.ocaml 640,056 0 0 0 5,112 0 1,855 186 osh-cpython
28 no-host configure.ocaml 413,810 0 0 0 5,120 0 1,930 151 osh-native
5 no-host configure.tcc 6,571 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,236 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,976 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,107,556 0 0 0 42,400 0 18,606 1,058 bash
11 no-host configure.util-linux 2,266,154 0 0 0 42,584 0 17,514 1,087 dash
19 no-host configure.util-linux 5,341,999 5 0 0 39,112 0 16,960 1,275 osh-cpython
27 no-host configure.util-linux 1,990,513 0 0 0 39,120 0 17,006 1,072 osh-native
6 no-host configure.yash 255,668 0 0 0 4,120 0 870 66 bash
14 no-host configure.yash 244,664 0 0 0 3,720 0 871 82 dash
22 no-host configure.yash 384,647 0 0 0 3,728 0 854 79 osh-cpython
30 no-host configure.yash 258,537 0 0 0 3,736 0 847 80 osh-native
0 no-host hello-world 155 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,692 0 0 0 8 0 7 6 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-ff0ce9fb
dash dash-308ec8e6
osh-cpython osh-069c2294
osh-native osh-92ee5933
host label host id
no-host no-host-556df3ee