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 471 22 21 24.97 1.17
bin-true no-host 680 539 2,334 819 805 3.43 1.20
configure.cpython no-host 15,254 15,388 29,273 15,507 15,577 1.92 1.02
configure.ocaml no-host 3,892 3,782 4,733 3,884 3,867 1.22 1.00
configure.tcc no-host 49 42 207 50 48 4.20 1.02
configure.util-linux no-host 14,332 15,154 32,407 14,682 14,581 2.26 1.02
configure.yash no-host 1,851 1,798 2,517 1,860 1,849 1.36 1.00
hello-world no-host 2 1 60 3 3 39.09 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,556 1,089 23,955 3,185 3,065 9.37 1.25
bin-true no-host 105,345 66,459 780,808 125,337 124,210 7.41 1.19
configure.cpython no-host 2,221,517 2,237,710 6,228,177 2,218,050 2,206,007 2.80 1.00
configure.ocaml no-host 410,309 390,789 646,661 412,363 411,616 1.58 1.01
configure.tcc no-host 6,551 5,502 24,440 6,978 6,891 3.73 1.07
configure.util-linux no-host 2,099,609 2,260,812 5,400,883 2,004,079 1,990,452 2.57 0.95
configure.yash no-host 256,177 244,850 390,092 257,724 257,824 1.52 1.01
hello-world no-host 152 79 4,002 354 343 26.33 2.33

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.3 23.3 9.0 8.5 5.38 2.09
bin-true no-host 3.0 1.4 18.8 7.9 7.6 6.24 2.61
configure.cpython no-host 27.4 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.1 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.5 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.4 18.8 6.2 5.9 6.53 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,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 819 1 2 2.6 7.9 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,507 1 62 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,682 3 62 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,884 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 50 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,860 1 2 2.5 24.2 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.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 805 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,577 1 66 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,581 3 64 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,867 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.1 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.4 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.5 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 5 6 3.3 dash
23 no-host abuild-print-help 471 413 60 23.3 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.5 osh-native-souffle
1 no-host bin-true 680 490 221 3.0 bash
9 no-host bin-true 539 414 133 1.4 dash
17 no-host bin-true 2,334 1,500 1,102 18.8 osh-cpython
25 no-host bin-true 819 600 235 7.9 osh-native
33 no-host bin-true 805 588 232 7.6 osh-native-souffle
2 no-host configure.cpython 15,254 9,169 6,474 27.4 bash
10 no-host configure.cpython 15,388 9,354 6,450 27.4 dash
18 no-host configure.cpython 29,273 17,986 13,195 27.4 osh-cpython
26 no-host configure.cpython 15,507 9,174 6,589 27.4 osh-native
34 no-host configure.cpython 15,577 9,115 6,643 27.4 osh-native-souffle
4 no-host configure.ocaml 3,892 1,694 1,218 20.6 bash
12 no-host configure.ocaml 3,782 1,530 1,271 20.6 dash
20 no-host configure.ocaml 4,733 2,231 1,719 20.6 osh-cpython
28 no-host configure.ocaml 3,884 1,722 1,196 20.6 osh-native
36 no-host configure.ocaml 3,867 1,658 1,243 20.4 osh-native-souffle
5 no-host configure.tcc 49 35 15 19.4 bash
13 no-host configure.tcc 42 24 18 19.4 dash
21 no-host configure.tcc 207 159 51 19.3 osh-cpython
29 no-host configure.tcc 50 31 19 19.3 osh-native
37 no-host configure.tcc 48 33 15 19.1 osh-native-souffle
3 no-host configure.util-linux 14,332 9,116 5,696 30.1 bash
11 no-host configure.util-linux 15,154 9,280 6,365 30.1 dash
19 no-host configure.util-linux 32,407 21,504 12,035 30.0 osh-cpython
27 no-host configure.util-linux 14,682 8,935 5,933 30.3 osh-native
35 no-host configure.util-linux 14,581 8,703 6,064 30.1 osh-native-souffle
6 no-host configure.yash 1,851 1,125 735 24.2 bash
14 no-host configure.yash 1,798 1,005 795 24.2 dash
22 no-host configure.yash 2,517 1,582 980 24.5 osh-cpython
30 no-host configure.yash 1,860 1,020 843 24.2 osh-native
38 no-host configure.yash 1,849 1,076 777 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.4 dash
16 no-host hello-world 60 40 20 18.8 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,556 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,955 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,185 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,065 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,345 0 0 0 8 0 1,985 56 bash
9 no-host bin-true 66,459 0 0 0 8 0 1,983 33 dash
17 no-host bin-true 780,808 0 0 0 8 0 2,004 365 osh-cpython
25 no-host bin-true 125,337 0 0 0 16 0 1,997 66 osh-native
33 no-host bin-true 124,210 0 0 0 16 0 1,992 56 osh-native-souffle
2 no-host configure.cpython 2,221,517 0 0 0 32,928 0 14,520 963 bash
10 no-host configure.cpython 2,237,710 0 0 0 32,992 0 14,613 1,042 dash
18 no-host configure.cpython 6,228,177 0 0 0 27,512 0 13,125 1,177 osh-cpython
26 no-host configure.cpython 2,218,050 0 0 0 27,520 0 13,174 1,012 osh-native
34 no-host configure.cpython 2,206,007 0 0 0 27,520 0 13,254 973 osh-native-souffle
4 no-host configure.ocaml 410,309 0 0 0 5,120 0 1,965 160 bash
12 no-host configure.ocaml 390,789 0 0 0 5,112 0 1,879 130 dash
20 no-host configure.ocaml 646,661 0 0 0 5,112 0 1,867 169 osh-cpython
28 no-host configure.ocaml 412,363 0 0 0 5,120 0 1,928 194 osh-native
36 no-host configure.ocaml 411,616 0 0 0 5,120 0 1,926 145 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,502 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,440 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,891 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,099,609 0 0 0 42,408 0 18,562 1,019 bash
11 no-host configure.util-linux 2,260,812 1 0 0 42,592 0 17,510 1,055 dash
19 no-host configure.util-linux 5,400,883 9 0 0 39,136 0 16,963 1,295 osh-cpython
27 no-host configure.util-linux 2,004,079 0 0 0 39,128 0 16,945 1,182 osh-native
35 no-host configure.util-linux 1,990,452 1 0 0 39,136 0 16,947 887 osh-native-souffle
6 no-host configure.yash 256,177 0 0 0 4,120 0 871 68 bash
14 no-host configure.yash 244,850 0 0 0 3,720 0 873 63 dash
22 no-host configure.yash 390,092 0 0 0 3,728 0 856 108 osh-cpython
30 no-host configure.yash 257,724 0 0 0 3,736 0 850 79 osh-native
38 no-host configure.yash 257,824 0 0 0 3,736 0 852 69 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,002 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 354 0 0 0 16 0 1 0 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-b6665ade
dash dash-0ebcf347
osh-cpython osh-f64e8451
osh-native osh-35cf20d3
osh-native-souffle osh-5ad0ebbe
host label host id
no-host no-host-556df3ee