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.32 1.20
bin-true no-host 615 443 799 801 650 1.30 1.06
configure.cpython no-host 13,917 14,043 13,719 13,684 13,175 0.99 0.95
configure.ocaml no-host 3,696 3,636 3,776 3,755 3,738 1.02 1.01
configure.tcc no-host 47 42 47 47 44 1.01 0.95
configure.util-linux no-host 12,675 13,408 12,721 12,715 12,241 1.00 0.97
configure.yash no-host 1,725 1,675 1,725 1,704 1,728 1.00 1.00
hello-world no-host 1 1 3 3 1 2.26 0.94

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,385 1,186 3,304 3,415 2,853 1.39 1.20
bin-true no-host 100,416 49,395 128,992 132,338 111,730 1.28 1.11
configure.cpython no-host 1,629,881 1,633,162 1,584,275 1,603,985 1,523,961 0.97 0.94
configure.ocaml no-host 299,602 280,722 305,729 307,155 300,185 1.02 1.00
configure.tcc no-host 5,208 4,219 5,609 5,689 5,129 1.08 0.98
configure.util-linux no-host 1,538,348 1,694,221 1,499,854 1,509,303 1,451,332 0.97 0.94
configure.yash no-host 173,567 159,503 176,814 177,166 173,025 1.02 1.00
hello-world no-host 155 85 388 399 183 2.50 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.9 9.4 9.8 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.7 9.2 5.2 2.64 1.60
configure.cpython no-host 34.4 34.4 34.4 34.5 34.6 1.00 1.01
configure.ocaml no-host 28.7 28.6 28.6 28.8 28.5 1.00 1.00
configure.tcc no-host 26.3 26.2 26.2 26.0 26.1 1.00 1.00
configure.util-linux no-host 39.5 39.5 39.8 39.6 39.7 1.01 1.01
configure.yash no-host 33.4 33.2 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.4 6.9 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,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 799 1 2 3.5 8.7 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,719 1 68 14.8 34.4 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,721 3 69 21.6 39.8 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,776 1 2 2.8 28.6 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,725 1 2 2.7 33.3 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 6.9 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 801 1 2 3.5 9.2 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,684 1 70 14.8 34.5 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,715 3 68 21.6 39.6 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,755 1 2 2.8 28.8 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,704 1 2 2.7 33.4 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.8 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 21 12 9 9.4 osh-native
31 no-host abuild-print-help 22 11 12 9.8 osh-nosouffle
39 no-host abuild-print-help 19 11 9 6.4 osh-static
1 no-host bin-true 615 304 346 3.3 bash
9 no-host bin-true 443 277 172 1.6 dash
17 no-host bin-true 799 305 510 8.7 osh-native
25 no-host bin-true 801 321 497 9.2 osh-nosouffle
33 no-host bin-true 650 306 360 5.2 osh-static
2 no-host configure.cpython 13,917 7,616 6,689 34.4 bash
10 no-host configure.cpython 14,043 7,656 6,775 34.4 dash
18 no-host configure.cpython 13,719 7,239 6,743 34.4 osh-native
26 no-host configure.cpython 13,684 7,321 6,650 34.5 osh-nosouffle
34 no-host configure.cpython 13,175 7,343 6,040 34.6 osh-static
4 no-host configure.ocaml 3,696 1,522 1,216 28.7 bash
12 no-host configure.ocaml 3,636 1,450 1,193 28.6 dash
20 no-host configure.ocaml 3,776 1,524 1,291 28.6 osh-native
28 no-host configure.ocaml 3,755 1,513 1,282 28.8 osh-nosouffle
36 no-host configure.ocaml 3,738 1,467 1,303 28.5 osh-static
5 no-host configure.tcc 47 28 20 26.3 bash
13 no-host configure.tcc 42 23 19 26.2 dash
21 no-host configure.tcc 47 26 22 26.2 osh-native
29 no-host configure.tcc 47 26 22 26.0 osh-nosouffle
37 no-host configure.tcc 44 24 21 26.1 osh-static
3 no-host configure.util-linux 12,675 6,646 6,474 39.5 bash
11 no-host configure.util-linux 13,408 6,638 7,230 39.5 dash
19 no-host configure.util-linux 12,721 6,346 6,595 39.8 osh-native
27 no-host configure.util-linux 12,715 6,401 6,533 39.6 osh-nosouffle
35 no-host configure.util-linux 12,241 6,252 6,187 39.7 osh-static
6 no-host configure.yash 1,725 963 767 33.4 bash
14 no-host configure.yash 1,675 985 691 33.2 dash
22 no-host configure.yash 1,725 939 787 33.3 osh-native
30 no-host configure.yash 1,704 961 745 33.4 osh-nosouffle
38 no-host configure.yash 1,728 1,007 723 33.3 osh-static
0 no-host hello-world 1 1 0 3.3 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 1 2 6.9 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,385 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,186 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,304 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,415 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,853 0 0 0 8 0 38 1 osh-static
1 no-host bin-true 100,416 0 0 0 8 0 1,999 58 bash
9 no-host bin-true 49,395 0 0 0 8 0 2,994 58 dash
17 no-host bin-true 128,992 0 0 0 16 0 2,000 73 osh-native
25 no-host bin-true 132,338 0 0 0 16 0 1,997 58 osh-nosouffle
33 no-host bin-true 111,730 0 0 0 8 0 1,998 69 osh-static
2 no-host configure.cpython 1,629,881 0 0 0 25,272 0 14,092 1,074 bash
10 no-host configure.cpython 1,633,162 0 0 0 25,272 0 14,103 1,015 dash
18 no-host configure.cpython 1,584,275 0 0 0 25,280 0 11,268 851 osh-native
26 no-host configure.cpython 1,603,985 0 0 0 25,280 0 11,305 810 osh-nosouffle
34 no-host configure.cpython 1,523,961 0 0 0 25,272 0 11,312 839 osh-static
4 no-host configure.ocaml 299,602 0 0 0 4,432 0 2,020 197 bash
12 no-host configure.ocaml 280,722 0 0 0 4,432 0 2,109 200 dash
20 no-host configure.ocaml 305,729 0 0 0 4,440 0 2,000 212 osh-native
28 no-host configure.ocaml 307,155 0 0 0 4,440 0 2,001 206 osh-nosouffle
36 no-host configure.ocaml 300,185 0 0 0 4,432 0 2,000 224 osh-static
5 no-host configure.tcc 5,208 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,609 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,689 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,538,348 0 0 232 35,944 0 18,949 1,052 bash
11 no-host configure.util-linux 1,694,221 1 0 0 35,936 0 17,037 1,232 dash
19 no-host configure.util-linux 1,499,854 1 0 0 35,952 0 16,181 973 osh-native
27 no-host configure.util-linux 1,509,303 1 0 0 35,944 0 16,210 901 osh-nosouffle
35 no-host configure.util-linux 1,451,332 0 0 0 35,944 0 16,179 983 osh-static
6 no-host configure.yash 173,567 0 0 0 3,616 0 879 90 bash
14 no-host configure.yash 159,503 0 0 0 3,624 0 1,003 102 dash
22 no-host configure.yash 176,814 0 0 0 3,624 0 858 113 osh-native
30 no-host configure.yash 177,166 0 0 0 3,632 0 856 108 osh-nosouffle
38 no-host configure.yash 173,025 0 0 0 3,616 0 858 106 osh-static
0 no-host hello-world 155 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 388 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 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-f7a66e38
osh-nosouffle osh-429e1643
osh-static osh-static-92dc422c
host label host id
no-host no-host-9c670df1