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 465 23 21 24.52 1.19
bin-true no-host 670 541 2,338 807 811 3.49 1.21
configure.cpython no-host 14,973 15,038 28,791 15,538 15,453 1.92 1.04
configure.ocaml no-host 3,761 3,728 4,725 3,881 3,882 1.26 1.03
configure.tcc no-host 48 43 206 49 49 4.30 1.03
configure.util-linux no-host 13,851 14,816 31,752 14,707 14,609 2.29 1.06
configure.yash no-host 1,796 1,763 2,504 1,843 1,868 1.39 1.03
hello-world no-host 2 1 58 3 3 35.12 1.81

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,538 1,119 23,942 3,177 3,096 9.43 1.25
bin-true no-host 104,349 66,507 790,124 125,238 125,326 7.57 1.20
configure.cpython no-host 2,219,696 2,241,242 6,254,903 2,225,734 2,206,280 2.82 1.00
configure.ocaml no-host 410,720 391,088 649,515 412,623 412,158 1.58 1.00
configure.tcc no-host 6,552 5,479 24,495 6,970 6,922 3.74 1.06
configure.util-linux no-host 2,106,821 2,260,562 5,398,975 2,001,250 2,001,893 2.56 0.95
configure.yash no-host 256,105 243,584 389,971 257,373 258,054 1.52 1.00
hello-world no-host 150 81 3,996 354 343 26.64 2.36

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.4 23.3 9.0 8.3 5.22 2.03
bin-true no-host 3.0 1.4 18.9 8.1 7.6 6.28 2.70
configure.cpython no-host 27.3 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.1 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.3 30.0 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.5 24.2 0.99 1.01
hello-world no-host 2.9 1.4 18.8 6.3 5.8 6.53 2.18

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 807 1 2 2.6 8.1 153,746 12,266 2,886 8,744 78,326 66,676 3,008 3 50,000 0
configure.cpython no-host 15,538 2 64 14.9 27.4 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,707 3 63 21.2 30.3 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,881 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 49 0 0 1.3 19.4 30,586 30,586 0 1,519 14,781 14,286 271 0 50,000 0
configure.yash no-host 1,843 1 2 2.5 24.5 139,406 8,026 6,688 5,987 70,286 63,133 2,095 3 50,000 0
abuild-print-help no-host 23 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 811 1 2 2.6 7.6 153,745 12,110 2,824 8,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,453 1 61 14.9 27.4 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,609 2 60 21.2 30.3 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,882 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,868 1 2 2.5 24.2 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.3 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 13 7 4.5 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 465 415 53 23.3 osh-cpython
31 no-host abuild-print-help 23 13 10 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.3 osh-native-souffle
1 no-host bin-true 670 494 208 3.0 bash
9 no-host bin-true 541 411 139 1.4 dash
17 no-host bin-true 2,338 1,479 1,119 18.9 osh-cpython
25 no-host bin-true 807 586 235 8.1 osh-native
33 no-host bin-true 811 556 267 7.6 osh-native-souffle
2 no-host configure.cpython 14,973 8,994 6,316 27.3 bash
10 no-host configure.cpython 15,038 9,041 6,410 27.4 dash
18 no-host configure.cpython 28,791 17,744 12,870 27.4 osh-cpython
26 no-host configure.cpython 15,538 9,262 6,500 27.4 osh-native
34 no-host configure.cpython 15,453 8,984 6,566 27.4 osh-native-souffle
4 no-host configure.ocaml 3,761 1,602 1,194 20.6 bash
12 no-host configure.ocaml 3,728 1,582 1,166 20.4 dash
20 no-host configure.ocaml 4,725 2,247 1,687 20.6 osh-cpython
28 no-host configure.ocaml 3,881 1,586 1,333 20.6 osh-native
36 no-host configure.ocaml 3,882 1,675 1,243 20.6 osh-native-souffle
5 no-host configure.tcc 48 34 15 19.3 bash
13 no-host configure.tcc 43 30 13 19.1 dash
21 no-host configure.tcc 206 141 68 19.3 osh-cpython
29 no-host configure.tcc 49 36 14 19.4 osh-native
37 no-host configure.tcc 49 24 25 19.3 osh-native-souffle
3 no-host configure.util-linux 13,851 8,779 5,540 30.3 bash
11 no-host configure.util-linux 14,816 9,145 6,155 30.0 dash
19 no-host configure.util-linux 31,752 21,003 11,824 30.3 osh-cpython
27 no-host configure.util-linux 14,707 8,862 6,029 30.3 osh-native
35 no-host configure.util-linux 14,609 8,791 5,998 30.3 osh-native-souffle
6 no-host configure.yash 1,796 1,073 729 24.4 bash
14 no-host configure.yash 1,763 1,041 726 24.2 dash
22 no-host configure.yash 2,504 1,584 962 24.2 osh-cpython
30 no-host configure.yash 1,843 1,091 757 24.5 osh-native
38 no-host configure.yash 1,868 1,110 762 24.2 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 58 33 24 18.8 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,538 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,119 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,942 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,177 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,349 0 0 0 8 0 1,995 159 bash
9 no-host bin-true 66,507 0 0 0 8 0 1,987 50 dash
17 no-host bin-true 790,124 0 0 0 8 0 1,995 290 osh-cpython
25 no-host bin-true 125,238 0 0 0 16 0 1,989 70 osh-native
33 no-host bin-true 125,326 0 0 0 16 0 1,989 126 osh-native-souffle
2 no-host configure.cpython 2,219,696 0 0 0 32,928 0 14,471 1,319 bash
10 no-host configure.cpython 2,241,242 2 0 0 32,992 0 14,648 1,104 dash
18 no-host configure.cpython 6,254,903 0 0 0 27,512 0 13,213 1,181 osh-cpython
26 no-host configure.cpython 2,225,734 0 0 0 27,520 0 13,330 1,068 osh-native
34 no-host configure.cpython 2,206,280 0 0 0 27,520 0 13,289 1,143 osh-native-souffle
4 no-host configure.ocaml 410,720 0 0 0 5,120 0 1,954 175 bash
12 no-host configure.ocaml 391,088 0 0 0 5,112 0 1,934 164 dash
20 no-host configure.ocaml 649,515 0 0 0 5,112 0 1,862 176 osh-cpython
28 no-host configure.ocaml 412,623 0 0 0 5,120 0 1,934 182 osh-native
36 no-host configure.ocaml 412,158 0 0 0 5,120 0 1,934 141 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,479 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,495 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,922 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,106,821 1 0 0 42,400 0 18,625 949 bash
11 no-host configure.util-linux 2,260,562 1 0 0 42,584 0 17,483 1,162 dash
19 no-host configure.util-linux 5,398,975 10 0 0 39,120 0 16,969 1,255 osh-cpython
27 no-host configure.util-linux 2,001,250 1 0 0 39,120 0 16,959 1,024 osh-native
35 no-host configure.util-linux 2,001,893 0 0 0 39,128 0 16,881 996 osh-native-souffle
6 no-host configure.yash 256,105 0 0 0 4,120 0 869 80 bash
14 no-host configure.yash 243,584 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 389,971 0 0 0 3,728 0 855 101 osh-cpython
30 no-host configure.yash 257,373 0 0 0 3,736 0 849 61 osh-native
38 no-host configure.yash 258,054 0 0 0 3,736 0 847 86 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 1 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,996 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 354 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-04844ac9
dash dash-0ebcf347
osh-cpython osh-0f9c99ba
osh-native osh-8e8b8406
osh-native-souffle osh-eaa8ce16
host label host id
no-host no-host-556df3ee