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 458 22 23.65 1.13
bin-true no-host 670 549 2,300 816 3.43 1.22
configure.cpython no-host 15,286 15,395 29,325 15,584 1.92 1.02
configure.ocaml no-host 3,863 3,823 4,730 3,883 1.22 1.01
configure.tcc no-host 49 42 198 49 4.04 1.00
configure.util-linux no-host 14,256 15,140 31,766 14,649 2.23 1.03
configure.yash no-host 1,851 1,803 2,491 1,845 1.35 1.00
hello-world no-host 2 1 51 3 30.96 1.74

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,501 1,136 22,925 3,177 9.17 1.27
bin-true no-host 106,291 66,427 759,867 127,078 7.15 1.20
configure.cpython no-host 2,216,861 2,247,581 6,179,604 2,224,986 2.79 1.00
configure.ocaml no-host 410,484 390,894 640,605 413,411 1.56 1.01
configure.tcc no-host 6,560 5,479 23,274 6,983 3.55 1.06
configure.util-linux no-host 2,107,124 2,261,398 5,331,774 1,994,338 2.53 0.95
configure.yash no-host 256,825 243,653 385,387 258,420 1.50 1.01
hello-world no-host 152 82 3,701 347 24.35 2.28

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 8.9 5.06 2.06
bin-true no-host 2.9 1.4 17.4 8.0 6.04 2.77
configure.cpython no-host 27.3 27.5 27.5 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.6 17.4 6.2 6.33 2.24

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 816 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,584 1 62 15.0 27.4 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,649 3 61 21.3 30.1 2,703,426 42,745 65,812 109,643 1,320,611 1,273,172 27,391 41 131,624 1
configure.ocaml no-host 3,883 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,845 1 2 2.6 24.4 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 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 10 10 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 458 421 39 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
1 no-host bin-true 670 491 211 2.9 bash
9 no-host bin-true 549 427 131 1.4 dash
17 no-host bin-true 2,300 1,476 1,095 17.4 osh-cpython
25 no-host bin-true 816 581 247 8.0 osh-native
2 no-host configure.cpython 15,286 8,921 6,771 27.3 bash
10 no-host configure.cpython 15,395 9,295 6,525 27.5 dash
18 no-host configure.cpython 29,325 17,704 13,532 27.5 osh-cpython
26 no-host configure.cpython 15,584 9,021 6,823 27.4 osh-native
4 no-host configure.ocaml 3,863 1,663 1,239 20.6 bash
12 no-host configure.ocaml 3,823 1,661 1,183 20.6 dash
20 no-host configure.ocaml 4,730 2,246 1,698 20.6 osh-cpython
28 no-host configure.ocaml 3,883 1,674 1,247 20.6 osh-native
5 no-host configure.tcc 49 31 19 19.3 bash
13 no-host configure.tcc 42 37 5 19.3 dash
21 no-host configure.tcc 198 162 39 19.4 osh-cpython
29 no-host configure.tcc 49 27 22 19.4 osh-native
3 no-host configure.util-linux 14,256 8,870 5,858 30.1 bash
11 no-host configure.util-linux 15,140 9,322 6,296 30.3 dash
19 no-host configure.util-linux 31,766 21,063 11,814 30.1 osh-cpython
27 no-host configure.util-linux 14,649 8,870 5,979 30.1 osh-native
6 no-host configure.yash 1,851 1,067 793 24.2 bash
14 no-host configure.yash 1,803 1,011 795 24.4 dash
22 no-host configure.yash 2,491 1,550 985 24.4 osh-cpython
30 no-host configure.yash 1,845 1,109 741 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 51 31 19 17.4 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,501 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 22,925 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,177 0 0 0 16 0 39 3 osh-native
1 no-host bin-true 106,291 0 0 0 8 0 1,994 49 bash
9 no-host bin-true 66,427 0 0 0 8 0 1,986 41 dash
17 no-host bin-true 759,867 0 0 0 8 0 1,996 264 osh-cpython
25 no-host bin-true 127,078 0 0 0 16 0 1,994 192 osh-native
2 no-host configure.cpython 2,216,861 0 0 0 32,928 0 14,443 1,198 bash
10 no-host configure.cpython 2,247,581 0 0 0 32,992 0 14,576 1,005 dash
18 no-host configure.cpython 6,179,604 1 0 0 27,512 0 13,247 1,362 osh-cpython
26 no-host configure.cpython 2,224,986 0 0 0 27,520 0 13,195 1,168 osh-native
4 no-host configure.ocaml 410,484 0 0 0 5,120 0 1,948 229 bash
12 no-host configure.ocaml 390,894 0 0 0 5,112 0 1,927 157 dash
20 no-host configure.ocaml 640,605 0 0 0 5,112 0 1,855 172 osh-cpython
28 no-host configure.ocaml 413,411 0 0 0 5,120 0 1,925 167 osh-native
5 no-host configure.tcc 6,560 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,274 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,983 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,107,124 0 0 0 42,400 0 18,572 1,087 bash
11 no-host configure.util-linux 2,261,398 1 0 0 42,584 0 17,458 1,112 dash
19 no-host configure.util-linux 5,331,774 12 0 0 39,120 0 16,961 1,153 osh-cpython
27 no-host configure.util-linux 1,994,338 0 0 0 39,128 0 16,994 977 osh-native
6 no-host configure.yash 256,825 0 0 0 4,120 0 872 75 bash
14 no-host configure.yash 243,653 0 0 0 3,720 0 871 84 dash
22 no-host configure.yash 385,387 0 0 0 3,728 0 855 91 osh-cpython
30 no-host configure.yash 258,420 0 0 0 3,736 0 850 78 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,701 0 0 0 8 0 7 4 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-57b5e7c7
dash dash-308ec8e6
osh-cpython osh-a9f990ef
osh-native osh-a6ec413e
host label host id
no-host no-host-556df3ee