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 10 474 22 21 24.82 1.18
bin-true no-host 685 547 2,332 823 810 3.40 1.20
configure.cpython no-host 15,522 15,590 29,692 15,745 15,739 1.91 1.01
configure.ocaml no-host 3,877 3,820 4,799 3,897 3,901 1.24 1.01
configure.tcc no-host 48 43 209 50 49 4.32 1.03
configure.util-linux no-host 14,375 15,484 32,283 14,834 14,722 2.25 1.03
configure.yash no-host 1,875 1,817 2,528 1,890 1,875 1.35 1.01
hello-world no-host 2 1 59 3 3 37.32 2.14

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,525 1,098 23,887 3,143 3,071 9.46 1.24
bin-true no-host 105,378 66,475 788,121 126,300 124,170 7.48 1.20
configure.cpython no-host 2,220,015 2,240,494 6,248,344 2,226,473 2,209,521 2.81 1.00
configure.ocaml no-host 411,314 391,082 648,742 412,720 411,782 1.58 1.00
configure.tcc no-host 6,549 5,486 24,511 6,955 6,909 3.74 1.06
configure.util-linux no-host 2,108,472 2,259,501 5,406,221 2,004,677 1,993,651 2.56 0.95
configure.yash no-host 256,503 244,060 390,246 258,394 255,977 1.52 1.01
hello-world no-host 151 83 4,007 352 345 26.54 2.33

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 23.1 9.0 8.5 5.19 2.03
bin-true no-host 3.0 1.6 18.9 7.9 7.7 6.28 2.61
configure.cpython no-host 27.3 27.4 27.5 27.3 27.5 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.4 24.5 24.4 24.5 1.00 0.99
hello-world no-host 2.8 1.4 18.9 6.3 5.8 6.88 2.29

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,782 3,782 0 695 1,857 1,230 2 0 50,000 0
bin-true no-host 823 1 2 2.6 7.9 153,746 12,266 2,886 8,744 78,326 66,676 3,008 3 50,000 0
configure.cpython no-host 15,745 1 67 14.9 27.3 1,771,747 49,906 28,595 85,416 908,078 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,834 3 66 21.2 30.1 2,702,513 29,751 65,879 108,692 1,320,584 1,273,237 32,239 41 131,758 1
configure.ocaml no-host 3,897 1 2 2.6 20.6 150,080 11,130 5,225 7,509 71,611 70,960 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,519 14,781 14,286 271 0 50,000 0
configure.yash no-host 1,890 1 2 2.5 24.4 139,406 8,026 6,688 5,987 70,286 63,133 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,539 42,749 4,533 54,526 57,233 277 3 85,498 1
hello-world no-host 3 0 0 0.2 5.8 3,781 3,781 0 696 1,857 1,228 2 0 50,000 0
bin-true no-host 810 1 2 2.6 7.7 153,745 12,110 2,824 8,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,739 1 65 14.9 27.5 1,771,746 49,108 28,533 85,417 908,078 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,722 3 62 21.2 30.1 2,702,513 29,765 65,817 108,694 1,320,584 1,273,235 32,239 41 131,634 1
configure.ocaml no-host 3,901 1 2 2.6 20.6 150,080 11,068 5,163 7,511 71,611 70,958 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 271 0 50,000 0
configure.yash no-host 1,875 1 2 2.5 24.5 139,406 7,964 6,626 5,989 70,286 63,131 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,477 42,687 4,534 54,526 57,231 277 3 85,374 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 16 3 4.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 474 427 51 23.1 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 18 3 8.5 osh-native-souffle
1 no-host bin-true 685 503 214 3.0 bash
9 no-host bin-true 547 423 135 1.6 dash
17 no-host bin-true 2,332 1,434 1,166 18.9 osh-cpython
25 no-host bin-true 823 600 238 7.9 osh-native
33 no-host bin-true 810 534 287 7.7 osh-native-souffle
2 no-host configure.cpython 15,522 9,263 6,662 27.3 bash
10 no-host configure.cpython 15,590 9,419 6,595 27.4 dash
18 no-host configure.cpython 29,692 17,612 13,997 27.5 osh-cpython
26 no-host configure.cpython 15,745 9,317 6,702 27.3 osh-native
34 no-host configure.cpython 15,739 8,964 6,955 27.5 osh-native-souffle
4 no-host configure.ocaml 3,877 1,681 1,235 20.6 bash
12 no-host configure.ocaml 3,820 1,617 1,224 20.6 dash
20 no-host configure.ocaml 4,799 2,340 1,675 20.6 osh-cpython
28 no-host configure.ocaml 3,897 1,694 1,243 20.6 osh-native
36 no-host configure.ocaml 3,901 1,738 1,199 20.6 osh-native-souffle
5 no-host configure.tcc 48 39 10 19.4 bash
13 no-host configure.tcc 43 30 13 19.4 dash
21 no-host configure.tcc 209 157 56 19.3 osh-cpython
29 no-host configure.tcc 50 31 20 19.3 osh-native
37 no-host configure.tcc 49 20 29 19.3 osh-native-souffle
3 no-host configure.util-linux 14,375 9,058 5,797 30.1 bash
11 no-host configure.util-linux 15,484 9,362 6,623 30.1 dash
19 no-host configure.util-linux 32,283 21,264 12,124 30.1 osh-cpython
27 no-host configure.util-linux 14,834 9,029 6,001 30.1 osh-native
35 no-host configure.util-linux 14,722 8,759 6,163 30.1 osh-native-souffle
6 no-host configure.yash 1,875 1,055 830 24.5 bash
14 no-host configure.yash 1,817 1,009 811 24.4 dash
22 no-host configure.yash 2,528 1,556 1,014 24.5 osh-cpython
30 no-host configure.yash 1,890 1,086 808 24.4 osh-native
38 no-host configure.yash 1,875 1,050 829 24.5 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 59 42 16 18.9 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,525 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,887 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,143 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,071 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,378 0 0 0 8 0 1,994 62 bash
9 no-host bin-true 66,475 0 0 0 8 0 1,991 61 dash
17 no-host bin-true 788,121 0 0 0 8 0 1,995 91 osh-cpython
25 no-host bin-true 126,300 0 0 0 16 0 1,990 43 osh-native
33 no-host bin-true 124,170 0 0 0 16 0 1,991 81 osh-native-souffle
2 no-host configure.cpython 2,220,015 0 0 0 32,928 0 14,474 1,143 bash
10 no-host configure.cpython 2,240,494 0 0 0 32,992 0 14,603 1,127 dash
18 no-host configure.cpython 6,248,344 0 0 0 27,512 0 13,257 1,195 osh-cpython
26 no-host configure.cpython 2,226,473 2 0 0 27,520 0 13,277 1,053 osh-native
34 no-host configure.cpython 2,209,521 0 0 0 27,520 0 13,258 1,086 osh-native-souffle
4 no-host configure.ocaml 411,314 0 0 0 5,120 0 1,945 180 bash
12 no-host configure.ocaml 391,082 0 0 0 5,112 0 1,890 135 dash
20 no-host configure.ocaml 648,742 0 0 0 5,112 0 1,859 172 osh-cpython
28 no-host configure.ocaml 412,720 0 0 0 5,120 0 1,928 164 osh-native
36 no-host configure.ocaml 411,782 0 0 0 5,120 0 1,931 154 osh-native-souffle
5 no-host configure.tcc 6,549 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,511 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,955 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,909 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,108,472 1 0 0 42,400 0 18,561 1,002 bash
11 no-host configure.util-linux 2,259,501 0 0 0 42,592 0 17,453 1,183 dash
19 no-host configure.util-linux 5,406,221 18 0 0 39,112 0 16,973 1,325 osh-cpython
27 no-host configure.util-linux 2,004,677 0 0 0 39,128 0 16,963 1,015 osh-native
35 no-host configure.util-linux 1,993,651 1 0 0 39,136 0 16,925 1,015 osh-native-souffle
6 no-host configure.yash 256,503 0 0 0 4,120 0 864 88 bash
14 no-host configure.yash 244,060 0 0 0 3,720 0 871 75 dash
22 no-host configure.yash 390,246 0 0 0 3,728 0 854 93 osh-cpython
30 no-host configure.yash 258,394 0 0 0 3,736 0 848 98 osh-native
38 no-host configure.yash 255,977 0 0 0 3,736 0 849 79 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,007 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8689b7e3
dash dash-0ebcf347
osh-cpython osh-c39e60d6
osh-native osh-a2df6acc
osh-native-souffle osh-86c2e110
host label host id
no-host no-host-556df3ee