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 15 9 20 22 18 1.33 1.18
bin-true no-host 617 443 809 812 657 1.31 1.06
configure.cpython no-host 13,901 13,802 13,413 13,498 12,924 0.96 0.93
configure.ocaml no-host 3,664 3,612 3,724 3,699 3,663 1.02 1.00
configure.tcc no-host 46 41 46 47 43 1.00 0.93
configure.util-linux no-host 12,450 13,208 12,538 12,588 12,185 1.01 0.98
configure.yash no-host 1,705 1,633 1,694 1,697 1,664 0.99 0.98
hello-world no-host 1 1 3 3 1 2.40 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,361 1,151 3,288 3,366 2,829 1.39 1.20
bin-true no-host 99,421 49,401 135,235 134,989 111,035 1.36 1.12
configure.cpython no-host 1,629,284 1,640,684 1,590,950 1,609,501 1,515,395 0.98 0.93
configure.ocaml no-host 299,104 280,657 306,397 307,473 300,124 1.02 1.00
configure.tcc no-host 5,244 4,210 5,594 5,652 5,118 1.07 0.98
configure.util-linux no-host 1,531,383 1,699,887 1,504,550 1,519,270 1,479,876 0.98 0.97
configure.yash no-host 173,414 159,605 177,051 177,608 172,764 1.02 1.00
hello-world no-host 152 88 394 400 183 2.59 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 4.1 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.1 1.6 8.9 8.9 5.1 2.83 1.62
configure.cpython no-host 34.6 34.8 34.4 34.6 34.4 0.99 0.99
configure.ocaml no-host 28.9 28.8 28.5 28.8 28.7 0.99 0.99
configure.tcc no-host 26.3 26.1 26.3 26.1 26.0 1.00 0.99
configure.util-linux no-host 39.8 39.7 39.9 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.2 33.3 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 3.3 2.08 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.6 3,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 809 1 2 3.5 8.9 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,413 1 67 14.8 34.4 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,538 3 66 21.6 39.9 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,724 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 46 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,694 1 2 2.7 33.2 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 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 7.1 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 812 1 2 3.5 8.9 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,498 1 69 14.9 34.6 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,588 3 67 21.6 39.6 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,699 1 2 2.8 28.8 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 47 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,697 1 2 2.7 33.3 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 15 8 8 4.8 bash
15 no-host abuild-print-help 9 4 6 4.1 dash
23 no-host abuild-print-help 20 13 8 9.4 osh-native
31 no-host abuild-print-help 22 12 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 5 6.3 osh-static
1 no-host bin-true 617 312 343 3.1 bash
9 no-host bin-true 443 272 177 1.6 dash
17 no-host bin-true 809 313 513 8.9 osh-native
25 no-host bin-true 812 308 520 8.9 osh-nosouffle
33 no-host bin-true 657 331 343 5.1 osh-static
2 no-host configure.cpython 13,901 7,626 6,674 34.6 bash
10 no-host configure.cpython 13,802 7,563 6,649 34.8 dash
18 no-host configure.cpython 13,413 7,059 6,629 34.4 osh-native
26 no-host configure.cpython 13,498 7,205 6,584 34.6 osh-nosouffle
34 no-host configure.cpython 12,924 7,170 5,992 34.4 osh-static
4 no-host configure.ocaml 3,664 1,483 1,220 28.9 bash
12 no-host configure.ocaml 3,612 1,483 1,153 28.8 dash
20 no-host configure.ocaml 3,724 1,490 1,274 28.5 osh-native
28 no-host configure.ocaml 3,699 1,487 1,253 28.8 osh-nosouffle
36 no-host configure.ocaml 3,663 1,451 1,244 28.7 osh-static
5 no-host configure.tcc 46 25 22 26.3 bash
13 no-host configure.tcc 41 23 18 26.1 dash
21 no-host configure.tcc 46 18 29 26.3 osh-native
29 no-host configure.tcc 47 26 21 26.1 osh-nosouffle
37 no-host configure.tcc 43 23 21 26.0 osh-static
3 no-host configure.util-linux 12,450 6,515 6,409 39.8 bash
11 no-host configure.util-linux 13,208 6,408 7,291 39.7 dash
19 no-host configure.util-linux 12,538 6,167 6,601 39.9 osh-native
27 no-host configure.util-linux 12,588 6,223 6,590 39.6 osh-nosouffle
35 no-host configure.util-linux 12,185 6,179 6,226 39.6 osh-static
6 no-host configure.yash 1,705 964 749 33.4 bash
14 no-host configure.yash 1,633 937 698 33.4 dash
22 no-host configure.yash 1,694 942 755 33.2 osh-native
30 no-host configure.yash 1,697 935 765 33.3 osh-nosouffle
38 no-host configure.yash 1,664 966 700 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 3 0 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 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,361 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,151 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,288 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,366 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,829 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,421 0 0 0 8 0 1,998 69 bash
9 no-host bin-true 49,401 0 0 0 8 0 2,996 48 dash
17 no-host bin-true 135,235 0 0 0 16 0 1,997 84 osh-native
25 no-host bin-true 134,989 0 0 0 16 0 1,999 86 osh-nosouffle
33 no-host bin-true 111,035 0 0 0 8 0 1,998 69 osh-static
2 no-host configure.cpython 1,629,284 0 0 0 25,272 0 14,079 987 bash
10 no-host configure.cpython 1,640,684 0 0 0 25,272 0 14,114 1,051 dash
18 no-host configure.cpython 1,590,950 0 0 0 25,280 0 11,299 820 osh-native
26 no-host configure.cpython 1,609,501 0 0 0 25,280 0 11,309 794 osh-nosouffle
34 no-host configure.cpython 1,515,395 0 0 0 25,272 0 11,303 815 osh-static
4 no-host configure.ocaml 299,104 0 0 0 4,432 0 2,018 217 bash
12 no-host configure.ocaml 280,657 0 0 0 4,432 0 2,110 200 dash
20 no-host configure.ocaml 306,397 0 0 0 4,440 0 2,001 198 osh-native
28 no-host configure.ocaml 307,473 0 0 0 4,440 0 1,997 208 osh-nosouffle
36 no-host configure.ocaml 300,124 2 0 0 4,432 0 2,004 202 osh-static
5 no-host configure.tcc 5,244 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,594 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,652 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,118 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,531,383 1 0 0 35,936 0 18,935 1,008 bash
11 no-host configure.util-linux 1,699,887 1 0 0 35,936 0 17,107 1,209 dash
19 no-host configure.util-linux 1,504,550 1 0 0 35,952 0 16,140 927 osh-native
27 no-host configure.util-linux 1,519,270 1 0 8 35,944 0 16,217 1,015 osh-nosouffle
35 no-host configure.util-linux 1,479,876 1 0 0 35,936 0 16,192 955 osh-static
6 no-host configure.yash 173,414 0 0 0 3,616 0 879 105 bash
14 no-host configure.yash 159,605 0 0 0 3,616 0 1,000 115 dash
22 no-host configure.yash 177,051 0 0 0 3,632 0 856 103 osh-native
30 no-host configure.yash 177,608 0 0 0 3,624 0 860 99 osh-nosouffle
38 no-host configure.yash 172,764 0 0 0 3,616 0 856 104 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 394 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-916e212a
osh-nosouffle osh-771c143c
osh-static osh-static-bb0e0564
host label host id
no-host no-host-bba74091