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 464 22 21 24.17 1.16
bin-true no-host 679 546 2,284 811 816 3.37 1.20
configure.cpython no-host 14,997 14,987 28,760 15,194 15,373 1.92 1.01
configure.ocaml no-host 3,782 3,720 4,637 3,806 3,804 1.23 1.01
configure.tcc no-host 47 42 202 49 48 4.26 1.03
configure.util-linux no-host 13,987 14,826 31,339 14,338 14,294 2.24 1.03
configure.yash no-host 1,830 1,775 2,443 1,831 1,824 1.33 1.00
hello-world no-host 2 1 56 3 3 37.20 1.89

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,560 1,102 23,517 3,191 3,146 9.19 1.25
bin-true no-host 104,357 66,407 764,002 125,141 125,183 7.32 1.20
configure.cpython no-host 2,214,188 2,246,494 6,206,930 2,223,638 2,216,757 2.80 1.00
configure.ocaml no-host 410,642 391,198 645,007 413,657 413,107 1.57 1.01
configure.tcc no-host 6,573 5,482 23,959 6,964 6,909 3.65 1.06
configure.util-linux no-host 2,090,626 2,255,132 5,362,404 2,000,883 1,996,810 2.56 0.96
configure.yash no-host 256,858 245,063 386,559 257,444 257,542 1.50 1.00
hello-world no-host 153 84 3,948 346 337 25.80 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.5 22.7 9.0 8.8 5.10 2.03
bin-true no-host 3.0 1.6 18.4 8.1 7.6 6.10 2.70
configure.cpython no-host 27.3 27.3 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 20.6 1.01 1.00
configure.tcc no-host 19.4 19.4 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.0 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.5 24.4 1.00 1.01
hello-world no-host 2.9 1.4 18.1 6.4 5.6 6.29 2.23

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.4 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.1 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,194 1 61 14.9 27.3 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,338 2 59 21.2 30.3 2,702,546 45,807 65,718 108,699 1,290,651 1,303,196 32,241 41 131,436 1
configure.ocaml no-host 3,806 1 2 2.6 20.4 150,087 11,119 5,214 7,508 70,972 71,607 1,695 3 50,000 0
configure.tcc no-host 49 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,831 1 2 2.5 24.5 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 9.0 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.6 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,373 1 59 14.9 27.4 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,294 3 59 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,804 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 48 0 0 1.3 19.3 30,593 30,593 0 1,520 14,644 14,429 271 0 50,000 0
configure.yash no-host 1,824 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.8 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 14 6 4.5 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 464 434 33 22.7 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 21 17 4 8.8 osh-native-souffle
1 no-host bin-true 679 512 199 3.0 bash
9 no-host bin-true 546 420 136 1.6 dash
17 no-host bin-true 2,284 1,469 1,070 18.4 osh-cpython
25 no-host bin-true 811 557 267 8.1 osh-native
33 no-host bin-true 816 562 268 7.6 osh-native-souffle
2 no-host configure.cpython 14,997 8,972 6,427 27.3 bash
10 no-host configure.cpython 14,987 9,054 6,351 27.3 dash
18 no-host configure.cpython 28,760 17,779 12,831 27.4 osh-cpython
26 no-host configure.cpython 15,194 8,885 6,573 27.3 osh-native
34 no-host configure.cpython 15,373 8,889 6,602 27.4 osh-native-souffle
4 no-host configure.ocaml 3,782 1,565 1,256 20.4 bash
12 no-host configure.ocaml 3,720 1,590 1,151 20.6 dash
20 no-host configure.ocaml 4,637 2,272 1,574 20.6 osh-cpython
28 no-host configure.ocaml 3,806 1,664 1,183 20.4 osh-native
36 no-host configure.ocaml 3,804 1,666 1,176 20.6 osh-native-souffle
5 no-host configure.tcc 47 25 23 19.4 bash
13 no-host configure.tcc 42 27 15 19.4 dash
21 no-host configure.tcc 202 137 68 19.4 osh-cpython
29 no-host configure.tcc 49 31 18 19.3 osh-native
37 no-host configure.tcc 48 23 26 19.3 osh-native-souffle
3 no-host configure.util-linux 13,987 8,871 5,583 30.1 bash
11 no-host configure.util-linux 14,826 9,295 6,029 30.0 dash
19 no-host configure.util-linux 31,339 20,889 11,524 30.3 osh-cpython
27 no-host configure.util-linux 14,338 8,551 5,979 30.3 osh-native
35 no-host configure.util-linux 14,294 8,660 5,847 30.1 osh-native-souffle
6 no-host configure.yash 1,830 1,090 744 24.2 bash
14 no-host configure.yash 1,775 1,037 742 24.4 dash
22 no-host configure.yash 2,443 1,493 991 24.2 osh-cpython
30 no-host configure.yash 1,831 1,138 695 24.5 osh-native
38 no-host configure.yash 1,824 1,057 768 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 28 27 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 3 0 5.6 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,560 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,517 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,146 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,357 0 0 0 8 0 2,000 53 bash
9 no-host bin-true 66,407 0 0 0 8 0 1,988 39 dash
17 no-host bin-true 764,002 0 0 0 8 0 2,003 188 osh-cpython
25 no-host bin-true 125,141 0 0 0 16 0 1,991 105 osh-native
33 no-host bin-true 125,183 0 0 0 16 0 1,984 157 osh-native-souffle
2 no-host configure.cpython 2,214,188 0 0 0 32,928 0 14,516 1,127 bash
10 no-host configure.cpython 2,246,494 0 0 0 32,992 0 14,663 998 dash
18 no-host configure.cpython 6,206,930 1 0 0 27,512 0 13,262 1,132 osh-cpython
26 no-host configure.cpython 2,223,638 0 0 0 27,520 0 13,209 929 osh-native
34 no-host configure.cpython 2,216,757 0 0 0 27,520 0 13,246 1,011 osh-native-souffle
4 no-host configure.ocaml 410,642 0 0 0 5,120 0 1,952 149 bash
12 no-host configure.ocaml 391,198 0 0 0 5,112 0 1,916 152 dash
20 no-host configure.ocaml 645,007 0 0 0 5,112 0 1,860 191 osh-cpython
28 no-host configure.ocaml 413,657 0 0 0 5,120 0 1,924 151 osh-native
36 no-host configure.ocaml 413,107 0 0 0 5,120 0 1,929 156 osh-native-souffle
5 no-host configure.tcc 6,573 0 0 0 104 0 49 7 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,959 0 0 0 96 0 52 6 osh-cpython
29 no-host configure.tcc 6,964 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,909 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,090,626 0 0 0 42,400 0 18,554 976 bash
11 no-host configure.util-linux 2,255,132 0 0 0 42,592 0 17,475 1,120 dash
19 no-host configure.util-linux 5,362,404 3 0 0 39,112 0 17,152 1,381 osh-cpython
27 no-host configure.util-linux 2,000,883 1 0 0 39,120 0 17,100 1,071 osh-native
35 no-host configure.util-linux 1,996,810 1 0 0 39,128 0 17,174 994 osh-native-souffle
6 no-host configure.yash 256,858 0 0 0 4,120 0 889 86 bash
14 no-host configure.yash 245,063 0 0 0 3,720 0 869 63 dash
22 no-host configure.yash 386,559 0 0 0 3,728 0 853 90 osh-cpython
30 no-host configure.yash 257,444 0 0 0 3,736 0 847 77 osh-native
38 no-host configure.yash 257,542 0 0 0 3,736 0 849 73 osh-native-souffle
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 3,948 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-67ea1c08
dash dash-0ebcf347
osh-cpython osh-dd61398b
osh-native osh-4e8c58de
osh-native-souffle osh-e5d3f74a
host label host id
no-host no-host-556df3ee