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 447 22 23.22 1.15
bin-true no-host 684 555 2,209 817 3.23 1.19
configure.cpython no-host 15,045 15,129 28,359 15,288 1.88 1.02
configure.ocaml no-host 3,821 3,733 4,604 3,835 1.20 1.00
configure.tcc no-host 48 41 191 49 4.01 1.02
configure.util-linux no-host 14,073 14,888 31,047 14,404 2.21 1.02
configure.yash no-host 1,832 1,770 2,448 1,830 1.34 1.00
hello-world no-host 2 1 47 3 31.22 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,521 1,080 23,080 3,191 9.16 1.27
bin-true no-host 106,368 67,468 744,894 128,598 7.00 1.21
configure.cpython no-host 2,225,980 2,248,953 6,057,370 2,242,132 2.72 1.01
configure.ocaml no-host 410,370 391,004 634,486 413,865 1.55 1.01
configure.tcc no-host 6,535 5,476 22,940 6,959 3.51 1.06
configure.util-linux no-host 2,108,426 2,257,806 5,295,155 2,013,983 2.51 0.96
configure.yash no-host 256,168 243,691 383,573 259,197 1.50 1.01
hello-world no-host 156 83 3,623 339 23.22 2.17

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.5 8.9 4.97 2.06
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
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.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.0 5.9 5.91 2.05

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 5.9 3,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 817 1 2 2.7 8.0 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,288 1 61 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,404 3 58 22.2 30.3 2,695,085 29,056 65,754 126,121 1,312,366 1,256,598 49,081 41 131,508 1
configure.ocaml no-host 3,835 1 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 49 0 0 1.3 19.3 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,830 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 15 4 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 447 403 48 21.5 osh-cpython
31 no-host abuild-print-help 22 12 10 8.9 osh-native
1 no-host bin-true 684 501 215 2.9 bash
9 no-host bin-true 555 426 139 1.4 dash
17 no-host bin-true 2,209 1,391 1,064 17.3 osh-cpython
25 no-host bin-true 817 565 267 8.0 osh-native
2 no-host configure.cpython 15,045 9,013 6,429 27.4 bash
10 no-host configure.cpython 15,129 9,024 6,526 27.4 dash
18 no-host configure.cpython 28,359 17,305 12,851 27.4 osh-cpython
26 no-host configure.cpython 15,288 8,991 6,567 27.4 osh-native
4 no-host configure.ocaml 3,821 1,662 1,191 20.4 bash
12 no-host configure.ocaml 3,733 1,542 1,211 20.6 dash
20 no-host configure.ocaml 4,604 2,225 1,576 20.6 osh-cpython
28 no-host configure.ocaml 3,835 1,635 1,238 20.6 osh-native
5 no-host configure.tcc 48 25 23 19.4 bash
13 no-host configure.tcc 41 24 18 19.3 dash
21 no-host configure.tcc 191 149 45 19.3 osh-cpython
29 no-host configure.tcc 49 32 17 19.3 osh-native
3 no-host configure.util-linux 14,073 8,901 5,648 30.1 bash
11 no-host configure.util-linux 14,888 9,303 6,080 30.0 dash
19 no-host configure.util-linux 31,047 20,754 11,354 30.1 osh-cpython
27 no-host configure.util-linux 14,404 8,762 5,838 30.3 osh-native
6 no-host configure.yash 1,832 1,087 755 24.4 bash
14 no-host configure.yash 1,770 1,033 740 24.4 dash
22 no-host configure.yash 2,448 1,521 968 24.4 osh-cpython
30 no-host configure.yash 1,830 1,035 799 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 47 36 12 17.0 osh-cpython
24 no-host hello-world 3 3 0 5.9 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,521 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,080 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,080 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 40 1 osh-native
1 no-host bin-true 106,368 0 0 0 8 0 1,996 55 bash
9 no-host bin-true 67,468 0 0 0 8 0 1,983 82 dash
17 no-host bin-true 744,894 0 0 0 8 0 1,998 274 osh-cpython
25 no-host bin-true 128,598 0 0 0 16 0 1,986 53 osh-native
2 no-host configure.cpython 2,225,980 1 0 0 32,928 0 14,554 1,255 bash
10 no-host configure.cpython 2,248,953 0 0 0 32,992 0 14,673 1,034 dash
18 no-host configure.cpython 6,057,370 1 0 0 27,512 0 13,356 1,250 osh-cpython
26 no-host configure.cpython 2,242,132 1 0 0 27,520 0 13,382 1,103 osh-native
4 no-host configure.ocaml 410,370 0 0 0 5,120 0 1,971 160 bash
12 no-host configure.ocaml 391,004 0 0 0 5,112 0 1,892 161 dash
20 no-host configure.ocaml 634,486 0 0 0 5,112 0 1,856 172 osh-cpython
28 no-host configure.ocaml 413,865 0 0 0 5,120 0 1,938 159 osh-native
5 no-host configure.tcc 6,535 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,940 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,108,426 0 0 0 42,400 0 18,549 1,136 bash
11 no-host configure.util-linux 2,257,806 1 0 0 42,584 0 17,383 1,012 dash
19 no-host configure.util-linux 5,295,155 12 0 0 39,120 0 17,065 1,091 osh-cpython
27 no-host configure.util-linux 2,013,983 1 0 0 39,120 0 17,077 985 osh-native
6 no-host configure.yash 256,168 0 0 0 4,120 0 869 84 bash
14 no-host configure.yash 243,691 0 0 0 3,720 0 873 67 dash
22 no-host configure.yash 383,573 0 0 0 3,728 0 857 98 osh-cpython
30 no-host configure.yash 259,197 0 0 0 3,736 0 852 91 osh-native
0 no-host hello-world 156 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,623 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-150b691a
dash dash-308ec8e6
osh-cpython osh-4becb1fa
osh-native osh-e9f9af86
host label host id
no-host no-host-f581f4dd