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 20 10 460 23 23.11 1.15
bin-true no-host 695 568 2,356 834 3.39 1.20
configure.cpython no-host 15,925 16,099 29,684 15,833 1.86 0.99
configure.ocaml no-host 3,905 3,872 4,752 3,954 1.22 1.01
configure.tcc no-host 51 44 193 51 3.78 1.00
configure.util-linux no-host 14,683 15,827 32,162 14,815 2.19 1.01
configure.yash no-host 1,931 1,856 2,515 1,904 1.30 0.99
hello-world no-host 2 1 53 3 30.67 1.73

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,516 1,090 23,267 3,230 9.25 1.28
bin-true no-host 106,345 66,411 755,938 128,208 7.11 1.21
configure.cpython no-host 2,218,616 2,241,875 6,137,963 2,241,978 2.77 1.01
configure.ocaml no-host 410,890 391,162 637,220 413,390 1.55 1.01
configure.tcc no-host 6,551 5,474 23,186 6,985 3.54 1.07
configure.util-linux no-host 2,103,694 2,259,408 5,335,620 2,007,325 2.54 0.95
configure.yash no-host 256,792 245,203 385,156 258,756 1.50 1.01
hello-world no-host 153 82 3,655 341 23.89 2.23

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.2 3.4 21.4 9.0 5.09 2.16
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 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.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.2 6.2 6.24 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 834 1 2 2.7 8.0 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 15,833 1 66 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,815 3 65 22.2 30.1 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,954 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,904 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,257 64,449 42,657 4,609 54,535 57,113 478 3 85,314 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 20 14 7 4.2 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 460 402 62 21.4 osh-cpython
31 no-host abuild-print-help 23 16 7 9.0 osh-native
1 no-host bin-true 695 493 232 3.0 bash
9 no-host bin-true 568 422 156 1.4 dash
17 no-host bin-true 2,356 1,520 1,099 17.3 osh-cpython
25 no-host bin-true 834 594 253 8.0 osh-native
2 no-host configure.cpython 15,925 9,323 7,019 27.4 bash
10 no-host configure.cpython 16,099 9,561 6,980 27.4 dash
18 no-host configure.cpython 29,684 18,107 13,516 27.4 osh-cpython
26 no-host configure.cpython 15,833 9,384 6,722 27.4 osh-native
4 no-host configure.ocaml 3,905 1,670 1,275 20.6 bash
12 no-host configure.ocaml 3,872 1,650 1,240 20.6 dash
20 no-host configure.ocaml 4,752 2,281 1,679 20.6 osh-cpython
28 no-host configure.ocaml 3,954 1,740 1,254 20.6 osh-native
5 no-host configure.tcc 51 18 34 19.3 bash
13 no-host configure.tcc 44 28 16 19.3 dash
21 no-host configure.tcc 193 134 62 19.3 osh-cpython
29 no-host configure.tcc 51 23 28 19.3 osh-native
3 no-host configure.util-linux 14,683 9,211 5,962 30.0 bash
11 no-host configure.util-linux 15,827 9,522 6,828 30.1 dash
19 no-host configure.util-linux 32,162 21,213 12,079 30.1 osh-cpython
27 no-host configure.util-linux 14,815 9,021 5,994 30.1 osh-native
6 no-host configure.yash 1,931 1,091 850 24.4 bash
14 no-host configure.yash 1,856 1,050 808 24.4 dash
22 no-host configure.yash 2,515 1,627 930 24.4 osh-cpython
30 no-host configure.yash 1,904 1,076 833 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 53 37 16 17.2 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,516 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,267 0 0 0 8 0 47 6 osh-cpython
31 no-host abuild-print-help 3,230 0 0 0 16 0 40 3 osh-native
1 no-host bin-true 106,345 0 0 0 8 0 1,993 55 bash
9 no-host bin-true 66,411 0 0 0 8 0 1,988 205 dash
17 no-host bin-true 755,938 0 0 0 8 0 1,998 541 osh-cpython
25 no-host bin-true 128,208 0 0 0 16 0 1,986 68 osh-native
2 no-host configure.cpython 2,218,616 0 0 0 32,928 0 14,482 1,100 bash
10 no-host configure.cpython 2,241,875 0 0 0 32,992 0 14,683 1,019 dash
18 no-host configure.cpython 6,137,963 4 0 0 27,512 0 13,260 1,399 osh-cpython
26 no-host configure.cpython 2,241,978 0 0 0 27,520 0 13,315 1,183 osh-native
4 no-host configure.ocaml 410,890 0 0 0 5,120 0 1,948 155 bash
12 no-host configure.ocaml 391,162 0 0 0 5,112 0 1,886 144 dash
20 no-host configure.ocaml 637,220 0 0 0 5,112 0 1,856 171 osh-cpython
28 no-host configure.ocaml 413,390 0 0 0 5,120 0 1,935 151 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,186 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,985 0 0 0 104 0 47 6 osh-native
3 no-host configure.util-linux 2,103,694 0 0 0 42,400 0 18,612 1,146 bash
11 no-host configure.util-linux 2,259,408 1 0 0 42,592 0 17,477 1,165 dash
19 no-host configure.util-linux 5,335,620 8 0 0 39,112 0 17,065 1,261 osh-cpython
27 no-host configure.util-linux 2,007,325 1 0 0 39,128 0 17,083 1,150 osh-native
6 no-host configure.yash 256,792 0 0 0 4,120 0 868 93 bash
14 no-host configure.yash 245,203 0 0 0 3,720 0 870 81 dash
22 no-host configure.yash 385,156 0 0 0 3,728 0 859 110 osh-cpython
30 no-host configure.yash 258,756 0 0 0 3,736 0 854 80 osh-native
0 no-host hello-world 153 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,655 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-59462182
dash dash-308ec8e6
osh-cpython osh-12ff5388
osh-native osh-22ee11d4
host label host id
no-host no-host-e54d7702