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 21 18 1.33 1.20
bin-true no-host 613 441 798 797 645 1.30 1.05
configure.cpython no-host 13,522 13,586 13,201 13,193 12,644 0.98 0.94
configure.ocaml no-host 3,595 3,547 3,638 3,635 3,603 1.01 1.00
configure.tcc no-host 45 41 45 46 43 1.01 0.95
configure.util-linux no-host 12,257 12,990 12,231 12,277 11,925 1.00 0.97
configure.yash no-host 1,665 1,613 1,649 1,652 1,645 0.99 0.99
hello-world no-host 1 1 3 3 1 2.45 1.05

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,384 1,171 3,303 3,408 2,835 1.39 1.19
bin-true no-host 101,471 49,404 134,285 134,031 110,994 1.32 1.09
configure.cpython no-host 1,626,167 1,634,799 1,591,794 1,593,544 1,515,347 0.98 0.93
configure.ocaml no-host 299,412 281,034 307,205 307,157 300,153 1.03 1.00
configure.tcc no-host 5,202 4,200 5,584 5,624 5,107 1.07 0.98
configure.util-linux no-host 1,534,764 1,704,067 1,508,957 1,517,335 1,480,525 0.98 0.96
configure.yash no-host 173,276 159,508 176,496 177,280 172,890 1.02 1.00
hello-world no-host 154 85 390 401 184 2.53 1.19

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.3 1.6 8.8 9.4 5.2 2.68 1.60
configure.cpython no-host 34.7 34.4 34.3 34.5 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.0 26.2 26.2 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.5 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.1 33.1 1.00 0.99
hello-world no-host 3.3 1.6 6.6 7.1 3.3 2.00 1.00

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 798 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,201 1 63 14.8 34.3 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,231 3 62 21.6 39.7 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,638 1 2 2.8 28.7 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 45 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,649 1 2 2.7 33.4 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 797 1 2 3.5 9.4 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,193 1 65 14.9 34.5 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,277 3 64 21.6 39.7 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,635 1 2 2.8 28.6 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,652 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 21 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 10 6 4.8 bash
15 no-host abuild-print-help 9 3 6 4.1 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 21 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 613 310 339 3.3 bash
9 no-host bin-true 441 276 171 1.6 dash
17 no-host bin-true 798 316 497 8.8 osh-native
25 no-host bin-true 797 314 499 9.4 osh-nosouffle
33 no-host bin-true 645 319 342 5.2 osh-static
2 no-host configure.cpython 13,522 7,463 6,420 34.7 bash
10 no-host configure.cpython 13,586 7,549 6,430 34.4 dash
18 no-host configure.cpython 13,201 7,061 6,415 34.3 osh-native
26 no-host configure.cpython 13,193 7,018 6,446 34.5 osh-nosouffle
34 no-host configure.cpython 12,644 7,048 5,828 34.5 osh-static
4 no-host configure.ocaml 3,595 1,445 1,191 28.7 bash
12 no-host configure.ocaml 3,547 1,401 1,171 28.7 dash
20 no-host configure.ocaml 3,638 1,474 1,203 28.7 osh-native
28 no-host configure.ocaml 3,635 1,440 1,236 28.6 osh-nosouffle
36 no-host configure.ocaml 3,603 1,467 1,168 28.7 osh-static
5 no-host configure.tcc 45 17 28 26.2 bash
13 no-host configure.tcc 41 27 14 26.0 dash
21 no-host configure.tcc 45 26 20 26.2 osh-native
29 no-host configure.tcc 46 25 21 26.2 osh-nosouffle
37 no-host configure.tcc 43 22 22 26.1 osh-static
3 no-host configure.util-linux 12,257 6,488 6,229 39.7 bash
11 no-host configure.util-linux 12,990 6,427 7,037 39.5 dash
19 no-host configure.util-linux 12,231 6,014 6,436 39.7 osh-native
27 no-host configure.util-linux 12,277 6,064 6,433 39.7 osh-nosouffle
35 no-host configure.util-linux 11,925 6,028 6,100 39.7 osh-static
6 no-host configure.yash 1,665 933 739 33.4 bash
14 no-host configure.yash 1,613 952 663 33.4 dash
22 no-host configure.yash 1,649 959 693 33.4 osh-native
30 no-host configure.yash 1,652 934 721 33.1 osh-nosouffle
38 no-host configure.yash 1,645 907 741 33.1 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 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,384 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,171 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,303 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,408 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,471 0 0 0 8 0 1,995 51 bash
9 no-host bin-true 49,404 0 0 0 8 0 2,995 49 dash
17 no-host bin-true 134,285 0 0 0 16 0 1,999 102 osh-native
25 no-host bin-true 134,031 0 0 0 16 0 2,000 78 osh-nosouffle
33 no-host bin-true 110,994 0 0 0 8 0 1,999 73 osh-static
2 no-host configure.cpython 1,626,167 0 0 0 25,272 0 14,067 1,025 bash
10 no-host configure.cpython 1,634,799 0 0 0 25,272 0 14,113 1,049 dash
18 no-host configure.cpython 1,591,794 0 0 0 25,280 0 11,297 813 osh-native
26 no-host configure.cpython 1,593,544 0 0 0 25,280 0 11,300 861 osh-nosouffle
34 no-host configure.cpython 1,515,347 1 0 0 25,272 0 11,298 830 osh-static
4 no-host configure.ocaml 299,412 0 0 0 4,432 0 2,019 176 bash
12 no-host configure.ocaml 281,034 0 0 0 4,432 0 2,078 187 dash
20 no-host configure.ocaml 307,205 0 0 0 4,440 0 2,001 206 osh-native
28 no-host configure.ocaml 307,157 0 0 0 4,440 0 2,002 251 osh-nosouffle
36 no-host configure.ocaml 300,153 0 0 0 4,432 0 1,999 203 osh-static
5 no-host configure.tcc 5,202 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,200 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,584 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,624 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,107 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,764 0 0 0 35,936 0 18,970 1,020 bash
11 no-host configure.util-linux 1,704,067 0 0 0 35,936 0 17,104 1,240 dash
19 no-host configure.util-linux 1,508,957 0 0 8 35,952 0 16,239 881 osh-native
27 no-host configure.util-linux 1,517,335 0 0 0 35,944 0 16,138 948 osh-nosouffle
35 no-host configure.util-linux 1,480,525 0 0 0 35,936 0 16,159 904 osh-static
6 no-host configure.yash 173,276 0 0 0 3,616 0 879 98 bash
14 no-host configure.yash 159,508 0 0 0 3,616 0 1,002 100 dash
22 no-host configure.yash 176,496 0 0 0 3,632 0 858 94 osh-native
30 no-host configure.yash 177,280 0 0 0 3,624 0 858 99 osh-nosouffle
38 no-host configure.yash 172,890 0 0 0 3,616 0 856 110 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 184 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-b1994828
osh-nosouffle osh-646330b4
osh-static osh-static-bb4e2945
host label host id
no-host no-host-9c670df1