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.33 1.13
bin-true no-host 620 444 800 812 653 1.29 1.05
configure.cpython no-host 13,704 13,678 13,739 13,714 13,017 1.00 0.95
configure.ocaml no-host 3,637 3,664 3,791 3,691 3,731 1.04 1.03
configure.tcc no-host 45 42 47 47 44 1.04 0.96
configure.util-linux no-host 12,458 13,274 12,793 12,544 12,219 1.03 0.98
configure.yash no-host 1,707 1,672 1,745 1,704 1,677 1.02 0.98
hello-world no-host 1 1 3 3 1 2.32 1.03

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,401 1,182 3,364 3,422 2,805 1.40 1.17
bin-true no-host 101,427 49,416 129,321 131,000 111,035 1.28 1.09
configure.cpython no-host 1,618,627 1,638,455 1,583,191 1,600,418 1,522,957 0.98 0.94
configure.ocaml no-host 298,751 281,142 306,050 306,842 300,908 1.02 1.01
configure.tcc no-host 5,237 4,212 5,596 5,639 5,144 1.07 0.98
configure.util-linux no-host 1,534,430 1,693,164 1,501,780 1,519,912 1,457,632 0.98 0.95
configure.yash no-host 173,226 159,539 176,913 176,797 173,104 1.02 1.00
hello-world no-host 153 84 393 399 183 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 4.6 3.9 9.6 10.0 6.4 2.09 1.40
bin-true no-host 3.1 1.7 8.8 9.0 5.2 2.79 1.67
configure.cpython no-host 34.5 34.6 34.4 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.1 26.2 26.1 26.0 1.00 0.99
configure.util-linux no-host 39.6 39.6 39.9 39.8 39.5 1.01 1.00
configure.yash no-host 33.4 33.4 33.4 33.2 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 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.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 800 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,739 2 68 14.8 34.4 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,793 3 68 21.6 39.9 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,791 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,745 1 2 2.7 33.4 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 812 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,714 2 68 14.8 34.4 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,544 3 64 21.6 39.8 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,691 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,704 1 2 2.7 33.2 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,212 65,788 41,998 4,969 54,592 57,651 277 3 83,996 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.6 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 21 11 11 9.6 osh-native
31 no-host abuild-print-help 22 10 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.4 osh-static
1 no-host bin-true 620 308 350 3.1 bash
9 no-host bin-true 444 268 180 1.7 dash
17 no-host bin-true 800 295 521 8.8 osh-native
25 no-host bin-true 812 309 520 9.0 osh-nosouffle
33 no-host bin-true 653 326 346 5.2 osh-static
2 no-host configure.cpython 13,704 7,518 6,572 34.5 bash
10 no-host configure.cpython 13,678 7,573 6,504 34.6 dash
18 no-host configure.cpython 13,739 7,285 6,735 34.4 osh-native
26 no-host configure.cpython 13,714 7,208 6,793 34.4 osh-nosouffle
34 no-host configure.cpython 13,017 7,207 6,047 34.5 osh-static
4 no-host configure.ocaml 3,637 1,422 1,256 28.6 bash
12 no-host configure.ocaml 3,664 1,494 1,194 28.7 dash
20 no-host configure.ocaml 3,791 1,524 1,308 28.7 osh-native
28 no-host configure.ocaml 3,691 1,455 1,279 28.7 osh-nosouffle
36 no-host configure.ocaml 3,731 1,530 1,233 28.7 osh-static
5 no-host configure.tcc 45 21 25 26.2 bash
13 no-host configure.tcc 42 21 21 26.1 dash
21 no-host configure.tcc 47 26 22 26.2 osh-native
29 no-host configure.tcc 47 24 23 26.1 osh-nosouffle
37 no-host configure.tcc 44 24 20 26.0 osh-static
3 no-host configure.util-linux 12,458 6,554 6,336 39.6 bash
11 no-host configure.util-linux 13,274 6,490 7,277 39.6 dash
19 no-host configure.util-linux 12,793 6,239 6,780 39.9 osh-native
27 no-host configure.util-linux 12,544 6,103 6,668 39.8 osh-nosouffle
35 no-host configure.util-linux 12,219 6,211 6,227 39.5 osh-static
6 no-host configure.yash 1,707 951 764 33.4 bash
14 no-host configure.yash 1,672 938 736 33.4 dash
22 no-host configure.yash 1,745 956 792 33.4 osh-native
30 no-host configure.yash 1,704 985 722 33.2 osh-nosouffle
38 no-host configure.yash 1,677 949 731 33.3 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 2 1 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,401 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,182 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 3,364 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,422 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,805 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,427 0 0 0 8 0 1,999 52 bash
9 no-host bin-true 49,416 0 0 0 8 0 2,991 66 dash
17 no-host bin-true 129,321 0 0 0 16 0 1,996 89 osh-native
25 no-host bin-true 131,000 0 0 0 16 0 1,998 93 osh-nosouffle
33 no-host bin-true 111,035 0 0 0 8 0 2,001 79 osh-static
2 no-host configure.cpython 1,618,627 0 0 0 25,272 0 14,076 985 bash
10 no-host configure.cpython 1,638,455 0 0 0 25,272 0 14,115 1,027 dash
18 no-host configure.cpython 1,583,191 0 0 0 25,280 0 11,290 936 osh-native
26 no-host configure.cpython 1,600,418 0 0 0 25,280 0 11,309 858 osh-nosouffle
34 no-host configure.cpython 1,522,957 0 0 0 25,272 0 11,302 981 osh-static
4 no-host configure.ocaml 298,751 0 0 0 4,432 0 2,018 187 bash
12 no-host configure.ocaml 281,142 0 0 0 4,432 0 2,110 207 dash
20 no-host configure.ocaml 306,050 0 0 0 4,440 0 1,997 217 osh-native
28 no-host configure.ocaml 306,842 0 0 0 4,440 0 1,996 206 osh-nosouffle
36 no-host configure.ocaml 300,908 0 0 0 4,432 0 2,001 213 osh-static
5 no-host configure.tcc 5,237 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,212 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,596 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,639 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,144 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,430 1 0 232 35,944 0 18,983 1,102 bash
11 no-host configure.util-linux 1,693,164 0 0 0 35,936 0 17,093 1,188 dash
19 no-host configure.util-linux 1,501,780 1 0 0 35,952 0 16,207 939 osh-native
27 no-host configure.util-linux 1,519,912 0 0 0 35,944 0 16,238 924 osh-nosouffle
35 no-host configure.util-linux 1,457,632 0 0 0 35,944 0 16,216 948 osh-static
6 no-host configure.yash 173,226 0 0 0 3,616 0 878 94 bash
14 no-host configure.yash 159,539 0 0 0 3,616 0 1,002 109 dash
22 no-host configure.yash 176,913 0 0 0 3,624 0 858 102 osh-native
30 no-host configure.yash 176,797 0 0 0 3,624 0 856 108 osh-nosouffle
38 no-host configure.yash 173,104 0 0 0 3,616 0 858 108 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 393 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-7506ee8d
osh-nosouffle osh-6e7dea29
osh-static osh-static-7fe360f8
host label host id
no-host no-host-9c670df1