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 19 9 471 22 21 24.51 1.15
bin-true no-host 676 536 2,322 825 810 3.44 1.22
configure.cpython no-host 14,972 15,071 28,953 15,183 15,414 1.93 1.01
configure.ocaml no-host 3,807 3,729 4,648 3,813 3,802 1.22 1.00
configure.tcc no-host 48 42 204 50 49 4.23 1.03
configure.util-linux no-host 13,983 14,898 31,411 14,378 14,288 2.25 1.03
configure.yash no-host 1,822 1,778 2,457 1,829 1,822 1.35 1.00
hello-world no-host 1 1 56 3 3 38.91 1.99

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,532 1,099 23,514 3,168 3,096 9.29 1.25
bin-true no-host 105,285 66,477 760,349 127,101 126,231 7.22 1.21
configure.cpython no-host 2,221,462 2,247,296 6,213,396 2,220,250 2,218,706 2.80 1.00
configure.ocaml no-host 410,706 391,724 643,405 413,376 412,919 1.57 1.01
configure.tcc no-host 6,547 5,460 23,882 6,950 6,891 3.65 1.06
configure.util-linux no-host 2,094,969 2,257,123 5,348,327 2,000,139 1,988,564 2.55 0.95
configure.yash no-host 256,520 244,553 386,722 258,170 256,768 1.51 1.01
hello-world no-host 154 81 3,947 342 339 25.63 2.22

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.3 3.5 22.7 8.9 8.7 5.25 2.06
bin-true no-host 3.0 1.6 18.4 8.0 7.7 6.10 2.65
configure.cpython no-host 27.3 27.4 27.3 27.4 27.1 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.6 20.6 1.00 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.0 30.0 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.1 24.4 1.00 0.99
hello-world no-host 2.9 1.4 18.1 6.3 5.9 6.27 2.18

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.3 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,183 1 63 14.9 27.4 1,771,800 49,612 28,519 85,427 878,134 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,378 3 63 21.2 30.0 2,702,546 53,773 65,698 108,699 1,290,651 1,303,196 32,241 41 131,396 1
configure.ocaml no-host 3,813 1 2 2.6 20.6 150,087 11,119 5,214 7,508 70,972 71,607 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,593 30,593 0 1,518 14,644 14,431 271 0 50,000 0
configure.yash no-host 1,829 1 2 2.5 24.1 139,419 8,031 6,693 5,989 67,945 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 810 1 2 2.6 7.7 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,414 1 65 14.9 27.1 1,771,799 49,070 28,457 85,428 878,134 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,288 3 63 21.2 30.1 2,702,546 53,700 65,656 108,701 1,290,651 1,303,194 32,241 41 131,312 1
configure.ocaml no-host 3,802 1 2 2.6 20.6 150,087 11,057 5,152 7,510 70,972 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,593 30,593 0 1,520 14,644 14,429 271 0 50,000 0
configure.yash no-host 1,822 1 2 2.5 24.4 139,419 7,969 6,631 5,991 67,945 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 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 19 10 10 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 471 428 46 22.7 osh-cpython
31 no-host abuild-print-help 22 13 9 8.9 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 676 495 214 3.0 bash
9 no-host bin-true 536 414 132 1.6 dash
17 no-host bin-true 2,322 1,553 1,034 18.4 osh-cpython
25 no-host bin-true 825 609 224 8.0 osh-native
33 no-host bin-true 810 603 224 7.7 osh-native-souffle
2 no-host configure.cpython 14,972 9,174 6,205 27.3 bash
10 no-host configure.cpython 15,071 9,042 6,443 27.4 dash
18 no-host configure.cpython 28,953 17,722 13,123 27.3 osh-cpython
26 no-host configure.cpython 15,183 8,797 6,655 27.4 osh-native
34 no-host configure.cpython 15,414 9,009 6,469 27.1 osh-native-souffle
4 no-host configure.ocaml 3,807 1,638 1,200 20.4 bash
12 no-host configure.ocaml 3,729 1,545 1,203 20.6 dash
20 no-host configure.ocaml 4,648 2,257 1,603 20.4 osh-cpython
28 no-host configure.ocaml 3,813 1,589 1,265 20.6 osh-native
36 no-host configure.ocaml 3,802 1,587 1,252 20.6 osh-native-souffle
5 no-host configure.tcc 48 28 20 19.3 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 204 147 60 19.3 osh-cpython
29 no-host configure.tcc 50 28 22 19.3 osh-native
37 no-host configure.tcc 49 23 27 19.4 osh-native-souffle
3 no-host configure.util-linux 13,983 8,813 5,648 30.0 bash
11 no-host configure.util-linux 14,898 9,064 6,312 30.1 dash
19 no-host configure.util-linux 31,411 21,071 11,440 30.0 osh-cpython
27 no-host configure.util-linux 14,378 8,745 5,817 30.0 osh-native
35 no-host configure.util-linux 14,288 8,420 6,059 30.1 osh-native-souffle
6 no-host configure.yash 1,822 1,022 808 24.2 bash
14 no-host configure.yash 1,778 1,059 723 24.4 dash
22 no-host configure.yash 2,457 1,450 1,049 24.2 osh-cpython
30 no-host configure.yash 1,829 1,142 691 24.1 osh-native
38 no-host configure.yash 1,822 1,108 719 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 32 24 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 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,532 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,514 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,168 0 0 0 16 0 39 8 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,285 0 0 0 8 0 1,994 112 bash
9 no-host bin-true 66,477 0 0 0 8 0 1,985 47 dash
17 no-host bin-true 760,349 0 0 0 8 0 1,995 147 osh-cpython
25 no-host bin-true 127,101 0 0 0 16 0 1,991 175 osh-native
33 no-host bin-true 126,231 0 0 0 16 0 1,994 148 osh-native-souffle
2 no-host configure.cpython 2,221,462 0 0 0 32,928 0 14,474 1,199 bash
10 no-host configure.cpython 2,247,296 0 0 0 32,992 0 14,613 905 dash
18 no-host configure.cpython 6,213,396 1 0 0 27,512 0 13,239 1,200 osh-cpython
26 no-host configure.cpython 2,220,250 0 0 0 27,520 0 13,240 1,046 osh-native
34 no-host configure.cpython 2,218,706 0 0 0 27,520 0 13,244 1,103 osh-native-souffle
4 no-host configure.ocaml 410,706 0 0 0 5,120 0 1,969 144 bash
12 no-host configure.ocaml 391,724 0 0 0 5,112 0 1,930 157 dash
20 no-host configure.ocaml 643,405 0 0 0 5,112 0 1,860 193 osh-cpython
28 no-host configure.ocaml 413,376 0 0 0 5,120 0 1,926 182 osh-native
36 no-host configure.ocaml 412,919 0 0 0 5,120 0 1,935 129 osh-native-souffle
5 no-host configure.tcc 6,547 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,882 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,950 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,891 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,094,969 1 0 0 42,400 0 18,608 1,032 bash
11 no-host configure.util-linux 2,257,123 0 0 0 42,584 0 17,524 1,167 dash
19 no-host configure.util-linux 5,348,327 6 0 0 39,112 0 16,958 1,266 osh-cpython
27 no-host configure.util-linux 2,000,139 1 0 0 39,128 0 16,955 1,020 osh-native
35 no-host configure.util-linux 1,988,564 0 0 0 39,136 0 16,987 981 osh-native-souffle
6 no-host configure.yash 256,520 0 0 0 4,120 0 870 74 bash
14 no-host configure.yash 244,553 0 0 0 3,720 0 869 82 dash
22 no-host configure.yash 386,722 0 0 0 3,728 0 852 106 osh-cpython
30 no-host configure.yash 258,170 0 0 0 3,736 0 846 63 osh-native
38 no-host configure.yash 256,768 0 0 0 3,736 0 851 63 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,947 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-9b56e078
dash dash-0ebcf347
osh-cpython osh-413fa999
osh-native osh-d108d55c
osh-native-souffle osh-f31b56e2
host label host id
no-host no-host-556df3ee