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 455 22 23.72 1.14
bin-true no-host 669 538 2,282 818 3.41 1.22
configure.cpython no-host 14,929 15,039 28,729 15,233 1.92 1.02
configure.ocaml no-host 3,785 3,726 4,622 3,815 1.22 1.01
configure.tcc no-host 48 41 192 50 4.04 1.04
configure.util-linux no-host 13,937 14,821 31,052 14,350 2.23 1.03
configure.yash no-host 1,803 1,767 2,437 1,833 1.35 1.02
hello-world no-host 2 1 49 3 29.70 1.71

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,559 1,089 22,923 3,150 8.96 1.23
bin-true no-host 104,357 66,481 758,769 127,173 7.27 1.22
configure.cpython no-host 2,217,738 2,251,565 6,186,676 2,227,773 2.79 1.00
configure.ocaml no-host 409,986 391,414 640,797 413,669 1.56 1.01
configure.tcc no-host 6,549 5,490 23,306 7,012 3.56 1.07
configure.util-linux no-host 2,106,056 2,258,103 5,330,253 2,000,991 2.53 0.95
configure.yash no-host 256,139 244,522 385,757 256,961 1.51 1.00
hello-world no-host 152 80 3,698 350 24.33 2.30

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.7 8.9 5.03 2.06
bin-true no-host 2.9 1.4 17.6 8.0 6.09 2.77
configure.cpython no-host 27.5 27.3 27.1 27.5 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.6 6.3 6.09 2.18

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.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,233 1 59 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,350 3 60 21.3 30.1 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,815 1 2 2.6 20.4 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 50 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,833 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 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 13 6 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 455 421 37 21.7 osh-cpython
31 no-host abuild-print-help 22 16 6 8.9 osh-native
1 no-host bin-true 669 512 188 2.9 bash
9 no-host bin-true 538 415 133 1.4 dash
17 no-host bin-true 2,282 1,503 1,044 17.6 osh-cpython
25 no-host bin-true 818 584 248 8.0 osh-native
2 no-host configure.cpython 14,929 9,006 6,320 27.5 bash
10 no-host configure.cpython 15,039 9,202 6,253 27.3 dash
18 no-host configure.cpython 28,729 17,805 12,786 27.1 osh-cpython
26 no-host configure.cpython 15,233 9,086 6,419 27.5 osh-native
4 no-host configure.ocaml 3,785 1,702 1,123 20.6 bash
12 no-host configure.ocaml 3,726 1,588 1,158 20.6 dash
20 no-host configure.ocaml 4,622 2,249 1,580 20.6 osh-cpython
28 no-host configure.ocaml 3,815 1,622 1,233 20.4 osh-native
5 no-host configure.tcc 48 23 25 19.4 bash
13 no-host configure.tcc 41 22 20 19.4 dash
21 no-host configure.tcc 192 129 66 19.3 osh-cpython
29 no-host configure.tcc 50 31 19 19.4 osh-native
3 no-host configure.util-linux 13,937 8,756 5,651 30.3 bash
11 no-host configure.util-linux 14,821 9,186 6,128 30.3 dash
19 no-host configure.util-linux 31,052 20,509 11,617 30.3 osh-cpython
27 no-host configure.util-linux 14,350 8,648 5,903 30.1 osh-native
6 no-host configure.yash 1,803 1,066 745 24.2 bash
14 no-host configure.yash 1,767 1,012 759 24.4 dash
22 no-host configure.yash 2,437 1,480 999 24.2 osh-cpython
30 no-host configure.yash 1,833 999 838 24.2 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 49 33 16 17.6 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,559 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,923 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,150 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 104,357 0 0 0 8 0 1,992 58 bash
9 no-host bin-true 66,481 0 0 0 8 0 1,986 41 dash
17 no-host bin-true 758,769 0 0 0 8 0 1,995 372 osh-cpython
25 no-host bin-true 127,173 0 0 0 16 0 1,989 113 osh-native
2 no-host configure.cpython 2,217,738 0 0 0 32,928 0 14,552 1,036 bash
10 no-host configure.cpython 2,251,565 0 0 0 32,992 0 14,584 1,178 dash
18 no-host configure.cpython 6,186,676 1 0 0 27,512 0 13,233 1,120 osh-cpython
26 no-host configure.cpython 2,227,773 0 0 0 27,520 0 13,285 1,060 osh-native
4 no-host configure.ocaml 409,986 0 0 0 5,120 0 1,950 156 bash
12 no-host configure.ocaml 391,414 0 0 0 5,112 0 1,941 155 dash
20 no-host configure.ocaml 640,797 0 0 0 5,112 0 1,856 197 osh-cpython
28 no-host configure.ocaml 413,669 0 0 0 5,120 0 1,918 166 osh-native
5 no-host configure.tcc 6,549 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,306 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 7,012 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,106,056 0 0 0 42,400 0 18,551 1,024 bash
11 no-host configure.util-linux 2,258,103 0 0 0 42,584 0 17,347 1,014 dash
19 no-host configure.util-linux 5,330,253 12 0 0 39,112 0 16,918 1,229 osh-cpython
27 no-host configure.util-linux 2,000,991 0 0 0 39,120 0 17,093 1,034 osh-native
6 no-host configure.yash 256,139 0 0 0 4,120 0 869 83 bash
14 no-host configure.yash 244,522 0 0 0 3,720 0 868 73 dash
22 no-host configure.yash 385,757 0 0 0 3,728 0 855 116 osh-cpython
30 no-host configure.yash 256,961 0 0 0 3,736 0 849 90 osh-native
0 no-host hello-world 152 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,698 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e51c9cfe
dash dash-308ec8e6
osh-cpython osh-9d1aeaad
osh-native osh-aab2abfe
host label host id
no-host no-host-556df3ee