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 18 1.31 1.16
bin-true no-host 632 439 813 801 663 1.28 1.05
configure.cpython no-host 14,218 13,636 13,806 13,348 13,078 0.97 0.92
configure.ocaml no-host 3,623 3,670 3,658 3,751 3,613 1.01 1.00
configure.tcc no-host 46 42 47 48 43 1.02 0.94
configure.util-linux no-host 12,610 13,425 12,357 13,107 11,994 0.98 0.95
configure.yash no-host 1,701 1,689 1,683 1,727 1,647 0.99 0.97
hello-world no-host 1 1 3 3 1 2.23 0.97

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,387 1,167 3,310 3,411 2,830 1.39 1.19
bin-true no-host 101,464 49,395 132,244 133,050 112,051 1.30 1.10
configure.cpython no-host 1,620,488 1,638,230 1,585,762 1,605,690 1,518,162 0.98 0.94
configure.ocaml no-host 299,008 280,560 306,349 307,427 300,100 1.02 1.00
configure.tcc no-host 5,215 4,200 5,582 5,691 5,117 1.07 0.98
configure.util-linux no-host 1,530,669 1,691,742 1,508,680 1,522,293 1,479,786 0.99 0.97
configure.yash no-host 173,202 159,648 176,438 177,134 172,868 1.02 1.00
hello-world no-host 153 85 393 402 184 2.57 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 5.0 4.1 9.4 10.0 6.3 1.89 1.26
bin-true no-host 3.3 1.8 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.7 34.4 34.5 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.5 39.7 39.7 0.99 1.00
configure.yash no-host 33.4 33.4 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.3 1.4 6.4 7.1 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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 813 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,806 1 69 14.8 34.5 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,357 3 64 21.6 39.5 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,658 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.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,683 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 21 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 7.1 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,348 1 64 14.9 34.6 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,107 3 70 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,751 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.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,727 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 22 1 2 3.0 10.0 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 10 6 5.0 bash
15 no-host abuild-print-help 9 5 4 4.1 dash
23 no-host abuild-print-help 21 10 11 9.4 osh-native
31 no-host abuild-print-help 22 9 14 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 632 303 367 3.3 bash
9 no-host bin-true 439 285 160 1.8 dash
17 no-host bin-true 813 318 512 8.8 osh-native
25 no-host bin-true 801 323 495 9.2 osh-nosouffle
33 no-host bin-true 663 310 370 5.2 osh-static
2 no-host configure.cpython 14,218 7,781 6,847 34.7 bash
10 no-host configure.cpython 13,636 7,493 6,544 34.4 dash
18 no-host configure.cpython 13,806 7,260 6,831 34.5 osh-native
26 no-host configure.cpython 13,348 7,150 6,484 34.6 osh-nosouffle
34 no-host configure.cpython 13,078 7,273 6,052 34.5 osh-static
4 no-host configure.ocaml 3,623 1,475 1,187 28.7 bash
12 no-host configure.ocaml 3,670 1,522 1,173 28.6 dash
20 no-host configure.ocaml 3,658 1,444 1,253 28.7 osh-native
28 no-host configure.ocaml 3,751 1,515 1,278 28.7 osh-nosouffle
36 no-host configure.ocaml 3,613 1,413 1,231 28.6 osh-static
5 no-host configure.tcc 46 24 22 26.2 bash
13 no-host configure.tcc 42 27 16 26.2 dash
21 no-host configure.tcc 47 27 20 26.2 osh-native
29 no-host configure.tcc 48 24 25 26.2 osh-nosouffle
37 no-host configure.tcc 43 26 18 26.3 osh-static
3 no-host configure.util-linux 12,610 6,686 6,397 39.7 bash
11 no-host configure.util-linux 13,425 6,525 7,392 39.6 dash
19 no-host configure.util-linux 12,357 6,128 6,452 39.5 osh-native
27 no-host configure.util-linux 13,107 6,486 6,858 39.7 osh-nosouffle
35 no-host configure.util-linux 11,994 6,106 6,105 39.7 osh-static
6 no-host configure.yash 1,701 981 728 33.4 bash
14 no-host configure.yash 1,689 928 762 33.4 dash
22 no-host configure.yash 1,683 972 714 33.3 osh-native
30 no-host configure.yash 1,727 970 761 33.4 osh-nosouffle
38 no-host configure.yash 1,647 961 689 33.3 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 2 1 7.1 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,387 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,167 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,310 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,411 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,830 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,464 0 0 0 8 0 2,000 71 bash
9 no-host bin-true 49,395 0 0 0 8 0 2,990 50 dash
17 no-host bin-true 132,244 0 0 0 16 0 2,000 72 osh-native
25 no-host bin-true 133,050 0 0 0 16 0 1,999 78 osh-nosouffle
33 no-host bin-true 112,051 0 0 0 8 0 2,000 77 osh-static
2 no-host configure.cpython 1,620,488 0 0 0 25,272 0 14,071 1,051 bash
10 no-host configure.cpython 1,638,230 0 0 0 25,272 0 14,104 1,001 dash
18 no-host configure.cpython 1,585,762 0 0 0 25,280 0 11,301 874 osh-native
26 no-host configure.cpython 1,605,690 0 0 0 25,280 0 11,307 796 osh-nosouffle
34 no-host configure.cpython 1,518,162 1 0 0 25,272 0 11,310 842 osh-static
4 no-host configure.ocaml 299,008 0 0 0 4,432 0 2,018 194 bash
12 no-host configure.ocaml 280,560 0 0 0 4,432 0 2,107 186 dash
20 no-host configure.ocaml 306,349 0 0 0 4,440 0 1,998 206 osh-native
28 no-host configure.ocaml 307,427 0 0 0 4,440 0 2,002 202 osh-nosouffle
36 no-host configure.ocaml 300,100 0 0 0 4,432 0 2,000 210 osh-static
5 no-host configure.tcc 5,215 0 0 0 80 0 49 4 bash
13 no-host configure.tcc 4,200 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,582 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,691 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,117 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,530,669 0 0 0 35,936 0 18,984 1,115 bash
11 no-host configure.util-linux 1,691,742 1 0 0 35,936 0 17,167 1,320 dash
19 no-host configure.util-linux 1,508,680 0 0 0 35,952 0 16,207 936 osh-native
27 no-host configure.util-linux 1,522,293 0 0 8 35,944 0 16,160 912 osh-nosouffle
35 no-host configure.util-linux 1,479,786 2 0 0 35,936 0 16,127 926 osh-static
6 no-host configure.yash 173,202 0 0 0 3,616 0 881 96 bash
14 no-host configure.yash 159,648 0 0 0 3,616 0 1,001 115 dash
22 no-host configure.yash 176,438 0 0 0 3,624 0 859 107 osh-native
30 no-host configure.yash 177,134 0 0 0 3,624 0 856 100 osh-nosouffle
38 no-host configure.yash 172,868 0 0 0 3,616 0 859 103 osh-static
0 no-host hello-world 153 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 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 402 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-772a6a33
osh-nosouffle osh-f7fa619a
osh-static osh-static-96b807d3
host label host id
no-host no-host-bba74091