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 470 23 22 23.59 1.14
bin-true no-host 683 550 2,357 825 813 3.45 1.21
configure.cpython no-host 15,255 15,449 29,241 15,631 15,453 1.92 1.02
configure.ocaml no-host 3,824 3,767 4,704 3,904 3,833 1.23 1.02
configure.tcc no-host 48 42 208 49 48 4.34 1.03
configure.util-linux no-host 14,151 14,860 31,778 14,785 14,373 2.25 1.04
configure.yash no-host 1,849 1,783 2,510 1,893 1,852 1.36 1.02
hello-world no-host 2 1 57 3 3 33.61 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,566 1,090 23,926 3,198 3,103 9.32 1.25
bin-true no-host 106,361 65,407 794,430 124,240 124,258 7.47 1.17
configure.cpython no-host 2,217,890 2,245,609 6,278,076 2,217,292 2,208,075 2.83 1.00
configure.ocaml no-host 410,879 391,235 649,756 413,314 412,458 1.58 1.01
configure.tcc no-host 6,551 5,474 24,478 6,945 6,912 3.74 1.06
configure.util-linux no-host 2,103,481 2,260,015 5,413,926 1,995,224 1,985,846 2.57 0.95
configure.yash no-host 256,116 245,208 391,224 257,639 257,566 1.53 1.01
hello-world no-host 153 84 3,992 348 341 26.09 2.27

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.5 23.3 9.0 8.7 5.22 2.03
bin-true no-host 3.0 1.4 18.9 8.3 7.7 6.28 2.74
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.6 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.4 19.3 19.3 19.4 19.4 0.99 1.00
configure.util-linux no-host 30.1 29.9 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.9 6.0 5.8 6.88 2.19

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.0 3,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.3 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,631 2 66 14.9 27.4 1,771,745 49,904 28,593 85,416 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 14,785 3 64 21.2 30.3 2,702,511 29,749 65,877 108,692 1,320,583 1,273,236 32,239 41 131,754 1
configure.ocaml no-host 3,904 1 2 2.6 20.6 150,078 11,128 5,223 7,509 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,893 1 2 2.5 24.4 139,404 8,024 6,686 5,987 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,290 64,537 42,747 4,533 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.8 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.7 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,453 1 64 14.8 27.4 1,771,744 49,106 28,531 85,417 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 14,373 3 62 21.2 30.1 2,702,511 29,763 65,835 108,694 1,320,583 1,273,234 32,239 41 131,670 1
configure.ocaml no-host 3,833 1 2 2.6 20.4 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,852 1 2 2.5 24.4 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,289 64,475 42,685 4,534 54,525 57,230 277 3 85,370 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 10 10 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 470 430 44 23.3 osh-cpython
31 no-host abuild-print-help 23 16 7 9.0 osh-native
39 no-host abuild-print-help 22 20 2 8.7 osh-native-souffle
1 no-host bin-true 683 526 188 3.0 bash
9 no-host bin-true 550 424 134 1.4 dash
17 no-host bin-true 2,357 1,546 1,075 18.9 osh-cpython
25 no-host bin-true 825 578 262 8.3 osh-native
33 no-host bin-true 813 567 261 7.7 osh-native-souffle
2 no-host configure.cpython 15,255 9,117 6,543 27.3 bash
10 no-host configure.cpython 15,449 9,189 6,670 27.4 dash
18 no-host configure.cpython 29,241 17,585 13,577 27.4 osh-cpython
26 no-host configure.cpython 15,631 9,157 6,739 27.4 osh-native
34 no-host configure.cpython 15,453 9,110 6,527 27.4 osh-native-souffle
4 no-host configure.ocaml 3,824 1,637 1,228 20.6 bash
12 no-host configure.ocaml 3,767 1,626 1,161 20.6 dash
20 no-host configure.ocaml 4,704 2,339 1,578 20.4 osh-cpython
28 no-host configure.ocaml 3,904 1,646 1,299 20.6 osh-native
36 no-host configure.ocaml 3,833 1,648 1,223 20.4 osh-native-souffle
5 no-host configure.tcc 48 25 23 19.4 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 208 169 42 19.3 osh-cpython
29 no-host configure.tcc 49 33 17 19.4 osh-native
37 no-host configure.tcc 48 33 16 19.4 osh-native-souffle
3 no-host configure.util-linux 14,151 8,992 5,637 30.1 bash
11 no-host configure.util-linux 14,860 8,999 6,358 29.9 dash
19 no-host configure.util-linux 31,778 20,893 11,989 30.1 osh-cpython
27 no-host configure.util-linux 14,785 8,786 6,198 30.3 osh-native
35 no-host configure.util-linux 14,373 8,500 6,070 30.1 osh-native-souffle
6 no-host configure.yash 1,849 1,027 830 24.4 bash
14 no-host configure.yash 1,783 980 806 24.2 dash
22 no-host configure.yash 2,510 1,554 1,000 24.2 osh-cpython
30 no-host configure.yash 1,893 1,075 822 24.4 osh-native
38 no-host configure.yash 1,852 1,023 833 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 41 16 18.9 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,566 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,926 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,103 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,361 0 0 0 8 0 1,989 48 bash
9 no-host bin-true 65,407 0 0 0 8 0 1,986 29 dash
17 no-host bin-true 794,430 0 0 0 8 0 1,998 208 osh-cpython
25 no-host bin-true 124,240 0 0 0 16 0 1,995 134 osh-native
33 no-host bin-true 124,258 0 0 0 16 0 1,988 48 osh-native-souffle
2 no-host configure.cpython 2,217,890 0 0 0 32,928 0 14,513 993 bash
10 no-host configure.cpython 2,245,609 2 0 0 32,992 0 14,669 961 dash
18 no-host configure.cpython 6,278,076 0 0 0 27,512 0 13,242 1,305 osh-cpython
26 no-host configure.cpython 2,217,292 0 0 0 27,520 0 13,265 939 osh-native
34 no-host configure.cpython 2,208,075 0 0 0 27,520 0 13,160 1,036 osh-native-souffle
4 no-host configure.ocaml 410,879 0 0 0 5,120 0 1,945 150 bash
12 no-host configure.ocaml 391,235 0 0 0 5,112 0 1,886 131 dash
20 no-host configure.ocaml 649,756 0 0 0 5,112 0 1,859 177 osh-cpython
28 no-host configure.ocaml 413,314 0 0 0 5,120 0 1,935 152 osh-native
36 no-host configure.ocaml 412,458 0 0 0 5,120 0 1,925 168 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 10 dash
21 no-host configure.tcc 24,478 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,945 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,103,481 0 0 0 42,400 0 18,501 1,016 bash
11 no-host configure.util-linux 2,260,015 2 0 0 42,592 0 17,395 1,008 dash
19 no-host configure.util-linux 5,413,926 8 0 0 39,112 0 16,997 1,154 osh-cpython
27 no-host configure.util-linux 1,995,224 0 0 0 39,120 0 16,937 1,009 osh-native
35 no-host configure.util-linux 1,985,846 0 0 0 39,136 0 16,961 1,018 osh-native-souffle
6 no-host configure.yash 256,116 0 0 0 4,120 0 868 133 bash
14 no-host configure.yash 245,208 0 0 0 3,720 0 869 78 dash
22 no-host configure.yash 391,224 0 0 0 3,728 0 851 90 osh-cpython
30 no-host configure.yash 257,639 0 0 0 3,736 0 848 78 osh-native
38 no-host configure.yash 257,566 0 0 0 3,736 0 852 67 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 0 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,992 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-f4de2b6b
dash dash-0ebcf347
osh-cpython osh-634c7fd2
osh-native osh-969f6800
osh-native-souffle osh-c35f93d3
host label host id
no-host no-host-556df3ee