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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 20 9 455 22 21 23.16 1.13
bin-true no-host 663 542 2,257 810 809 3.40 1.22
configure.cpython no-host 15,197 15,289 28,436 15,267 15,263 1.87 1.00
configure.ocaml no-host 3,854 3,781 4,649 3,821 3,790 1.21 0.99
configure.tcc no-host 48 42 197 48 48 4.13 1.01
configure.util-linux no-host 14,262 15,182 31,403 14,256 14,208 2.20 1.00
configure.yash no-host 1,855 1,791 2,457 1,802 1,796 1.32 0.97
hello-world no-host 2 1 50 3 3 32.32 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,535 1,111 23,376 3,209 3,138 9.22 1.27
bin-true no-host 102,428 67,400 767,363 126,217 125,876 7.49 1.23
configure.cpython no-host 2,217,752 2,243,189 6,204,950 2,226,314 2,215,265 2.80 1.00
configure.ocaml no-host 410,271 390,765 645,874 413,799 412,690 1.57 1.01
configure.tcc no-host 6,571 5,497 23,641 7,007 6,888 3.60 1.07
configure.util-linux no-host 2,106,719 2,261,582 5,349,953 1,993,964 1,990,497 2.54 0.95
configure.yash no-host 256,244 244,510 387,585 258,297 257,688 1.51 1.01
hello-world no-host 154 81 3,739 348 341 24.28 2.26

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 21.8 9.0 8.8 4.88 2.03
bin-true no-host 2.9 1.4 17.6 8.3 7.7 6.09 2.86
configure.cpython no-host 27.5 27.4 27.3 27.1 27.1 0.99 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.4 30.0 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.8 1.4 17.6 6.2 5.8 6.38 2.24

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.2 6.2 3,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.3 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,267 1 63 15.0 27.1 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,256 3 59 21.3 30.3 2,703,490 29,146 65,890 109,675 1,320,579 1,273,236 27,391 41 131,780 1
configure.ocaml no-host 3,821 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,802 1 2 2.6 24.4 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.8 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 809 1 2 2.6 7.7 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,263 1 62 14.9 27.1 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,208 3 60 21.3 30.3 2,703,490 42,741 65,828 109,677 1,320,579 1,273,234 27,391 41 131,656 1
configure.ocaml no-host 3,790 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,796 1 2 2.6 24.4 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 20 17 3 4.5 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 455 413 45 21.8 osh-cpython
31 no-host abuild-print-help 22 19 3 9.0 osh-native
39 no-host abuild-print-help 21 12 9 8.8 osh-native-souffle
1 no-host bin-true 663 480 214 2.9 bash
9 no-host bin-true 542 423 129 1.4 dash
17 no-host bin-true 2,257 1,529 995 17.6 osh-cpython
25 no-host bin-true 810 578 246 8.3 osh-native
33 no-host bin-true 809 570 254 7.7 osh-native-souffle
2 no-host configure.cpython 15,197 9,244 6,354 27.5 bash
10 no-host configure.cpython 15,289 9,274 6,435 27.4 dash
18 no-host configure.cpython 28,436 17,275 13,006 27.3 osh-cpython
26 no-host configure.cpython 15,267 9,031 6,497 27.1 osh-native
34 no-host configure.cpython 15,263 9,012 6,424 27.1 osh-native-souffle
4 no-host configure.ocaml 3,854 1,695 1,198 20.6 bash
12 no-host configure.ocaml 3,781 1,642 1,159 20.6 dash
20 no-host configure.ocaml 4,649 2,298 1,571 20.6 osh-cpython
28 no-host configure.ocaml 3,821 1,675 1,183 20.6 osh-native
36 no-host configure.ocaml 3,790 1,579 1,248 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.3 bash
13 no-host configure.tcc 42 25 17 19.4 dash
21 no-host configure.tcc 197 152 49 19.3 osh-cpython
29 no-host configure.tcc 48 29 20 19.3 osh-native
37 no-host configure.tcc 48 39 10 19.4 osh-native-souffle
3 no-host configure.util-linux 14,262 9,100 5,628 30.4 bash
11 no-host configure.util-linux 15,182 9,244 6,430 30.0 dash
19 no-host configure.util-linux 31,403 21,158 11,334 30.3 osh-cpython
27 no-host configure.util-linux 14,256 8,647 5,805 30.3 osh-native
35 no-host configure.util-linux 14,208 8,365 6,049 30.3 osh-native-souffle
6 no-host configure.yash 1,855 1,175 683 24.5 bash
14 no-host configure.yash 1,791 1,053 741 24.4 dash
22 no-host configure.yash 2,457 1,587 913 24.2 osh-cpython
30 no-host configure.yash 1,802 1,005 801 24.4 osh-native
38 no-host configure.yash 1,796 1,045 756 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 38 12 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 5.8 osh-native-souffle

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,535 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,376 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 38 2 osh-native
39 no-host abuild-print-help 3,138 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 102,428 0 0 0 8 0 1,988 49 bash
9 no-host bin-true 67,400 0 0 0 8 0 1,979 78 dash
17 no-host bin-true 767,363 0 0 0 8 0 1,988 139 osh-cpython
25 no-host bin-true 126,217 0 0 0 16 0 1,985 87 osh-native
33 no-host bin-true 125,876 0 0 0 16 0 1,987 173 osh-native-souffle
2 no-host configure.cpython 2,217,752 0 0 0 32,928 0 14,528 1,098 bash
10 no-host configure.cpython 2,243,189 0 0 0 32,992 0 14,595 1,066 dash
18 no-host configure.cpython 6,204,950 0 0 0 27,512 0 13,256 1,111 osh-cpython
26 no-host configure.cpython 2,226,314 0 0 0 27,520 0 13,260 1,110 osh-native
34 no-host configure.cpython 2,215,265 0 0 0 27,520 0 13,241 1,040 osh-native-souffle
4 no-host configure.ocaml 410,271 0 0 0 5,120 0 1,945 138 bash
12 no-host configure.ocaml 390,765 0 0 0 5,112 0 1,945 136 dash
20 no-host configure.ocaml 645,874 0 0 0 5,112 0 1,859 179 osh-cpython
28 no-host configure.ocaml 413,799 0 0 0 5,120 0 1,926 370 osh-native
36 no-host configure.ocaml 412,690 0 0 0 5,120 0 1,931 157 osh-native-souffle
5 no-host configure.tcc 6,571 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,497 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,641 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 7,007 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,888 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,106,719 0 0 0 42,400 0 18,555 998 bash
11 no-host configure.util-linux 2,261,582 0 0 0 42,584 0 17,458 1,187 dash
19 no-host configure.util-linux 5,349,953 13 0 0 39,112 0 16,956 1,275 osh-cpython
27 no-host configure.util-linux 1,993,964 0 0 0 39,120 0 16,950 1,038 osh-native
35 no-host configure.util-linux 1,990,497 0 0 0 39,128 0 17,024 1,003 osh-native-souffle
6 no-host configure.yash 256,244 0 0 0 4,120 0 872 96 bash
14 no-host configure.yash 244,510 0 0 0 3,720 0 868 82 dash
22 no-host configure.yash 387,585 0 0 0 3,728 0 854 101 osh-cpython
30 no-host configure.yash 258,297 0 0 0 3,736 0 849 85 osh-native
38 no-host configure.yash 257,688 0 0 0 3,736 0 850 84 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,739 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-801aad71
dash dash-0ebcf347
osh-cpython osh-1f0902d9
osh-native osh-d3bc40ef
osh-native-souffle osh-914dcabf
host label host id
no-host no-host-556df3ee