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 460 23 21 24.08 1.20
bin-true no-host 672 556 2,333 809 823 3.47 1.20
configure.cpython no-host 15,232 15,846 29,962 15,406 15,341 1.97 1.01
configure.ocaml no-host 3,845 3,856 4,794 3,889 3,793 1.25 1.01
configure.tcc no-host 48 42 196 49 48 4.07 1.02
configure.util-linux no-host 14,385 15,645 32,441 14,570 14,319 2.26 1.01
configure.yash no-host 1,858 1,823 2,483 1,835 1,807 1.34 0.99
hello-world no-host 2 1 51 3 3 33.49 1.86

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,517 1,124 23,241 3,178 3,085 9.23 1.26
bin-true no-host 105,301 66,356 772,500 124,870 126,820 7.34 1.19
configure.cpython no-host 2,215,853 2,245,595 6,222,770 2,231,777 2,219,078 2.81 1.01
configure.ocaml no-host 410,684 391,259 646,535 413,773 413,246 1.57 1.01
configure.tcc no-host 6,566 5,479 23,633 6,957 6,945 3.60 1.06
configure.util-linux no-host 2,105,475 2,266,133 5,353,694 2,005,911 2,001,831 2.54 0.95
configure.yash no-host 256,258 244,707 388,464 258,106 258,464 1.52 1.01
hello-world no-host 154 83 3,734 351 348 24.25 2.28

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.4 21.9 9.2 8.7 5.06 2.12
bin-true no-host 3.0 1.6 17.6 8.1 7.7 5.83 2.70
configure.cpython no-host 27.4 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.1 19.4 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.5 24.2 24.2 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.7 6.2 5.9 6.14 2.14

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 696 1,852 1,227 2 0 50,000 0
bin-true no-host 809 1 2 2.6 8.1 154,740 13,220 2,877 9,746 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,406 1 64 15.0 27.4 1,772,722 49,854 28,587 86,399 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,570 3 64 21.3 30.1 2,703,490 29,745 65,870 109,677 1,320,579 1,273,234 27,391 41 131,740 1
configure.ocaml no-host 3,889 1 2 2.6 20.6 150,096 11,051 5,221 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,835 1 2 2.6 24.2 139,749 8,020 6,679 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 116,324 64,530 42,740 4,573 54,521 57,230 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,774 3,774 0 697 1,852 1,225 2 0 50,000 0
bin-true no-host 823 1 2 2.6 7.7 154,739 13,063 2,815 9,747 78,321 66,671 3,008 3 50,000 0
configure.cpython no-host 15,341 1 64 14.9 27.4 1,772,721 49,105 28,525 86,400 908,073 778,248 22,694 60 50,000 0
configure.util-linux no-host 14,319 3 61 21.3 30.1 2,703,490 42,741 65,828 109,679 1,320,579 1,273,232 27,391 41 131,656 1
configure.ocaml no-host 3,793 1 2 2.6 20.4 150,096 10,989 5,159 7,535 71,606 70,955 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,581 30,581 0 1,524 14,776 14,281 226 0 50,000 0
configure.yash no-host 1,807 1 2 2.6 24.4 139,749 7,958 6,617 6,340 70,281 63,128 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,323 64,468 42,678 4,574 54,521 57,228 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 19 12 8 4.3 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 460 404 60 21.9 osh-cpython
31 no-host abuild-print-help 23 16 7 9.2 osh-native
39 no-host abuild-print-help 21 21 0 8.7 osh-native-souffle
1 no-host bin-true 672 513 191 3.0 bash
9 no-host bin-true 556 418 148 1.6 dash
17 no-host bin-true 2,333 1,545 1,064 17.6 osh-cpython
25 no-host bin-true 809 559 263 8.1 osh-native
33 no-host bin-true 823 582 253 7.7 osh-native-souffle
2 no-host configure.cpython 15,232 8,960 6,672 27.4 bash
10 no-host configure.cpython 15,846 9,481 6,809 27.4 dash
18 no-host configure.cpython 29,962 17,782 14,168 27.3 osh-cpython
26 no-host configure.cpython 15,406 9,179 6,500 27.4 osh-native
34 no-host configure.cpython 15,341 9,118 6,399 27.4 osh-native-souffle
4 no-host configure.ocaml 3,845 1,692 1,179 20.6 bash
12 no-host configure.ocaml 3,856 1,640 1,238 20.6 dash
20 no-host configure.ocaml 4,794 2,269 1,739 20.6 osh-cpython
28 no-host configure.ocaml 3,889 1,712 1,214 20.6 osh-native
36 no-host configure.ocaml 3,793 1,632 1,199 20.4 osh-native-souffle
5 no-host configure.tcc 48 26 22 19.1 bash
13 no-host configure.tcc 42 24 19 19.4 dash
21 no-host configure.tcc 196 151 48 19.3 osh-cpython
29 no-host configure.tcc 49 35 15 19.3 osh-native
37 no-host configure.tcc 48 31 18 19.4 osh-native-souffle
3 no-host configure.util-linux 14,385 9,026 5,847 30.1 bash
11 no-host configure.util-linux 15,645 9,541 6,612 30.1 dash
19 no-host configure.util-linux 32,441 21,456 12,156 30.3 osh-cpython
27 no-host configure.util-linux 14,570 8,818 5,957 30.1 osh-native
35 no-host configure.util-linux 14,319 8,520 5,986 30.1 osh-native-souffle
6 no-host configure.yash 1,858 1,099 768 24.2 bash
14 no-host configure.yash 1,823 1,085 741 24.5 dash
22 no-host configure.yash 2,483 1,612 915 24.2 osh-cpython
30 no-host configure.yash 1,835 1,059 781 24.2 osh-native
38 no-host configure.yash 1,807 1,049 762 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 51 28 23 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,517 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,124 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,241 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,085 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,301 0 0 0 8 0 1,993 85 bash
9 no-host bin-true 66,356 0 0 0 8 0 1,989 144 dash
17 no-host bin-true 772,500 0 0 0 8 0 1,997 358 osh-cpython
25 no-host bin-true 124,870 0 0 0 16 0 1,987 62 osh-native
33 no-host bin-true 126,820 0 0 0 16 0 1,987 61 osh-native-souffle
2 no-host configure.cpython 2,215,853 0 0 0 32,928 0 14,814 1,072 bash
10 no-host configure.cpython 2,245,595 0 0 0 32,992 0 14,629 1,138 dash
18 no-host configure.cpython 6,222,770 0 0 0 27,512 0 13,247 1,225 osh-cpython
26 no-host configure.cpython 2,231,777 0 0 0 27,520 0 13,227 1,173 osh-native
34 no-host configure.cpython 2,219,078 1 0 0 27,520 0 13,266 1,046 osh-native-souffle
4 no-host configure.ocaml 410,684 0 0 0 5,120 0 1,954 155 bash
12 no-host configure.ocaml 391,259 0 0 0 5,112 0 1,931 138 dash
20 no-host configure.ocaml 646,535 0 0 0 5,112 0 1,849 170 osh-cpython
28 no-host configure.ocaml 413,773 0 0 0 5,120 0 1,924 177 osh-native
36 no-host configure.ocaml 413,246 0 0 0 5,120 0 1,938 162 osh-native-souffle
5 no-host configure.tcc 6,566 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 46 1 dash
21 no-host configure.tcc 23,633 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,957 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,945 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,105,475 1 0 0 42,400 0 18,614 1,116 bash
11 no-host configure.util-linux 2,266,133 3 0 0 42,584 0 17,515 1,155 dash
19 no-host configure.util-linux 5,353,694 11 0 0 39,144 0 17,042 1,347 osh-cpython
27 no-host configure.util-linux 2,005,911 0 0 0 39,128 0 16,950 1,070 osh-native
35 no-host configure.util-linux 2,001,831 0 0 0 39,136 0 16,968 1,141 osh-native-souffle
6 no-host configure.yash 256,258 0 0 0 4,120 0 868 76 bash
14 no-host configure.yash 244,707 0 0 0 3,720 0 864 93 dash
22 no-host configure.yash 388,464 0 0 0 3,728 0 854 133 osh-cpython
30 no-host configure.yash 258,106 0 0 0 3,736 0 850 82 osh-native
38 no-host configure.yash 258,464 0 0 0 3,736 0 851 71 osh-native-souffle
0 no-host hello-world 154 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,734 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 348 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-adb97be9
dash dash-0ebcf347
osh-cpython osh-d3149d37
osh-native osh-2d273c98
osh-native-souffle osh-edca7525
host label host id
no-host no-host-556df3ee