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 450 22 23.67 1.18
bin-true no-host 673 544 2,201 810 3.27 1.20
configure.cpython no-host 14,822 14,925 28,160 15,110 1.90 1.02
configure.ocaml no-host 3,782 3,700 4,563 3,793 1.21 1.00
configure.tcc no-host 48 42 198 49 4.14 1.03
configure.util-linux no-host 13,838 14,763 30,769 14,242 2.22 1.03
configure.yash no-host 1,803 1,744 2,414 1,815 1.34 1.01
hello-world no-host 1 1 48 3 32.52 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,535 1,102 23,527 3,196 9.28 1.26
bin-true no-host 106,324 66,471 743,855 127,180 7.00 1.20
configure.cpython no-host 2,218,052 2,251,854 6,116,312 2,237,488 2.76 1.01
configure.ocaml no-host 410,036 391,286 638,089 413,437 1.56 1.01
configure.tcc no-host 6,537 5,513 23,196 6,952 3.55 1.06
configure.util-linux no-host 2,095,501 2,270,206 5,302,847 2,013,672 2.53 0.96
configure.yash no-host 256,546 245,187 384,698 258,756 1.50 1.01
hello-world no-host 152 82 3,662 350 24.09 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.2 3.4 21.8 8.9 5.19 2.12
bin-true no-host 3.0 1.6 17.4 8.1 5.78 2.70
configure.cpython no-host 27.4 27.4 27.5 27.1 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.4 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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 810 1 2 2.7 8.1 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,110 1 59 15.8 27.1 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,242 3 58 22.2 30.1 2,703,274 42,775 65,816 126,121 1,320,501 1,256,652 49,081 41 131,632 1
configure.ocaml no-host 3,793 0 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,815 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 5 4.2 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 450 415 39 21.8 osh-cpython
31 no-host abuild-print-help 22 8 15 8.9 osh-native
1 no-host bin-true 673 500 202 3.0 bash
9 no-host bin-true 544 415 138 1.6 dash
17 no-host bin-true 2,201 1,445 1,014 17.4 osh-cpython
25 no-host bin-true 810 556 267 8.1 osh-native
2 no-host configure.cpython 14,822 8,957 6,266 27.4 bash
10 no-host configure.cpython 14,925 9,023 6,325 27.4 dash
18 no-host configure.cpython 28,160 17,038 12,940 27.5 osh-cpython
26 no-host configure.cpython 15,110 8,995 6,391 27.1 osh-native
4 no-host configure.ocaml 3,782 1,681 1,137 20.6 bash
12 no-host configure.ocaml 3,700 1,547 1,173 20.6 dash
20 no-host configure.ocaml 4,563 2,188 1,578 20.6 osh-cpython
28 no-host configure.ocaml 3,793 1,651 1,183 20.6 osh-native
5 no-host configure.tcc 48 20 28 19.4 bash
13 no-host configure.tcc 42 24 18 19.3 dash
21 no-host configure.tcc 198 161 40 19.3 osh-cpython
29 no-host configure.tcc 49 29 21 19.3 osh-native
3 no-host configure.util-linux 13,838 8,745 5,567 30.1 bash
11 no-host configure.util-linux 14,763 9,009 6,254 30.0 dash
19 no-host configure.util-linux 30,769 20,781 11,059 30.3 osh-cpython
27 no-host configure.util-linux 14,242 8,728 5,711 30.1 osh-native
6 no-host configure.yash 1,803 1,045 767 24.2 bash
14 no-host configure.yash 1,744 1,013 735 24.2 dash
22 no-host configure.yash 2,414 1,502 953 24.4 osh-cpython
30 no-host configure.yash 1,815 1,076 743 24.4 osh-native
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 40 8 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,535 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,527 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,324 0 0 0 8 0 1,992 56 bash
9 no-host bin-true 66,471 0 0 0 8 0 1,986 98 dash
17 no-host bin-true 743,855 0 0 0 8 0 1,993 86 osh-cpython
25 no-host bin-true 127,180 0 0 0 16 0 1,996 203 osh-native
2 no-host configure.cpython 2,218,052 0 0 0 32,928 0 14,414 1,187 bash
10 no-host configure.cpython 2,251,854 0 0 0 32,992 0 14,640 1,095 dash
18 no-host configure.cpython 6,116,312 0 0 0 27,512 0 13,296 1,264 osh-cpython
26 no-host configure.cpython 2,237,488 0 0 0 27,520 0 13,327 1,121 osh-native
4 no-host configure.ocaml 410,036 0 0 0 5,120 0 1,960 179 bash
12 no-host configure.ocaml 391,286 0 0 0 5,112 0 1,913 135 dash
20 no-host configure.ocaml 638,089 0 0 0 5,112 0 1,860 180 osh-cpython
28 no-host configure.ocaml 413,437 0 0 0 5,120 0 1,932 161 osh-native
5 no-host configure.tcc 6,537 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,513 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,196 0 0 0 96 0 53 106 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,095,501 0 0 0 42,400 0 18,602 1,146 bash
11 no-host configure.util-linux 2,270,206 1 0 0 42,584 0 17,438 1,043 dash
19 no-host configure.util-linux 5,302,847 13 0 0 39,120 0 17,200 1,123 osh-cpython
27 no-host configure.util-linux 2,013,672 0 0 0 39,120 0 17,071 1,004 osh-native
6 no-host configure.yash 256,546 0 0 0 4,120 0 863 94 bash
14 no-host configure.yash 245,187 0 0 0 3,720 0 868 82 dash
22 no-host configure.yash 384,698 0 0 0 3,728 0 855 84 osh-cpython
30 no-host configure.yash 258,756 0 0 0 3,736 0 852 77 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,662 0 0 0 8 0 7 4 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-ab66af2e
dash dash-308ec8e6
osh-cpython osh-be244eb1
osh-native osh-4aa87ea2
host label host id
no-host no-host-1c33b689