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 469 22 21 24.45 1.14
bin-true no-host 686 548 2,332 812 806 3.40 1.18
configure.cpython no-host 15,195 15,219 29,494 15,434 15,526 1.94 1.02
configure.ocaml no-host 3,851 3,773 4,708 3,890 3,861 1.22 1.01
configure.tcc no-host 48 42 204 49 49 4.23 1.02
configure.util-linux no-host 14,182 15,227 32,190 14,512 14,634 2.27 1.02
configure.yash no-host 1,825 1,806 2,526 1,839 1,849 1.38 1.01
hello-world no-host 2 1 57 3 3 34.73 1.77

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,510 1,093 23,935 3,184 3,057 9.54 1.27
bin-true no-host 109,355 66,466 793,434 125,280 124,274 7.26 1.15
configure.cpython no-host 2,225,245 2,242,950 6,277,032 2,221,661 2,210,487 2.82 1.00
configure.ocaml no-host 410,722 390,861 650,792 413,023 411,841 1.58 1.01
configure.tcc no-host 6,569 5,476 24,459 6,963 6,914 3.72 1.06
configure.util-linux no-host 2,101,970 2,262,575 5,416,033 2,001,408 1,992,641 2.58 0.95
configure.yash no-host 256,465 244,706 390,310 257,064 257,293 1.52 1.00
hello-world no-host 153 82 3,993 350 344 26.10 2.29

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.5 23.0 9.0 8.7 5.33 2.09
bin-true no-host 3.0 1.4 18.9 8.1 7.6 6.28 2.70
configure.cpython no-host 27.4 27.3 27.5 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 24.2 1.00 1.01
hello-world no-host 2.8 1.4 18.9 6.2 5.8 6.88 2.24

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,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,434 1 62 14.9 27.3 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,512 3 60 21.2 30.3 2,702,511 29,654 65,897 108,692 1,320,583 1,273,236 32,239 41 131,794 1
configure.ocaml no-host 3,890 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.3 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,839 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 22 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 806 1 2 2.6 7.6 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,526 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,634 3 63 21.2 30.1 2,702,511 29,763 65,815 108,694 1,320,583 1,273,234 32,239 41 131,630 1
configure.ocaml no-host 3,861 1 2 2.6 20.6 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 49 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,849 1 2 2.5 24.2 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 21 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 19 12 8 4.3 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 469 419 53 23.0 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 21 0 8.7 osh-native-souffle
1 no-host bin-true 686 510 207 3.0 bash
9 no-host bin-true 548 421 136 1.4 dash
17 no-host bin-true 2,332 1,509 1,084 18.9 osh-cpython
25 no-host bin-true 812 595 233 8.1 osh-native
33 no-host bin-true 806 567 254 7.6 osh-native-souffle
2 no-host configure.cpython 15,195 9,157 6,431 27.4 bash
10 no-host configure.cpython 15,219 9,091 6,545 27.3 dash
18 no-host configure.cpython 29,494 17,758 13,660 27.5 osh-cpython
26 no-host configure.cpython 15,434 8,962 6,731 27.3 osh-native
34 no-host configure.cpython 15,526 9,106 6,601 27.4 osh-native-souffle
4 no-host configure.ocaml 3,851 1,659 1,232 20.6 bash
12 no-host configure.ocaml 3,773 1,629 1,163 20.6 dash
20 no-host configure.ocaml 4,708 2,314 1,609 20.4 osh-cpython
28 no-host configure.ocaml 3,890 1,583 1,345 20.6 osh-native
36 no-host configure.ocaml 3,861 1,631 1,268 20.6 osh-native-souffle
5 no-host configure.tcc 48 33 16 19.3 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 204 144 63 19.3 osh-cpython
29 no-host configure.tcc 49 26 24 19.3 osh-native
37 no-host configure.tcc 49 31 18 19.4 osh-native-souffle
3 no-host configure.util-linux 14,182 8,850 5,806 30.1 bash
11 no-host configure.util-linux 15,227 9,451 6,262 30.1 dash
19 no-host configure.util-linux 32,190 21,200 12,103 30.3 osh-cpython
27 no-host configure.util-linux 14,512 8,559 6,162 30.3 osh-native
35 no-host configure.util-linux 14,634 8,772 6,050 30.1 osh-native-souffle
6 no-host configure.yash 1,825 1,020 814 24.2 bash
14 no-host configure.yash 1,806 998 809 24.4 dash
22 no-host configure.yash 2,526 1,480 1,090 24.2 osh-cpython
30 no-host configure.yash 1,839 1,019 824 24.4 osh-native
38 no-host configure.yash 1,849 1,078 774 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 52 4 18.9 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,510 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,935 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,184 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,057 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 109,355 0 0 0 8 0 1,995 126 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,989 41 dash
17 no-host bin-true 793,434 0 0 0 8 0 1,993 93 osh-cpython
25 no-host bin-true 125,280 0 0 0 16 0 1,990 55 osh-native
33 no-host bin-true 124,274 0 0 0 16 0 1,990 66 osh-native-souffle
2 no-host configure.cpython 2,225,245 0 0 0 32,928 0 14,532 1,022 bash
10 no-host configure.cpython 2,242,950 1 0 0 32,992 0 14,598 1,041 dash
18 no-host configure.cpython 6,277,032 0 0 0 27,512 0 13,256 1,294 osh-cpython
26 no-host configure.cpython 2,221,661 0 0 0 27,520 0 13,288 1,057 osh-native
34 no-host configure.cpython 2,210,487 0 0 0 27,520 0 13,304 1,035 osh-native-souffle
4 no-host configure.ocaml 410,722 0 0 0 5,120 0 1,942 146 bash
12 no-host configure.ocaml 390,861 0 0 0 5,112 0 1,875 144 dash
20 no-host configure.ocaml 650,792 0 0 0 5,112 0 1,868 178 osh-cpython
28 no-host configure.ocaml 413,023 0 0 0 5,120 0 1,935 184 osh-native
36 no-host configure.ocaml 411,841 0 0 0 5,120 0 1,932 152 osh-native-souffle
5 no-host configure.tcc 6,569 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,459 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,914 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,101,970 0 0 0 42,400 0 18,592 1,147 bash
11 no-host configure.util-linux 2,262,575 0 0 0 42,584 0 17,500 1,036 dash
19 no-host configure.util-linux 5,416,033 10 0 0 39,120 0 17,000 1,266 osh-cpython
27 no-host configure.util-linux 2,001,408 0 0 0 39,120 0 17,009 913 osh-native
35 no-host configure.util-linux 1,992,641 1 0 0 39,136 0 16,970 931 osh-native-souffle
6 no-host configure.yash 256,465 0 0 0 4,120 0 871 97 bash
14 no-host configure.yash 244,706 0 0 0 3,720 0 866 85 dash
22 no-host configure.yash 390,310 0 0 0 3,728 0 855 105 osh-cpython
30 no-host configure.yash 257,064 0 0 0 3,736 0 847 84 osh-native
38 no-host configure.yash 257,293 0 0 0 3,736 0 847 88 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,993 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ee8cd8c1
dash dash-0ebcf347
osh-cpython osh-3997a204
osh-native osh-1759cff8
osh-native-souffle osh-d7873888
host label host id
no-host no-host-556df3ee