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 19 1.31 1.19
bin-true no-host 621 489 802 814 664 1.29 1.07
configure.cpython no-host 14,119 14,204 13,719 13,533 13,139 0.97 0.93
configure.ocaml no-host 3,732 3,607 3,699 3,801 3,690 0.99 0.99
configure.tcc no-host 47 42 47 49 45 1.01 0.96
configure.util-linux no-host 12,632 13,414 12,615 12,804 12,379 1.00 0.98
configure.yash no-host 1,749 1,692 1,686 1,742 1,727 0.96 0.99
hello-world no-host 1 1 3 3 1 2.39 1.10

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,181 3,298 3,421 2,841 1.38 1.19
bin-true no-host 100,422 49,410 131,220 137,002 112,055 1.31 1.12
configure.cpython no-host 1,619,524 1,636,090 1,594,448 1,602,023 1,512,354 0.98 0.93
configure.ocaml no-host 299,044 281,012 305,836 306,723 300,111 1.02 1.00
configure.tcc no-host 5,251 4,222 5,529 5,646 5,121 1.05 0.98
configure.util-linux no-host 1,537,853 1,699,309 1,498,920 1,521,824 1,470,087 0.97 0.96
configure.yash no-host 173,353 159,582 177,188 176,997 172,754 1.02 1.00
hello-world no-host 153 84 390 401 184 2.55 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 3.9 9.4 10.0 6.3 2.00 1.33
bin-true no-host 3.3 1.7 8.7 9.0 5.2 2.64 1.60
configure.cpython no-host 34.4 34.5 34.5 34.7 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.3 26.1 26.2 26.2 26.1 1.00 0.99
configure.util-linux no-host 39.6 39.6 39.5 39.6 39.7 1.00 1.00
configure.yash no-host 33.1 33.3 33.4 33.5 33.3 1.01 1.00
hello-world no-host 3.1 1.6 6.4 6.9 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 802 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,719 1 72 14.8 34.5 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,615 3 68 21.6 39.5 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,699 1 2 2.8 28.5 149,720 12,656 6,571 9,217 70,302 70,201 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,686 1 2 2.7 33.4 143,496 11,508 6,625 7,171 70,532 65,793 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 814 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,533 1 69 14.9 34.7 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,804 3 70 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,801 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 49 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,742 1 2 2.7 33.5 143,496 11,512 6,629 7,171 70,532 65,793 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 9 7 4.7 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 21 11 11 9.4 osh-native
31 no-host abuild-print-help 22 15 8 10.0 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.3 osh-static
1 no-host bin-true 621 312 351 3.3 bash
9 no-host bin-true 489 284 209 1.7 dash
17 no-host bin-true 802 325 494 8.7 osh-native
25 no-host bin-true 814 308 525 9.0 osh-nosouffle
33 no-host bin-true 664 335 349 5.2 osh-static
2 no-host configure.cpython 14,119 7,670 6,853 34.4 bash
10 no-host configure.cpython 14,204 7,792 6,827 34.5 dash
18 no-host configure.cpython 13,719 7,291 6,712 34.5 osh-native
26 no-host configure.cpython 13,533 7,243 6,576 34.7 osh-nosouffle
34 no-host configure.cpython 13,139 7,154 6,226 34.4 osh-static
4 no-host configure.ocaml 3,732 1,504 1,270 28.7 bash
12 no-host configure.ocaml 3,607 1,479 1,154 28.6 dash
20 no-host configure.ocaml 3,699 1,453 1,285 28.5 osh-native
28 no-host configure.ocaml 3,801 1,544 1,299 28.7 osh-nosouffle
36 no-host configure.ocaml 3,690 1,479 1,243 28.7 osh-static
5 no-host configure.tcc 47 27 21 26.3 bash
13 no-host configure.tcc 42 25 17 26.1 dash
21 no-host configure.tcc 47 22 26 26.2 osh-native
29 no-host configure.tcc 49 23 27 26.2 osh-nosouffle
37 no-host configure.tcc 45 25 20 26.1 osh-static
3 no-host configure.util-linux 12,632 6,540 6,572 39.6 bash
11 no-host configure.util-linux 13,414 6,530 7,370 39.6 dash
19 no-host configure.util-linux 12,615 6,206 6,638 39.5 osh-native
27 no-host configure.util-linux 12,804 6,277 6,766 39.6 osh-nosouffle
35 no-host configure.util-linux 12,379 6,317 6,287 39.7 osh-static
6 no-host configure.yash 1,749 996 763 33.1 bash
14 no-host configure.yash 1,692 937 757 33.3 dash
22 no-host configure.yash 1,686 921 768 33.4 osh-native
30 no-host configure.yash 1,742 945 800 33.5 osh-nosouffle
38 no-host configure.yash 1,727 984 745 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 1 2 6.9 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,181 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,298 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,421 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,841 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,422 0 0 0 8 0 1,995 56 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,987 61 dash
17 no-host bin-true 131,220 0 0 0 16 0 2,000 87 osh-native
25 no-host bin-true 137,002 0 0 0 16 0 2,000 72 osh-nosouffle
33 no-host bin-true 112,055 0 0 0 8 0 1,997 62 osh-static
2 no-host configure.cpython 1,619,524 0 0 0 25,272 0 14,102 1,003 bash
10 no-host configure.cpython 1,636,090 0 0 0 25,272 0 14,133 1,001 dash
18 no-host configure.cpython 1,594,448 0 0 0 25,280 0 11,293 986 osh-native
26 no-host configure.cpython 1,602,023 0 0 0 25,280 0 11,305 833 osh-nosouffle
34 no-host configure.cpython 1,512,354 0 0 0 25,272 0 11,299 913 osh-static
4 no-host configure.ocaml 299,044 0 0 0 4,432 0 2,018 172 bash
12 no-host configure.ocaml 281,012 0 0 0 4,432 0 2,103 191 dash
20 no-host configure.ocaml 305,836 0 0 0 4,440 0 2,000 215 osh-native
28 no-host configure.ocaml 306,723 0 0 0 4,440 0 2,005 201 osh-nosouffle
36 no-host configure.ocaml 300,111 0 0 0 4,432 0 2,002 245 osh-static
5 no-host configure.tcc 5,251 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,529 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,646 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,121 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,537,853 0 0 0 35,936 0 18,974 1,088 bash
11 no-host configure.util-linux 1,699,309 0 0 0 35,936 0 17,089 1,167 dash
19 no-host configure.util-linux 1,498,920 0 0 0 35,952 0 16,149 913 osh-native
27 no-host configure.util-linux 1,521,824 0 0 0 35,944 0 16,219 925 osh-nosouffle
35 no-host configure.util-linux 1,470,087 3 0 8 35,936 0 16,181 985 osh-static
6 no-host configure.yash 173,353 0 0 0 3,616 0 876 96 bash
14 no-host configure.yash 159,582 0 0 0 3,616 0 1,001 108 dash
22 no-host configure.yash 177,188 0 0 0 3,624 0 857 98 osh-native
30 no-host configure.yash 176,997 0 0 0 3,624 0 857 98 osh-nosouffle
38 no-host configure.yash 172,754 0 0 0 3,624 0 858 107 osh-static
0 no-host hello-world 153 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 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-10aea361
osh-nosouffle osh-8832e5d6
osh-static osh-static-7c85064d
host label host id
no-host no-host-bba74091