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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 21 22 19 1.34 1.23
bin-true no-host 632 439 789 831 672 1.25 1.06
configure.cpython no-host 13,824 13,806 13,487 14,246 13,584 0.98 0.98
configure.ocaml no-host 3,653 3,592 3,886 3,869 3,816 1.06 1.04
configure.tcc no-host 45 41 49 49 45 1.07 0.99
configure.util-linux no-host 12,420 13,160 12,831 13,339 12,797 1.03 1.03
configure.yash no-host 1,701 1,607 1,793 1,786 1,757 1.05 1.03
hello-world no-host 1 1 3 3 1 2.27 0.98

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,397 1,157 3,315 3,397 2,818 1.38 1.18
bin-true no-host 101,464 49,343 131,314 134,013 112,106 1.29 1.10
configure.cpython no-host 1,634,410 1,643,119 1,584,306 1,599,963 1,515,332 0.97 0.93
configure.ocaml no-host 298,845 280,925 305,712 306,838 300,094 1.02 1.00
configure.tcc no-host 5,203 4,181 5,606 5,645 5,103 1.08 0.98
configure.util-linux no-host 1,538,315 1,700,665 1,506,003 1,522,365 1,479,880 0.98 0.96
configure.yash no-host 173,292 159,607 176,812 177,004 172,702 1.02 1.00
hello-world no-host 153 89 391 400 183 2.56 1.20

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 3.9 9.6 10.0 6.3 1.97 1.30
bin-true no-host 3.4 1.6 8.8 9.3 5.2 2.58 1.54
configure.cpython no-host 34.5 34.5 34.7 34.3 34.7 1.00 1.00
configure.ocaml no-host 28.6 28.6 28.5 28.7 28.8 1.00 1.00
configure.tcc no-host 26.3 26.1 26.3 26.1 26.1 1.00 0.99
configure.util-linux no-host 39.7 39.5 39.5 39.5 39.6 0.99 1.00
configure.yash no-host 33.3 33.3 33.0 33.1 33.3 0.99 1.00
hello-world no-host 3.3 1.7 6.4 6.9 3.4 1.96 1.04

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.4 3,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 789 1 2 3.5 8.8 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,487 1 66 14.8 34.7 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,831 3 67 21.6 39.5 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,886 1 2 2.8 28.5 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.3 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,793 1 2 2.7 33.0 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 831 1 2 3.5 9.3 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 14,246 2 74 14.9 34.3 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,339 3 73 21.6 39.5 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,869 1 2 2.8 28.7 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.1 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,786 1 2 2.7 33.1 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,238 65,805 42,012 4,980 54,600 57,658 277 3 84,024 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 16 8 8 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 13 9 9.6 osh-native
31 no-host abuild-print-help 22 14 9 10.0 osh-nosouffle
39 no-host abuild-print-help 19 10 10 6.3 osh-static
1 no-host bin-true 632 312 360 3.4 bash
9 no-host bin-true 439 272 172 1.6 dash
17 no-host bin-true 789 291 513 8.8 osh-native
25 no-host bin-true 831 312 539 9.3 osh-nosouffle
33 no-host bin-true 672 324 365 5.2 osh-static
2 no-host configure.cpython 13,824 7,675 6,533 34.5 bash
10 no-host configure.cpython 13,806 7,549 6,662 34.5 dash
18 no-host configure.cpython 13,487 7,173 6,593 34.7 osh-native
26 no-host configure.cpython 14,246 7,524 7,017 34.3 osh-nosouffle
34 no-host configure.cpython 13,584 7,383 6,449 34.7 osh-static
4 no-host configure.ocaml 3,653 1,495 1,197 28.6 bash
12 no-host configure.ocaml 3,592 1,434 1,178 28.6 dash
20 no-host configure.ocaml 3,886 1,546 1,379 28.5 osh-native
28 no-host configure.ocaml 3,869 1,558 1,352 28.7 osh-nosouffle
36 no-host configure.ocaml 3,816 1,547 1,301 28.8 osh-static
5 no-host configure.tcc 45 20 26 26.3 bash
13 no-host configure.tcc 41 26 15 26.1 dash
21 no-host configure.tcc 49 24 26 26.3 osh-native
29 no-host configure.tcc 49 20 30 26.1 osh-nosouffle
37 no-host configure.tcc 45 22 23 26.1 osh-static
3 no-host configure.util-linux 12,420 6,544 6,349 39.7 bash
11 no-host configure.util-linux 13,160 6,415 7,242 39.5 dash
19 no-host configure.util-linux 12,831 6,185 6,874 39.5 osh-native
27 no-host configure.util-linux 13,339 6,568 7,011 39.5 osh-nosouffle
35 no-host configure.util-linux 12,797 6,447 6,578 39.6 osh-static
6 no-host configure.yash 1,701 975 735 33.3 bash
14 no-host configure.yash 1,607 934 675 33.3 dash
22 no-host configure.yash 1,793 973 821 33.0 osh-native
30 no-host configure.yash 1,786 1,008 779 33.1 osh-nosouffle
38 no-host configure.yash 1,757 993 765 33.3 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 3.4 osh-static

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,397 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,157 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,315 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,397 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,818 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,464 0 0 0 8 0 1,998 51 bash
9 no-host bin-true 49,343 0 0 0 8 0 2,993 52 dash
17 no-host bin-true 131,314 0 0 0 16 0 1,997 97 osh-native
25 no-host bin-true 134,013 0 0 0 16 0 1,997 82 osh-nosouffle
33 no-host bin-true 112,106 0 0 0 8 0 1,996 63 osh-static
2 no-host configure.cpython 1,634,410 0 0 0 25,272 0 14,073 1,065 bash
10 no-host configure.cpython 1,643,119 0 0 0 25,272 0 14,124 1,003 dash
18 no-host configure.cpython 1,584,306 0 0 0 25,280 0 11,303 863 osh-native
26 no-host configure.cpython 1,599,963 0 0 0 25,280 0 11,296 818 osh-nosouffle
34 no-host configure.cpython 1,515,332 0 0 0 25,272 0 11,277 850 osh-static
4 no-host configure.ocaml 298,845 0 0 0 4,432 0 2,016 213 bash
12 no-host configure.ocaml 280,925 0 0 0 4,432 0 2,103 206 dash
20 no-host configure.ocaml 305,712 0 0 0 4,440 0 2,002 226 osh-native
28 no-host configure.ocaml 306,838 0 0 0 4,440 0 1,998 201 osh-nosouffle
36 no-host configure.ocaml 300,094 0 0 0 4,432 0 1,997 223 osh-static
5 no-host configure.tcc 5,203 0 0 0 80 0 49 4 bash
13 no-host configure.tcc 4,181 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,606 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,645 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,103 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,538,315 0 0 0 35,936 0 18,987 1,003 bash
11 no-host configure.util-linux 1,700,665 3 0 0 35,936 0 17,194 1,124 dash
19 no-host configure.util-linux 1,506,003 1 0 0 35,952 0 16,198 970 osh-native
27 no-host configure.util-linux 1,522,365 0 0 8 35,944 0 16,207 905 osh-nosouffle
35 no-host configure.util-linux 1,479,880 0 0 0 35,936 0 16,140 941 osh-static
6 no-host configure.yash 173,292 0 0 0 3,616 0 878 91 bash
14 no-host configure.yash 159,607 0 0 0 3,616 0 1,001 108 dash
22 no-host configure.yash 176,812 0 0 0 3,624 0 857 109 osh-native
30 no-host configure.yash 177,004 0 0 0 3,624 0 856 211 osh-nosouffle
38 no-host configure.yash 172,702 0 0 0 3,616 0 857 101 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-4f16e7cf
osh-nosouffle osh-fcd6b69f
osh-static osh-static-8b6bbb2c
host label host id
no-host no-host-bba74091