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 13 7 18 18 16 1.40 1.30
bin-true no-host 456 302 603 631 487 1.32 1.07
configure.cpython no-host 14,950 15,381 14,338 15,040 13,817 0.96 0.92
configure.ocaml no-host 3,810 3,791 4,027 3,811 4,052 1.06 1.06
configure.tcc no-host 49 34 44 39 37 0.89 0.75
configure.util-linux no-host 12,956 13,761 13,197 13,449 13,309 1.02 1.03
configure.yash no-host 1,751 1,653 1,774 1,651 1,682 1.01 0.96
hello-world no-host 1 0 2 2 1 2.18 1.00

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,367 1,173 3,335 3,455 2,837 1.41 1.20
bin-true no-host 102,870 49,804 133,758 135,431 112,468 1.30 1.09
configure.cpython no-host 1,634,298 1,642,948 1,590,948 1,609,535 1,520,575 0.97 0.93
configure.ocaml no-host 300,119 281,564 306,779 307,720 300,967 1.02 1.00
configure.tcc no-host 5,247 4,248 5,576 5,708 5,142 1.06 0.98
configure.util-linux no-host 1,538,062 1,700,326 1,512,820 1,524,658 1,485,003 0.98 0.97
configure.yash no-host 174,019 159,979 176,912 177,638 173,166 1.02 1.00
hello-world no-host 152 88 396 401 185 2.61 1.22

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.7 3.9 9.4 10.1 6.3 2.00 1.33
bin-true no-host 3.3 1.7 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.7 34.7 34.8 34.5 34.3 1.00 0.99
configure.ocaml no-host 28.8 28.7 28.7 28.8 28.8 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.3 26.1 1.00 1.00
configure.util-linux no-host 39.5 39.6 39.7 39.8 39.7 1.01 1.01
configure.yash no-host 33.4 33.5 33.3 33.1 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.7 7.2 3.4 2.04 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 2 0 0 0.3 6.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 603 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 14,338 1 58 14.8 34.8 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,197 3 61 21.6 39.7 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 4,027 1 2 2.8 28.7 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 44 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,774 1 2 2.7 33.3 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 9.4 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 2 0 0 0.3 7.2 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 631 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 15,040 1 61 14.9 34.5 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,449 2 62 21.6 39.8 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,811 1 2 2.8 28.8 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 39 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,651 1 2 2.7 33.1 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 10.1 117,239 65,805 42,012 4,980 54,601 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 13 6 7 4.7 bash
15 no-host abuild-print-help 7 3 4 3.9 dash
23 no-host abuild-print-help 18 12 6 9.4 osh-native
31 no-host abuild-print-help 18 8 11 10.1 osh-nosouffle
39 no-host abuild-print-help 16 13 4 6.3 osh-static
1 no-host bin-true 456 290 203 3.3 bash
9 no-host bin-true 302 225 78 1.7 dash
17 no-host bin-true 603 316 301 8.8 osh-native
25 no-host bin-true 631 324 318 9.2 osh-nosouffle
33 no-host bin-true 487 304 197 5.2 osh-static
2 no-host configure.cpython 14,950 7,688 4,410 34.7 bash
10 no-host configure.cpython 15,381 7,770 4,562 34.7 dash
18 no-host configure.cpython 14,338 7,181 4,362 34.8 osh-native
26 no-host configure.cpython 15,040 7,400 4,605 34.5 osh-nosouffle
34 no-host configure.cpython 13,817 7,089 4,010 34.3 osh-static
4 no-host configure.ocaml 3,810 1,496 753 28.8 bash
12 no-host configure.ocaml 3,791 1,457 756 28.7 dash
20 no-host configure.ocaml 4,027 1,511 867 28.7 osh-native
28 no-host configure.ocaml 3,811 1,449 833 28.8 osh-nosouffle
36 no-host configure.ocaml 4,052 1,513 909 28.8 osh-static
5 no-host configure.tcc 49 25 13 26.2 bash
13 no-host configure.tcc 34 22 12 26.2 dash
21 no-host configure.tcc 44 20 20 26.3 osh-native
29 no-host configure.tcc 39 30 9 26.3 osh-nosouffle
37 no-host configure.tcc 37 18 19 26.1 osh-static
3 no-host configure.util-linux 12,956 6,587 3,962 39.5 bash
11 no-host configure.util-linux 13,761 6,694 4,942 39.6 dash
19 no-host configure.util-linux 13,197 6,200 4,392 39.7 osh-native
27 no-host configure.util-linux 13,449 6,200 4,495 39.8 osh-nosouffle
35 no-host configure.util-linux 13,309 6,455 4,363 39.7 osh-static
6 no-host configure.yash 1,751 933 498 33.4 bash
14 no-host configure.yash 1,653 914 447 33.5 dash
22 no-host configure.yash 1,774 941 540 33.3 osh-native
30 no-host configure.yash 1,651 909 488 33.1 osh-nosouffle
38 no-host configure.yash 1,682 942 506 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 0 0 0 1.6 dash
16 no-host hello-world 2 1 1 6.7 osh-native
24 no-host hello-world 2 1 2 7.2 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,367 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,173 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,335 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,455 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,837 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,870 0 0 0 8 0 2,000 47 bash
9 no-host bin-true 49,804 0 0 0 8 0 2,998 39 dash
17 no-host bin-true 133,758 0 0 0 16 0 1,999 65 osh-native
25 no-host bin-true 135,431 0 0 0 16 0 1,998 88 osh-nosouffle
33 no-host bin-true 112,468 0 0 0 8 0 1,999 75 osh-static
2 no-host configure.cpython 1,634,298 0 0 0 25,272 0 14,172 928 bash
10 no-host configure.cpython 1,642,948 0 0 0 25,272 0 14,178 973 dash
18 no-host configure.cpython 1,590,948 0 0 0 25,280 0 11,399 738 osh-native
26 no-host configure.cpython 1,609,535 1 0 0 25,280 0 11,443 798 osh-nosouffle
34 no-host configure.cpython 1,520,575 0 0 0 25,272 0 11,393 801 osh-static
4 no-host configure.ocaml 300,119 0 0 0 4,432 0 2,046 159 bash
12 no-host configure.ocaml 281,564 0 0 0 4,432 0 2,133 153 dash
20 no-host configure.ocaml 306,779 0 0 0 4,440 0 2,026 185 osh-native
28 no-host configure.ocaml 307,720 0 0 0 4,440 0 2,028 198 osh-nosouffle
36 no-host configure.ocaml 300,967 0 0 0 4,432 0 2,028 196 osh-static
5 no-host configure.tcc 5,247 0 0 0 80 0 50 1 bash
13 no-host configure.tcc 4,248 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,576 0 0 0 96 0 46 2 osh-native
29 no-host configure.tcc 5,708 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,142 0 0 0 88 0 46 1 osh-static
3 no-host configure.util-linux 1,538,062 1 0 0 35,936 0 18,912 941 bash
11 no-host configure.util-linux 1,700,326 0 0 0 35,944 0 17,003 1,082 dash
19 no-host configure.util-linux 1,512,820 1 0 0 35,960 0 16,272 828 osh-native
27 no-host configure.util-linux 1,524,658 3 0 0 35,952 0 16,305 775 osh-nosouffle
35 no-host configure.util-linux 1,485,003 7 0 0 35,944 0 16,286 858 osh-static
6 no-host configure.yash 174,019 0 0 0 3,616 0 900 93 bash
14 no-host configure.yash 159,979 0 0 0 3,616 0 1,018 88 dash
22 no-host configure.yash 176,912 0 0 0 3,624 0 869 89 osh-native
30 no-host configure.yash 177,638 0 0 0 3,624 0 871 91 osh-nosouffle
38 no-host configure.yash 173,166 0 0 0 3,624 0 868 91 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 396 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 185 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-8b759f92
osh-nosouffle osh-ce9f490c
osh-static osh-static-53070e77
host label host id
no-host no-host-bba74091