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.32 1.14
bin-true no-host 623 442 809 831 657 1.30 1.05
configure.cpython no-host 13,944 14,162 13,698 13,703 13,111 0.98 0.94
configure.ocaml no-host 3,695 3,632 3,751 3,725 3,713 1.02 1.00
configure.tcc no-host 46 41 47 47 43 1.02 0.94
configure.util-linux no-host 12,619 13,495 12,770 12,704 12,311 1.01 0.98
configure.yash no-host 1,719 1,660 1,730 1,715 1,697 1.01 0.99
hello-world no-host 1 1 3 3 1 2.46 1.05

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,390 1,176 3,320 3,449 2,846 1.39 1.19
bin-true no-host 101,425 49,418 133,023 136,321 110,758 1.31 1.09
configure.cpython no-host 1,627,588 1,640,284 1,581,452 1,601,168 1,518,801 0.97 0.93
configure.ocaml no-host 299,078 280,527 306,523 307,006 299,890 1.02 1.00
configure.tcc no-host 5,199 4,222 5,617 5,662 5,130 1.08 0.99
configure.util-linux no-host 1,539,399 1,703,225 1,522,435 1,521,046 1,478,319 0.99 0.96
configure.yash no-host 173,133 159,567 176,785 176,952 172,801 1.02 1.00
hello-world no-host 154 84 390 400 182 2.53 1.18

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.8 9.4 10.2 6.3 1.95 1.30
bin-true no-host 3.1 1.6 8.7 8.9 5.2 2.75 1.67
configure.cpython no-host 34.4 34.5 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.7 28.8 1.00 1.00
configure.tcc no-host 26.3 26.1 26.3 26.3 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.5 39.6 39.6 1.00 1.00
configure.yash no-host 33.2 33.4 33.3 33.5 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.4 6.9 3.3 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 3 0 0 0.3 6.4 3,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 809 1 2 3.5 8.7 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,698 1 70 14.8 34.5 1,750,827 35,398 28,953 93,078 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,770 3 70 21.6 39.5 2,705,393 37,470 66,341 119,746 1,291,872 1,293,775 32,527 42 132,682 1
configure.ocaml no-host 3,751 1 2 2.8 28.7 149,700 12,655 6,570 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.7 33.3 143,476 11,507 6,624 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,234 65,800 42,007 4,977 54,599 57,658 277 3 84,014 1
hello-world no-host 3 0 0 0.3 6.9 3,914 3,914 0 722 1,921 1,271 2 0 50,000 0
bin-true no-host 831 1 2 3.5 8.9 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,703 1 67 14.8 34.5 1,750,826 36,457 28,958 93,077 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,704 3 66 21.6 39.6 2,705,393 37,476 66,347 119,746 1,291,872 1,293,775 32,527 42 132,694 1
configure.ocaml no-host 3,725 1 2 2.8 28.7 149,700 12,660 6,575 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,715 1 2 2.7 33.5 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.2 117,234 65,804 42,011 4,977 54,599 57,658 277 3 84,022 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 11 6 4.8 bash
15 no-host abuild-print-help 9 5 5 3.8 dash
23 no-host abuild-print-help 21 11 11 9.4 osh-native
31 no-host abuild-print-help 22 11 11 10.2 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 623 306 355 3.1 bash
9 no-host bin-true 442 274 174 1.6 dash
17 no-host bin-true 809 301 523 8.7 osh-native
25 no-host bin-true 831 299 546 8.9 osh-nosouffle
33 no-host bin-true 657 326 346 5.2 osh-static
2 no-host configure.cpython 13,944 7,539 6,793 34.4 bash
10 no-host configure.cpython 14,162 7,718 6,842 34.5 dash
18 no-host configure.cpython 13,698 7,271 6,696 34.5 osh-native
26 no-host configure.cpython 13,703 7,241 6,751 34.5 osh-nosouffle
34 no-host configure.cpython 13,111 7,216 6,128 34.5 osh-static
4 no-host configure.ocaml 3,695 1,523 1,213 28.7 bash
12 no-host configure.ocaml 3,632 1,454 1,202 28.7 dash
20 no-host configure.ocaml 3,751 1,517 1,271 28.7 osh-native
28 no-host configure.ocaml 3,725 1,498 1,267 28.7 osh-nosouffle
36 no-host configure.ocaml 3,713 1,515 1,230 28.8 osh-static
5 no-host configure.tcc 46 28 19 26.3 bash
13 no-host configure.tcc 41 24 18 26.1 dash
21 no-host configure.tcc 47 28 20 26.3 osh-native
29 no-host configure.tcc 47 29 19 26.3 osh-nosouffle
37 no-host configure.tcc 43 27 17 26.2 osh-static
3 no-host configure.util-linux 12,619 6,615 6,472 39.6 bash
11 no-host configure.util-linux 13,495 6,579 7,402 39.6 dash
19 no-host configure.util-linux 12,770 6,309 6,688 39.5 osh-native
27 no-host configure.util-linux 12,704 6,320 6,608 39.6 osh-nosouffle
35 no-host configure.util-linux 12,311 6,223 6,307 39.6 osh-static
6 no-host configure.yash 1,719 971 756 33.2 bash
14 no-host configure.yash 1,660 960 701 33.4 dash
22 no-host configure.yash 1,730 931 801 33.3 osh-native
30 no-host configure.yash 1,715 980 737 33.5 osh-nosouffle
38 no-host configure.yash 1,697 948 748 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 0 3 6.4 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 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,390 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,320 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,449 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,846 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,425 0 0 0 8 0 1,999 71 bash
9 no-host bin-true 49,418 0 0 0 8 0 2,990 55 dash
17 no-host bin-true 133,023 0 0 0 16 0 1,996 68 osh-native
25 no-host bin-true 136,321 0 0 0 16 0 1,994 99 osh-nosouffle
33 no-host bin-true 110,758 0 0 0 8 0 1,994 76 osh-static
2 no-host configure.cpython 1,627,588 0 0 0 25,272 0 14,069 1,070 bash
10 no-host configure.cpython 1,640,284 0 0 0 25,272 0 14,108 1,047 dash
18 no-host configure.cpython 1,581,452 0 0 0 25,280 0 11,301 848 osh-native
26 no-host configure.cpython 1,601,168 0 0 0 25,280 0 11,302 820 osh-nosouffle
34 no-host configure.cpython 1,518,801 0 0 0 25,272 0 11,283 766 osh-static
4 no-host configure.ocaml 299,078 0 0 0 4,432 0 2,016 177 bash
12 no-host configure.ocaml 280,527 0 0 0 4,432 0 2,103 195 dash
20 no-host configure.ocaml 306,523 0 0 0 4,440 0 2,000 211 osh-native
28 no-host configure.ocaml 307,006 0 0 0 4,440 0 1,991 176 osh-nosouffle
36 no-host configure.ocaml 299,890 0 0 0 4,432 0 1,996 231 osh-static
5 no-host configure.tcc 5,199 0 0 0 80 0 49 4 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,617 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,662 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,130 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,539,399 1 0 0 35,944 0 18,972 1,049 bash
11 no-host configure.util-linux 1,703,225 0 0 336 35,936 0 17,121 1,161 dash
19 no-host configure.util-linux 1,522,435 1 0 0 35,952 0 16,211 911 osh-native
27 no-host configure.util-linux 1,521,046 0 0 0 35,944 0 16,135 868 osh-nosouffle
35 no-host configure.util-linux 1,478,319 0 0 0 35,936 0 16,214 859 osh-static
6 no-host configure.yash 173,133 0 0 0 3,616 0 878 88 bash
14 no-host configure.yash 159,567 0 0 0 3,624 0 1,002 99 dash
22 no-host configure.yash 176,785 0 0 0 3,624 0 857 107 osh-native
30 no-host configure.yash 176,952 0 0 0 3,624 0 858 107 osh-nosouffle
38 no-host configure.yash 172,801 0 0 0 3,616 0 858 102 osh-static
0 no-host hello-world 154 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 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-f62e92c9
osh-nosouffle osh-c6ca0c1a
osh-static osh-static-2cc905a7
host label host id
no-host no-host-9c670df1