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 20 10 456 22 21 23.10 1.12
bin-true no-host 669 545 2,266 808 809 3.39 1.21
configure.cpython no-host 15,057 14,996 28,672 15,137 15,419 1.90 1.01
configure.ocaml no-host 3,826 3,719 4,629 3,811 3,795 1.21 1.00
configure.tcc no-host 48 41 195 49 48 4.08 1.02
configure.util-linux no-host 13,884 14,867 31,233 14,295 14,183 2.25 1.03
configure.yash no-host 1,825 1,755 2,442 1,820 1,812 1.34 1.00
hello-world no-host 1 1 50 3 3 33.25 1.94

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,511 1,124 23,222 3,182 3,094 9.25 1.27
bin-true no-host 106,317 66,454 768,973 125,835 124,720 7.23 1.18
configure.cpython no-host 2,219,752 2,239,834 6,251,964 2,235,005 2,223,882 2.82 1.01
configure.ocaml no-host 410,402 390,903 647,955 412,805 412,742 1.58 1.01
configure.tcc no-host 6,533 5,485 23,670 6,970 6,904 3.62 1.07
configure.util-linux no-host 2,102,048 2,259,245 5,350,640 2,000,460 1,994,466 2.55 0.95
configure.yash no-host 256,357 243,522 387,991 257,612 257,995 1.51 1.00
hello-world no-host 150 84 3,737 351 342 24.91 2.34

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.0 8.7 5.06 2.09
bin-true no-host 2.9 1.6 17.7 8.1 7.6 6.14 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 27.5 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.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.1 30.0 30.0 30.0 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.6 1.6 17.6 6.3 5.8 6.70 2.40

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,775 3,775 0 696 1,852 1,227 2 0 50,000 0
bin-true no-host 808 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,137 1 60 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,295 3 60 21.3 30.0 2,703,490 29,146 65,890 109,677 1,320,579 1,273,234 27,391 41 131,780 1
configure.ocaml no-host 3,811 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.4 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,820 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 22 1 2 2.8 9.0 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.8 3,774 3,774 0 697 1,852 1,225 2 0 50,000 0
bin-true no-host 809 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,419 1 64 14.9 27.5 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,183 3 60 21.3 30.3 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,795 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,812 1 2 2.6 24.2 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 20 17 3 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 456 420 39 21.9 osh-cpython
31 no-host abuild-print-help 22 14 9 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 669 487 216 2.9 bash
9 no-host bin-true 545 417 138 1.6 dash
17 no-host bin-true 2,266 1,536 991 17.7 osh-cpython
25 no-host bin-true 808 569 256 8.1 osh-native
33 no-host bin-true 809 584 240 7.6 osh-native-souffle
2 no-host configure.cpython 15,057 9,128 6,328 27.4 bash
10 no-host configure.cpython 14,996 9,101 6,314 27.4 dash
18 no-host configure.cpython 28,672 17,341 13,202 27.4 osh-cpython
26 no-host configure.cpython 15,137 9,142 6,252 27.4 osh-native
34 no-host configure.cpython 15,419 8,992 6,472 27.5 osh-native-souffle
4 no-host configure.ocaml 3,826 1,692 1,156 20.6 bash
12 no-host configure.ocaml 3,719 1,559 1,179 20.6 dash
20 no-host configure.ocaml 4,629 2,204 1,638 20.6 osh-cpython
28 no-host configure.ocaml 3,811 1,690 1,161 20.6 osh-native
36 no-host configure.ocaml 3,795 1,643 1,189 20.6 osh-native-souffle
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 41 21 20 19.3 dash
21 no-host configure.tcc 195 142 56 19.3 osh-cpython
29 no-host configure.tcc 49 35 14 19.4 osh-native
37 no-host configure.tcc 48 27 22 19.3 osh-native-souffle
3 no-host configure.util-linux 13,884 8,784 5,567 30.1 bash
11 no-host configure.util-linux 14,867 9,126 6,242 30.0 dash
19 no-host configure.util-linux 31,233 20,725 11,594 30.0 osh-cpython
27 no-host configure.util-linux 14,295 8,485 6,007 30.0 osh-native
35 no-host configure.util-linux 14,183 8,552 5,819 30.3 osh-native-souffle
6 no-host configure.yash 1,825 1,070 763 24.5 bash
14 no-host configure.yash 1,755 982 776 24.4 dash
22 no-host configure.yash 2,442 1,565 916 24.2 osh-cpython
30 no-host configure.yash 1,820 1,041 783 24.2 osh-native
38 no-host configure.yash 1,812 1,018 798 24.2 osh-native-souffle
0 no-host hello-world 1 0 2 2.6 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 50 37 12 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 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,511 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,124 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,222 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,182 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,094 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,317 0 0 0 8 0 1,992 92 bash
9 no-host bin-true 66,454 0 0 0 8 0 1,988 52 dash
17 no-host bin-true 768,973 0 0 0 8 0 1,998 206 osh-cpython
25 no-host bin-true 125,835 0 0 0 16 0 1,987 49 osh-native
33 no-host bin-true 124,720 0 0 0 16 0 1,995 135 osh-native-souffle
2 no-host configure.cpython 2,219,752 1 0 0 32,928 0 14,535 1,071 bash
10 no-host configure.cpython 2,239,834 0 0 0 32,992 0 14,579 1,043 dash
18 no-host configure.cpython 6,251,964 0 0 0 27,512 0 13,208 1,219 osh-cpython
26 no-host configure.cpython 2,235,005 0 0 0 27,520 0 13,318 1,011 osh-native
34 no-host configure.cpython 2,223,882 0 0 0 27,520 0 13,247 990 osh-native-souffle
4 no-host configure.ocaml 410,402 0 0 0 5,120 0 1,944 171 bash
12 no-host configure.ocaml 390,903 0 0 0 5,112 0 1,887 161 dash
20 no-host configure.ocaml 647,955 0 0 0 5,112 0 1,860 167 osh-cpython
28 no-host configure.ocaml 412,805 0 0 0 5,120 0 1,923 177 osh-native
36 no-host configure.ocaml 412,742 0 0 0 5,120 0 1,935 156 osh-native-souffle
5 no-host configure.tcc 6,533 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,670 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,102,048 1 0 0 42,408 0 18,546 1,059 bash
11 no-host configure.util-linux 2,259,245 0 0 0 42,592 0 17,380 1,100 dash
19 no-host configure.util-linux 5,350,640 16 0 0 39,120 0 16,959 1,471 osh-cpython
27 no-host configure.util-linux 2,000,460 0 0 0 39,128 0 16,946 1,261 osh-native
35 no-host configure.util-linux 1,994,466 0 0 0 39,136 0 16,963 1,003 osh-native-souffle
6 no-host configure.yash 256,357 0 0 0 4,120 0 872 84 bash
14 no-host configure.yash 243,522 0 0 0 3,720 0 868 96 dash
22 no-host configure.yash 387,991 0 0 0 3,728 0 855 97 osh-cpython
30 no-host configure.yash 257,612 0 0 0 3,736 0 848 73 osh-native
38 no-host configure.yash 257,995 0 0 0 3,736 0 849 81 osh-native-souffle
0 no-host hello-world 150 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,737 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-1a135b77
dash dash-0ebcf347
osh-cpython osh-1388ac69
osh-native osh-80ca35e2
osh-native-souffle osh-815b3d82
host label host id
no-host no-host-556df3ee