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 467 22 21 24.87 1.19
bin-true no-host 678 547 2,286 814 808 3.37 1.20
configure.cpython no-host 15,087 15,127 28,798 15,242 15,414 1.91 1.01
configure.ocaml no-host 3,813 3,737 4,673 3,813 3,813 1.23 1.00
configure.tcc no-host 48 44 203 49 48 4.23 1.02
configure.util-linux no-host 14,131 14,895 31,464 14,391 14,310 2.23 1.02
configure.yash no-host 1,821 1,779 2,470 1,828 1,828 1.36 1.00
hello-world no-host 2 1 56 3 3 37.41 1.91

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,507 1,094 23,702 3,220 3,118 9.45 1.28
bin-true no-host 108,344 65,467 770,231 127,267 126,262 7.11 1.17
configure.cpython no-host 2,221,198 2,253,377 6,226,608 2,223,570 2,209,412 2.80 1.00
configure.ocaml no-host 410,725 390,756 645,882 412,819 412,702 1.57 1.01
configure.tcc no-host 6,555 5,465 24,085 6,954 6,923 3.67 1.06
configure.util-linux no-host 2,092,004 2,260,634 5,398,664 1,996,257 1,989,145 2.58 0.95
configure.yash no-host 256,358 245,196 389,322 257,669 256,352 1.52 1.01
hello-world no-host 152 83 3,936 343 345 25.89 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.3 3.5 22.6 9.2 8.7 5.21 2.12
bin-true no-host 3.0 1.4 18.4 7.9 7.7 6.09 2.61
configure.cpython no-host 27.5 27.4 27.4 27.5 27.4 1.00 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.3 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.0 30.3 30.3 0.99 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 18.2 6.3 5.9 6.62 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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.9 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,242 1 60 14.9 27.5 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,391 3 59 21.2 30.3 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 3,813 1 2 2.6 20.6 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,828 1 2 2.5 24.4 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.9 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.7 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,414 1 61 14.9 27.4 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,310 2 58 21.2 30.3 2,702,514 53,694 65,650 108,693 1,290,641 1,303,180 32,239 41 131,300 1
configure.ocaml no-host 3,813 1 2 2.6 20.6 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,828 1 2 2.5 24.4 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 4 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 467 409 60 22.6 osh-cpython
31 no-host abuild-print-help 22 17 6 9.2 osh-native
39 no-host abuild-print-help 21 12 10 8.7 osh-native-souffle
1 no-host bin-true 678 507 201 3.0 bash
9 no-host bin-true 547 432 125 1.4 dash
17 no-host bin-true 2,286 1,511 1,030 18.4 osh-cpython
25 no-host bin-true 814 589 241 7.9 osh-native
33 no-host bin-true 808 601 221 7.7 osh-native-souffle
2 no-host configure.cpython 15,087 9,156 6,330 27.5 bash
10 no-host configure.cpython 15,127 9,014 6,517 27.4 dash
18 no-host configure.cpython 28,798 17,945 12,731 27.4 osh-cpython
26 no-host configure.cpython 15,242 8,887 6,606 27.5 osh-native
34 no-host configure.cpython 15,414 9,066 6,469 27.4 osh-native-souffle
4 no-host configure.ocaml 3,813 1,567 1,283 20.6 bash
12 no-host configure.ocaml 3,737 1,602 1,153 20.6 dash
20 no-host configure.ocaml 4,673 2,228 1,652 20.6 osh-cpython
28 no-host configure.ocaml 3,813 1,632 1,220 20.6 osh-native
36 no-host configure.ocaml 3,813 1,685 1,164 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 25 19.4 bash
13 no-host configure.tcc 44 36 9 19.3 dash
21 no-host configure.tcc 203 152 53 19.3 osh-cpython
29 no-host configure.tcc 49 25 24 19.3 osh-native
37 no-host configure.tcc 48 37 12 19.3 osh-native-souffle
3 no-host configure.util-linux 14,131 8,976 5,625 30.3 bash
11 no-host configure.util-linux 14,895 9,415 5,963 30.3 dash
19 no-host configure.util-linux 31,464 20,957 11,589 30.0 osh-cpython
27 no-host configure.util-linux 14,391 8,600 5,967 30.3 osh-native
35 no-host configure.util-linux 14,310 8,668 5,833 30.3 osh-native-souffle
6 no-host configure.yash 1,821 1,043 780 24.4 bash
14 no-host configure.yash 1,779 1,060 722 24.4 dash
22 no-host configure.yash 2,470 1,521 991 24.4 osh-cpython
30 no-host configure.yash 1,828 1,091 741 24.4 osh-native
38 no-host configure.yash 1,828 1,001 831 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 56 33 24 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,507 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,702 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,220 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,118 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 108,344 0 0 0 8 0 1,994 58 bash
9 no-host bin-true 65,467 0 0 0 8 0 1,985 126 dash
17 no-host bin-true 770,231 0 0 0 8 0 1,995 235 osh-cpython
25 no-host bin-true 127,267 0 0 0 16 0 1,983 53 osh-native
33 no-host bin-true 126,262 0 0 0 16 0 1,991 47 osh-native-souffle
2 no-host configure.cpython 2,221,198 0 0 0 32,928 0 14,561 1,086 bash
10 no-host configure.cpython 2,253,377 0 0 0 32,992 0 14,639 1,085 dash
18 no-host configure.cpython 6,226,608 0 0 0 27,512 0 13,226 1,121 osh-cpython
26 no-host configure.cpython 2,223,570 0 0 0 27,520 0 13,240 844 osh-native
34 no-host configure.cpython 2,209,412 2 0 0 27,520 0 13,294 990 osh-native-souffle
4 no-host configure.ocaml 410,725 0 0 0 5,120 0 1,944 155 bash
12 no-host configure.ocaml 390,756 0 0 0 5,112 0 1,889 162 dash
20 no-host configure.ocaml 645,882 0 0 0 5,112 0 1,851 158 osh-cpython
28 no-host configure.ocaml 412,819 0 0 0 5,120 0 1,926 175 osh-native
36 no-host configure.ocaml 412,702 0 0 0 5,120 0 1,933 165 osh-native-souffle
5 no-host configure.tcc 6,555 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,465 0 0 0 96 0 47 6 dash
21 no-host configure.tcc 24,085 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,954 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,923 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,092,004 0 0 0 42,400 0 18,454 1,125 bash
11 no-host configure.util-linux 2,260,634 0 0 0 42,592 0 17,475 1,180 dash
19 no-host configure.util-linux 5,398,664 9 0 0 39,112 0 17,026 1,230 osh-cpython
27 no-host configure.util-linux 1,996,257 0 0 0 39,120 0 16,976 947 osh-native
35 no-host configure.util-linux 1,989,145 0 0 0 39,128 0 17,086 914 osh-native-souffle
6 no-host configure.yash 256,358 0 0 0 4,120 0 874 66 bash
14 no-host configure.yash 245,196 0 0 0 3,720 0 868 65 dash
22 no-host configure.yash 389,322 0 0 0 3,728 0 854 95 osh-cpython
30 no-host configure.yash 257,669 0 0 0 3,736 0 848 90 osh-native
38 no-host configure.yash 256,352 0 0 0 3,736 0 851 70 osh-native-souffle
0 no-host hello-world 152 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 3,936 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 0 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-480ba298
dash dash-0ebcf347
osh-cpython osh-9f8ae67d
osh-native osh-6e73e079
osh-native-souffle osh-4ae5d137
host label host id
no-host no-host-556df3ee