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 9 448 22 24.10 1.20
bin-true no-host 673 539 2,222 812 3.30 1.21
configure.cpython no-host 14,814 14,916 27,959 15,061 1.89 1.02
configure.ocaml no-host 3,753 3,702 4,557 3,793 1.21 1.01
configure.tcc no-host 47 41 188 48 3.98 1.02
configure.util-linux no-host 13,854 14,740 30,584 14,215 2.21 1.03
configure.yash no-host 1,798 1,746 2,385 1,804 1.33 1.00
hello-world no-host 1 1 47 3 31.33 1.85

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,564 1,089 23,073 3,153 9.00 1.23
bin-true no-host 105,373 65,456 743,932 127,568 7.06 1.21
configure.cpython no-host 2,221,218 2,245,691 6,069,881 2,253,503 2.73 1.01
configure.ocaml no-host 410,502 391,696 633,985 413,968 1.54 1.01
configure.tcc no-host 6,543 5,480 22,971 6,978 3.51 1.07
configure.util-linux no-host 2,108,446 2,256,906 5,295,555 2,015,890 2.51 0.96
configure.yash no-host 256,584 243,959 382,532 259,180 1.49 1.01
hello-world no-host 151 83 3,625 338 24.01 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.5 3.5 21.4 8.9 4.79 2.00
bin-true no-host 2.8 1.4 17.2 7.9 6.24 2.86
configure.cpython no-host 27.3 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.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.5 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.6 17.0 6.2 5.91 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.2 6.2 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 7.9 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,061 1 59 15.9 27.4 1,765,934 39,052 24,503 101,923 901,347 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,215 3 57 22.2 30.3 2,695,085 29,056 65,774 126,121 1,312,366 1,256,598 49,081 41 131,548 1
configure.ocaml no-host 3,793 0 2 2.7 20.6 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,804 1 2 2.6 24.2 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,013 64,388 42,627 4,601 54,295 57,117 478 3 85,254 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.5 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 448 381 70 21.4 osh-cpython
31 no-host abuild-print-help 22 17 6 8.9 osh-native
1 no-host bin-true 673 495 209 2.8 bash
9 no-host bin-true 539 424 126 1.4 dash
17 no-host bin-true 2,222 1,476 992 17.2 osh-cpython
25 no-host bin-true 812 570 258 7.9 osh-native
2 no-host configure.cpython 14,814 8,824 6,396 27.3 bash
10 no-host configure.cpython 14,916 9,000 6,345 27.4 dash
18 no-host configure.cpython 27,959 16,967 12,772 27.4 osh-cpython
26 no-host configure.cpython 15,061 8,888 6,445 27.4 osh-native
4 no-host configure.ocaml 3,753 1,633 1,161 20.6 bash
12 no-host configure.ocaml 3,702 1,603 1,120 20.6 dash
20 no-host configure.ocaml 4,557 2,102 1,656 20.6 osh-cpython
28 no-host configure.ocaml 3,793 1,586 1,246 20.6 osh-native
5 no-host configure.tcc 47 28 20 19.3 bash
13 no-host configure.tcc 41 24 18 19.3 dash
21 no-host configure.tcc 188 135 56 19.4 osh-cpython
29 no-host configure.tcc 48 33 16 19.4 osh-native
3 no-host configure.util-linux 13,854 8,685 5,657 30.1 bash
11 no-host configure.util-linux 14,740 9,115 6,129 30.3 dash
19 no-host configure.util-linux 30,584 20,631 10,997 30.3 osh-cpython
27 no-host configure.util-linux 14,215 8,586 5,830 30.3 osh-native
6 no-host configure.yash 1,798 1,079 725 24.4 bash
14 no-host configure.yash 1,746 993 757 24.5 dash
22 no-host configure.yash 2,385 1,482 944 24.4 osh-cpython
30 no-host configure.yash 1,804 1,064 744 24.2 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 21 26 17.0 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,564 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,073 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,153 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,373 0 0 0 8 0 1,997 55 bash
9 no-host bin-true 65,456 0 0 0 8 0 1,987 48 dash
17 no-host bin-true 743,932 0 0 0 8 0 1,995 296 osh-cpython
25 no-host bin-true 127,568 0 0 0 16 0 1,984 78 osh-native
2 no-host configure.cpython 2,221,218 2 0 0 32,928 0 14,609 1,075 bash
10 no-host configure.cpython 2,245,691 0 0 0 32,992 0 14,720 1,132 dash
18 no-host configure.cpython 6,069,881 3 0 0 27,512 0 13,269 993 osh-cpython
26 no-host configure.cpython 2,253,503 0 0 0 27,520 0 13,266 1,053 osh-native
4 no-host configure.ocaml 410,502 0 0 0 5,120 0 1,951 155 bash
12 no-host configure.ocaml 391,696 0 0 0 5,112 0 1,937 161 dash
20 no-host configure.ocaml 633,985 0 0 0 5,112 0 1,866 195 osh-cpython
28 no-host configure.ocaml 413,968 0 0 0 5,120 0 1,928 161 osh-native
5 no-host configure.tcc 6,543 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,971 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 46 3 osh-native
3 no-host configure.util-linux 2,108,446 0 0 0 42,408 0 18,412 1,088 bash
11 no-host configure.util-linux 2,256,906 0 0 0 42,592 0 17,279 1,037 dash
19 no-host configure.util-linux 5,295,555 15 0 0 39,112 0 17,032 1,182 osh-cpython
27 no-host configure.util-linux 2,015,890 1 0 0 39,120 0 16,967 979 osh-native
6 no-host configure.yash 256,584 0 0 0 4,120 0 868 75 bash
14 no-host configure.yash 243,959 0 0 0 3,720 0 865 83 dash
22 no-host configure.yash 382,532 0 0 0 3,728 0 858 86 osh-cpython
30 no-host configure.yash 259,180 0 0 0 3,736 0 853 95 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,625 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 338 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-880d108e
dash dash-308ec8e6
osh-cpython osh-dc150789
osh-native osh-8297333e
host label host id
no-host no-host-f581f4dd