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 20 21 19 1.30 1.21
bin-true no-host 616 437 806 801 650 1.31 1.05
configure.cpython no-host 13,979 14,037 13,630 13,700 13,099 0.98 0.94
configure.ocaml no-host 3,693 3,630 3,741 3,759 3,696 1.01 1.00
configure.tcc no-host 46 41 47 48 43 1.03 0.95
configure.util-linux no-host 12,650 13,407 12,645 12,686 12,336 1.00 0.98
configure.yash no-host 1,712 1,663 1,728 1,756 1,695 1.01 0.99
hello-world no-host 1 1 3 3 1 2.44 1.01

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,406 1,159 3,285 3,426 2,825 1.37 1.17
bin-true no-host 100,434 49,393 136,280 132,076 111,055 1.36 1.11
configure.cpython no-host 1,626,380 1,642,919 1,581,793 1,601,002 1,518,067 0.97 0.93
configure.ocaml no-host 299,340 280,741 306,157 307,401 300,002 1.02 1.00
configure.tcc no-host 5,194 4,214 5,609 5,624 5,117 1.08 0.99
configure.util-linux no-host 1,534,714 1,701,727 1,508,871 1,520,302 1,479,710 0.98 0.96
configure.yash no-host 173,374 159,542 176,800 177,077 172,838 1.02 1.00
hello-world no-host 152 84 394 400 182 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.7 4.1 9.4 10.1 6.3 2.00 1.33
bin-true no-host 3.1 1.6 8.8 9.2 5.1 2.79 1.62
configure.cpython no-host 34.3 34.6 34.6 34.3 34.5 1.01 1.01
configure.ocaml no-host 28.7 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.3 26.3 26.1 26.3 1.00 1.01
configure.util-linux no-host 39.7 39.7 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 806 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 13,630 1 69 14.8 34.6 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,645 3 67 21.6 39.6 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 3,741 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 47 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,728 1 2 2.7 33.4 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 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 3 0 0 0.3 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 801 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 13,700 1 68 14.9 34.3 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,686 3 67 21.6 39.7 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,759 1 2 2.8 28.7 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,756 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 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 16 9 8 4.7 bash
15 no-host abuild-print-help 9 3 6 4.1 dash
23 no-host abuild-print-help 20 10 11 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.3 osh-static
1 no-host bin-true 616 314 340 3.1 bash
9 no-host bin-true 437 275 169 1.6 dash
17 no-host bin-true 806 306 517 8.8 osh-native
25 no-host bin-true 801 310 509 9.2 osh-nosouffle
33 no-host bin-true 650 309 357 5.1 osh-static
2 no-host configure.cpython 13,979 7,644 6,718 34.3 bash
10 no-host configure.cpython 14,037 7,729 6,719 34.6 dash
18 no-host configure.cpython 13,630 7,320 6,584 34.6 osh-native
26 no-host configure.cpython 13,700 7,301 6,690 34.3 osh-nosouffle
34 no-host configure.cpython 13,099 7,272 6,067 34.5 osh-static
4 no-host configure.ocaml 3,693 1,489 1,244 28.7 bash
12 no-host configure.ocaml 3,630 1,467 1,187 28.5 dash
20 no-host configure.ocaml 3,741 1,520 1,259 28.7 osh-native
28 no-host configure.ocaml 3,759 1,495 1,305 28.7 osh-nosouffle
36 no-host configure.ocaml 3,696 1,486 1,241 28.7 osh-static
5 no-host configure.tcc 46 21 25 26.1 bash
13 no-host configure.tcc 41 24 18 26.3 dash
21 no-host configure.tcc 47 24 23 26.3 osh-native
29 no-host configure.tcc 48 24 24 26.1 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.3 osh-static
3 no-host configure.util-linux 12,650 6,596 6,516 39.7 bash
11 no-host configure.util-linux 13,407 6,525 7,379 39.7 dash
19 no-host configure.util-linux 12,645 6,312 6,555 39.6 osh-native
27 no-host configure.util-linux 12,686 6,261 6,652 39.7 osh-nosouffle
35 no-host configure.util-linux 12,336 6,397 6,160 39.6 osh-static
6 no-host configure.yash 1,712 987 733 33.4 bash
14 no-host configure.yash 1,663 983 681 33.3 dash
22 no-host configure.yash 1,728 983 747 33.4 osh-native
30 no-host configure.yash 1,756 970 759 33.4 osh-nosouffle
38 no-host configure.yash 1,695 947 750 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 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 6.9 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,406 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,159 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,285 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,426 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,825 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,434 0 0 0 8 0 2,000 51 bash
9 no-host bin-true 49,393 0 0 0 8 0 2,994 44 dash
17 no-host bin-true 136,280 0 0 0 16 0 2,000 80 osh-native
25 no-host bin-true 132,076 0 0 0 16 0 1,995 67 osh-nosouffle
33 no-host bin-true 111,055 0 0 0 8 0 1,999 76 osh-static
2 no-host configure.cpython 1,626,380 0 0 0 25,272 0 14,091 1,045 bash
10 no-host configure.cpython 1,642,919 0 0 0 25,272 0 14,129 1,094 dash
18 no-host configure.cpython 1,581,793 2 0 0 25,280 0 11,298 816 osh-native
26 no-host configure.cpython 1,601,002 0 0 0 25,280 0 11,303 832 osh-nosouffle
34 no-host configure.cpython 1,518,067 0 0 0 25,272 0 11,305 848 osh-static
4 no-host configure.ocaml 299,340 0 0 0 4,432 0 2,020 187 bash
12 no-host configure.ocaml 280,741 0 0 0 4,432 0 2,104 184 dash
20 no-host configure.ocaml 306,157 0 0 0 4,440 0 1,999 366 osh-native
28 no-host configure.ocaml 307,401 0 0 0 4,440 0 1,998 222 osh-nosouffle
36 no-host configure.ocaml 300,002 0 0 0 4,432 0 1,994 222 osh-static
5 no-host configure.tcc 5,194 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,214 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,609 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,624 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,117 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,714 1 0 0 35,936 0 18,985 1,126 bash
11 no-host configure.util-linux 1,701,727 1 0 0 35,936 0 17,157 1,163 dash
19 no-host configure.util-linux 1,508,871 1 0 0 35,952 0 16,134 966 osh-native
27 no-host configure.util-linux 1,520,302 0 0 0 35,944 0 16,187 961 osh-nosouffle
35 no-host configure.util-linux 1,479,710 1 0 0 35,936 0 16,192 921 osh-static
6 no-host configure.yash 173,374 0 0 0 3,616 0 874 101 bash
14 no-host configure.yash 159,542 0 0 0 3,616 0 1,000 104 dash
22 no-host configure.yash 176,800 0 0 0 3,624 0 858 105 osh-native
30 no-host configure.yash 177,077 0 0 0 3,632 0 859 97 osh-nosouffle
38 no-host configure.yash 172,838 0 0 0 3,616 0 858 101 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 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 182 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-92c01462
osh-nosouffle osh-d2167042
osh-static osh-static-1a6a6b66
host label host id
no-host no-host-bba74091