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 472 22 21 24.43 1.16
bin-true no-host 681 545 2,282 820 819 3.35 1.20
configure.cpython no-host 15,217 15,258 29,325 15,662 15,486 1.93 1.03
configure.ocaml no-host 3,865 3,768 4,699 3,884 3,868 1.22 1.01
configure.tcc no-host 49 42 198 49 48 4.08 1.01
configure.util-linux no-host 14,155 15,050 31,856 14,630 14,570 2.25 1.03
configure.yash no-host 1,854 1,797 2,484 1,868 1,840 1.34 1.01
hello-world no-host 2 1 51 3 3 32.09 1.87

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,534 1,093 23,349 3,195 3,080 9.21 1.26
bin-true no-host 107,411 66,472 771,624 125,859 124,728 7.18 1.17
configure.cpython no-host 2,223,606 2,238,781 6,256,243 2,224,567 2,215,062 2.81 1.00
configure.ocaml no-host 410,790 390,903 647,337 413,336 412,314 1.58 1.01
configure.tcc no-host 6,568 5,479 23,731 6,959 6,894 3.61 1.06
configure.util-linux no-host 2,097,461 2,267,119 5,377,789 1,996,968 1,998,593 2.56 0.95
configure.yash no-host 256,652 244,619 388,671 258,656 257,675 1.51 1.01
hello-world no-host 152 85 3,742 352 349 24.62 2.32

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.8 8.9 8.5 5.03 2.06
bin-true no-host 2.9 1.3 17.7 8.0 7.6 6.14 2.77
configure.cpython no-host 27.5 27.4 27.4 27.3 27.4 1.00 0.99
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.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.6 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 820 1 2 2.6 8.0 154,740 13,220 2,877 9,746 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,662 1 64 15.0 27.3 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,630 3 62 21.3 30.3 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,884 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,868 1 2 2.6 24.4 139,749 8,020 6,679 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 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 819 1 2 2.6 7.6 154,739 13,063 2,815 9,747 78,321 66,671 3,008 3 50,000 0
configure.cpython no-host 15,486 1 62 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,570 3 62 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,868 1 2 2.6 20.6 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.3 30,581 30,581 0 1,524 14,776 14,281 226 0 50,000 0
configure.yash no-host 1,840 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.5 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 16 4 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 472 411 64 21.8 osh-cpython
31 no-host abuild-print-help 22 14 9 8.9 osh-native
39 no-host abuild-print-help 21 14 7 8.5 osh-native-souffle
1 no-host bin-true 681 495 218 2.9 bash
9 no-host bin-true 545 423 130 1.3 dash
17 no-host bin-true 2,282 1,512 1,031 17.7 osh-cpython
25 no-host bin-true 820 555 281 8.0 osh-native
33 no-host bin-true 819 572 262 7.6 osh-native-souffle
2 no-host configure.cpython 15,217 9,093 6,521 27.5 bash
10 no-host configure.cpython 15,258 9,216 6,462 27.4 dash
18 no-host configure.cpython 29,325 17,719 13,518 27.4 osh-cpython
26 no-host configure.cpython 15,662 9,310 6,619 27.3 osh-native
34 no-host configure.cpython 15,486 8,992 6,673 27.4 osh-native-souffle
4 no-host configure.ocaml 3,865 1,683 1,218 20.6 bash
12 no-host configure.ocaml 3,768 1,579 1,207 20.6 dash
20 no-host configure.ocaml 4,699 2,209 1,701 20.6 osh-cpython
28 no-host configure.ocaml 3,884 1,617 1,306 20.6 osh-native
36 no-host configure.ocaml 3,868 1,726 1,179 20.6 osh-native-souffle
5 no-host configure.tcc 49 30 19 19.4 bash
13 no-host configure.tcc 42 29 14 19.3 dash
21 no-host configure.tcc 198 146 55 19.4 osh-cpython
29 no-host configure.tcc 49 34 15 19.3 osh-native
37 no-host configure.tcc 48 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,155 9,143 5,485 30.3 bash
11 no-host configure.util-linux 15,050 9,316 6,230 30.1 dash
19 no-host configure.util-linux 31,856 21,101 11,849 30.1 osh-cpython
27 no-host configure.util-linux 14,630 8,725 6,106 30.3 osh-native
35 no-host configure.util-linux 14,570 8,843 5,911 30.1 osh-native-souffle
6 no-host configure.yash 1,854 1,088 768 24.2 bash
14 no-host configure.yash 1,797 1,067 733 24.4 dash
22 no-host configure.yash 2,484 1,523 1,005 24.4 osh-cpython
30 no-host configure.yash 1,868 986 886 24.4 osh-native
38 no-host configure.yash 1,840 1,029 814 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.6 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,534 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,349 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,080 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,411 0 0 0 8 0 1,992 46 bash
9 no-host bin-true 66,472 0 0 0 8 0 1,994 48 dash
17 no-host bin-true 771,624 0 0 0 8 0 1,989 165 osh-cpython
25 no-host bin-true 125,859 0 0 0 16 0 1,993 80 osh-native
33 no-host bin-true 124,728 0 0 0 16 0 1,992 69 osh-native-souffle
2 no-host configure.cpython 2,223,606 0 0 0 32,928 0 14,529 1,342 bash
10 no-host configure.cpython 2,238,781 0 0 0 32,992 0 14,685 1,124 dash
18 no-host configure.cpython 6,256,243 1 0 0 27,512 0 13,296 1,296 osh-cpython
26 no-host configure.cpython 2,224,567 0 0 0 27,520 0 13,198 1,272 osh-native
34 no-host configure.cpython 2,215,062 0 0 0 27,520 0 13,243 1,050 osh-native-souffle
4 no-host configure.ocaml 410,790 0 0 0 5,120 0 1,949 181 bash
12 no-host configure.ocaml 390,903 0 0 0 5,112 0 1,932 193 dash
20 no-host configure.ocaml 647,337 0 0 0 5,112 0 1,865 171 osh-cpython
28 no-host configure.ocaml 413,336 0 0 0 5,120 0 1,933 154 osh-native
36 no-host configure.ocaml 412,314 0 0 0 5,120 0 1,931 148 osh-native-souffle
5 no-host configure.tcc 6,568 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,731 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,894 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,097,461 1 0 0 42,400 0 18,574 970 bash
11 no-host configure.util-linux 2,267,119 1 0 0 42,584 0 17,499 1,124 dash
19 no-host configure.util-linux 5,377,789 13 0 0 39,136 0 16,969 1,207 osh-cpython
27 no-host configure.util-linux 1,996,968 0 0 0 39,120 0 17,110 1,070 osh-native
35 no-host configure.util-linux 1,998,593 2 0 0 39,136 0 16,990 960 osh-native-souffle
6 no-host configure.yash 256,652 0 0 0 4,120 0 871 173 bash
14 no-host configure.yash 244,619 0 0 0 3,720 0 871 94 dash
22 no-host configure.yash 388,671 0 0 0 3,728 0 853 81 osh-cpython
30 no-host configure.yash 258,656 0 0 0 3,736 0 851 80 osh-native
38 no-host configure.yash 257,675 0 0 0 3,736 0 843 79 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,742 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 349 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b94e56a8
dash dash-0ebcf347
osh-cpython osh-f2f8375c
osh-native osh-e7dedb63
osh-native-souffle osh-0ce70fb0
host label host id
no-host no-host-556df3ee