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 21 18 1.29 1.14
bin-true no-host 620 446 796 820 658 1.28 1.06
configure.cpython no-host 14,085 14,472 13,690 13,890 13,192 0.97 0.94
configure.ocaml no-host 3,744 3,639 3,802 3,746 3,726 1.02 1.00
configure.tcc no-host 46 41 48 48 43 1.03 0.94
configure.util-linux no-host 12,942 13,520 12,877 12,866 12,497 0.99 0.97
configure.yash no-host 1,738 1,656 1,728 1,736 1,703 0.99 0.98
hello-world no-host 1 1 3 3 1 2.36 0.99

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,391 1,153 3,336 3,393 2,826 1.40 1.18
bin-true no-host 100,517 49,392 129,271 136,979 110,360 1.29 1.10
configure.cpython no-host 1,629,535 1,647,861 1,586,680 1,605,026 1,514,447 0.97 0.93
configure.ocaml no-host 298,801 280,922 305,840 306,972 300,037 1.02 1.00
configure.tcc no-host 5,220 4,190 5,616 5,677 5,107 1.08 0.98
configure.util-linux no-host 1,528,397 1,701,927 1,496,844 1,516,182 1,470,670 0.98 0.96
configure.yash no-host 173,401 159,598 176,826 176,815 172,704 1.02 1.00
hello-world no-host 150 88 391 396 183 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.8 3.9 9.6 10.1 6.3 1.97 1.30
bin-true no-host 3.1 1.6 8.7 9.2 5.2 2.75 1.67
configure.cpython no-host 34.6 34.5 34.7 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.0 26.2 26.0 26.0 1.00 0.99
configure.util-linux no-host 39.5 39.5 39.7 39.6 39.6 1.01 1.00
configure.yash no-host 33.4 33.4 33.4 33.3 33.2 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.8 3.4 2.04 1.08

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 796 1 2 3.5 8.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,690 1 66 14.8 34.7 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,877 3 68 21.6 39.7 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,802 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 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,728 1 2 2.7 33.4 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,263 65,801 42,008 4,981 54,612 57,670 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.8 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 820 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,890 1 67 14.9 34.5 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,866 3 67 21.6 39.6 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,746 1 2 2.8 28.7 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,736 1 2 2.7 33.3 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,263 65,805 42,012 4,981 54,612 57,670 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 7 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 13 8 9.6 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 620 325 336 3.1 bash
9 no-host bin-true 446 270 182 1.6 dash
17 no-host bin-true 796 318 494 8.7 osh-native
25 no-host bin-true 820 306 533 9.2 osh-nosouffle
33 no-host bin-true 658 322 354 5.2 osh-static
2 no-host configure.cpython 14,085 7,730 6,750 34.6 bash
10 no-host configure.cpython 14,472 7,741 6,976 34.5 dash
18 no-host configure.cpython 13,690 7,217 6,747 34.7 osh-native
26 no-host configure.cpython 13,890 7,421 6,769 34.5 osh-nosouffle
34 no-host configure.cpython 13,192 7,432 6,001 34.7 osh-static
4 no-host configure.ocaml 3,744 1,562 1,222 28.7 bash
12 no-host configure.ocaml 3,639 1,483 1,181 28.6 dash
20 no-host configure.ocaml 3,802 1,508 1,335 28.7 osh-native
28 no-host configure.ocaml 3,746 1,482 1,307 28.7 osh-nosouffle
36 no-host configure.ocaml 3,726 1,549 1,208 28.7 osh-static
5 no-host configure.tcc 46 26 21 26.2 bash
13 no-host configure.tcc 41 23 18 26.0 dash
21 no-host configure.tcc 48 26 22 26.2 osh-native
29 no-host configure.tcc 48 26 23 26.0 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.0 osh-static
3 no-host configure.util-linux 12,942 6,736 6,687 39.5 bash
11 no-host configure.util-linux 13,520 6,570 7,442 39.5 dash
19 no-host configure.util-linux 12,877 6,367 6,746 39.7 osh-native
27 no-host configure.util-linux 12,866 6,417 6,677 39.6 osh-nosouffle
35 no-host configure.util-linux 12,497 6,367 6,361 39.6 osh-static
6 no-host configure.yash 1,738 946 801 33.4 bash
14 no-host configure.yash 1,656 963 694 33.4 dash
22 no-host configure.yash 1,728 952 779 33.4 osh-native
30 no-host configure.yash 1,736 982 757 33.3 osh-nosouffle
38 no-host configure.yash 1,703 977 729 33.2 osh-static
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 2 1 6.8 osh-nosouffle
32 no-host hello-world 1 1 0 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,391 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,336 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,393 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,826 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,517 0 0 0 8 0 1,996 40 bash
9 no-host bin-true 49,392 0 0 0 8 0 2,989 47 dash
17 no-host bin-true 129,271 0 0 0 16 0 1,996 68 osh-native
25 no-host bin-true 136,979 0 0 0 16 0 1,999 77 osh-nosouffle
33 no-host bin-true 110,360 0 0 0 8 0 1,999 56 osh-static
2 no-host configure.cpython 1,629,535 0 0 0 25,272 0 14,076 1,062 bash
10 no-host configure.cpython 1,647,861 0 0 0 25,272 0 14,155 1,059 dash
18 no-host configure.cpython 1,586,680 0 0 0 25,280 0 11,311 860 osh-native
26 no-host configure.cpython 1,605,026 0 0 0 25,280 0 11,298 816 osh-nosouffle
34 no-host configure.cpython 1,514,447 0 0 0 25,272 0 11,296 862 osh-static
4 no-host configure.ocaml 298,801 0 0 0 4,432 0 2,017 181 bash
12 no-host configure.ocaml 280,922 0 0 0 4,432 0 2,110 203 dash
20 no-host configure.ocaml 305,840 0 0 0 4,440 0 1,998 209 osh-native
28 no-host configure.ocaml 306,972 0 0 0 4,440 0 2,001 215 osh-nosouffle
36 no-host configure.ocaml 300,037 0 0 0 4,432 0 2,000 215 osh-static
5 no-host configure.tcc 5,220 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,190 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,616 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,677 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,107 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,528,397 1 0 0 35,936 0 18,992 1,087 bash
11 no-host configure.util-linux 1,701,927 1 0 0 35,936 0 17,077 1,232 dash
19 no-host configure.util-linux 1,496,844 2 0 0 35,960 0 16,125 955 osh-native
27 no-host configure.util-linux 1,516,182 0 0 0 35,952 0 16,220 908 osh-nosouffle
35 no-host configure.util-linux 1,470,670 1 0 0 35,936 0 16,222 926 osh-static
6 no-host configure.yash 173,401 0 0 0 3,616 0 875 108 bash
14 no-host configure.yash 159,598 0 0 0 3,616 0 1,001 94 dash
22 no-host configure.yash 176,826 0 0 0 3,624 0 855 107 osh-native
30 no-host configure.yash 176,815 0 0 0 3,632 0 856 105 osh-nosouffle
38 no-host configure.yash 172,704 0 0 0 3,616 0 856 104 osh-static
0 no-host hello-world 150 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 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 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-f47da162
osh-nosouffle osh-5ce25b08
osh-static osh-static-422aa907
host label host id
no-host no-host-bba74091