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 22 21 24.41 1.16
bin-true no-host 684 549 2,321 812 816 3.39 1.19
configure.cpython no-host 15,123 15,182 28,848 15,236 15,361 1.91 1.01
configure.ocaml no-host 3,857 3,772 4,656 3,827 3,861 1.21 0.99
configure.tcc no-host 48 44 202 49 49 4.23 1.03
configure.util-linux no-host 14,048 14,914 31,722 14,429 14,340 2.26 1.03
configure.yash no-host 1,821 1,776 2,485 1,823 1,829 1.36 1.00
hello-world no-host 1 1 57 3 3 38.21 1.92

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,518 1,130 23,768 3,229 3,109 9.44 1.28
bin-true no-host 106,374 66,376 769,547 127,226 127,227 7.23 1.20
configure.cpython no-host 2,226,066 2,241,986 6,245,439 2,215,843 2,210,894 2.81 1.00
configure.ocaml no-host 410,787 391,036 647,735 412,889 412,728 1.58 1.01
configure.tcc no-host 6,531 5,478 24,131 6,971 6,911 3.69 1.07
configure.util-linux no-host 2,105,631 2,262,061 5,391,164 1,995,483 1,990,171 2.56 0.95
configure.yash no-host 256,673 243,977 388,787 258,347 257,784 1.51 1.01
hello-world no-host 152 84 3,945 346 338 25.95 2.28

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 22.5 9.2 8.8 5.21 2.12
bin-true no-host 3.0 1.4 18.4 8.0 7.7 6.09 2.65
configure.cpython no-host 27.3 27.4 27.5 27.1 27.4 1.01 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.4 19.4 19.3 19.1 1.01 1.00
configure.util-linux no-host 30.1 30.0 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.6 18.2 6.3 5.9 6.32 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 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,236 1 62 14.9 27.1 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,429 3 61 21.2 30.0 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,827 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,823 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,361 1 62 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,340 3 61 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,861 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,829 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 9 1 3.5 dash
23 no-host abuild-print-help 465 422 47 22.5 osh-cpython
31 no-host abuild-print-help 22 18 5 9.2 osh-native
39 no-host abuild-print-help 21 11 11 8.8 osh-native-souffle
1 no-host bin-true 684 496 218 3.0 bash
9 no-host bin-true 549 426 131 1.4 dash
17 no-host bin-true 2,321 1,472 1,121 18.4 osh-cpython
25 no-host bin-true 812 577 249 8.0 osh-native
33 no-host bin-true 816 582 248 7.7 osh-native-souffle
2 no-host configure.cpython 15,123 9,108 6,406 27.3 bash
10 no-host configure.cpython 15,182 9,208 6,396 27.4 dash
18 no-host configure.cpython 28,848 17,401 13,322 27.5 osh-cpython
26 no-host configure.cpython 15,236 9,086 6,421 27.1 osh-native
34 no-host configure.cpython 15,361 8,976 6,517 27.4 osh-native-souffle
4 no-host configure.ocaml 3,857 1,635 1,251 20.6 bash
12 no-host configure.ocaml 3,772 1,559 1,220 20.6 dash
20 no-host configure.ocaml 4,656 2,202 1,668 20.6 osh-cpython
28 no-host configure.ocaml 3,827 1,592 1,274 20.6 osh-native
36 no-host configure.ocaml 3,861 1,659 1,238 20.6 osh-native-souffle
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 44 34 11 19.4 dash
21 no-host configure.tcc 202 139 66 19.4 osh-cpython
29 no-host configure.tcc 49 39 11 19.3 osh-native
37 no-host configure.tcc 49 26 23 19.1 osh-native-souffle
3 no-host configure.util-linux 14,048 8,875 5,659 30.1 bash
11 no-host configure.util-linux 14,914 9,042 6,370 30.0 dash
19 no-host configure.util-linux 31,722 21,100 11,715 30.3 osh-cpython
27 no-host configure.util-linux 14,429 8,891 5,735 30.0 osh-native
35 no-host configure.util-linux 14,340 8,777 5,759 30.1 osh-native-souffle
6 no-host configure.yash 1,821 1,062 766 24.2 bash
14 no-host configure.yash 1,776 975 804 24.4 dash
22 no-host configure.yash 2,485 1,523 1,002 24.4 osh-cpython
30 no-host configure.yash 1,823 1,044 783 24.4 osh-native
38 no-host configure.yash 1,829 1,021 812 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 29 28 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,518 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,768 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,229 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,374 0 0 0 8 0 1,993 110 bash
9 no-host bin-true 66,376 0 0 0 8 0 1,991 42 dash
17 no-host bin-true 769,547 0 0 0 8 0 1,993 101 osh-cpython
25 no-host bin-true 127,226 0 0 0 16 0 1,996 58 osh-native
33 no-host bin-true 127,227 0 0 0 16 0 1,985 50 osh-native-souffle
2 no-host configure.cpython 2,226,066 0 0 0 32,928 0 14,530 1,129 bash
10 no-host configure.cpython 2,241,986 1 0 0 32,992 0 14,627 1,109 dash
18 no-host configure.cpython 6,245,439 0 0 0 27,512 0 13,251 1,102 osh-cpython
26 no-host configure.cpython 2,215,843 1 0 0 27,520 0 13,273 1,152 osh-native
34 no-host configure.cpython 2,210,894 0 0 0 27,520 0 13,269 956 osh-native-souffle
4 no-host configure.ocaml 410,787 0 0 0 5,120 0 1,954 179 bash
12 no-host configure.ocaml 391,036 0 0 0 5,112 0 1,903 182 dash
20 no-host configure.ocaml 647,735 0 0 0 5,112 0 1,862 179 osh-cpython
28 no-host configure.ocaml 412,889 0 0 0 5,120 0 1,928 177 osh-native
36 no-host configure.ocaml 412,728 0 0 0 5,120 0 1,927 177 osh-native-souffle
5 no-host configure.tcc 6,531 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 24,131 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 10 osh-native
37 no-host configure.tcc 6,911 0 0 0 104 0 47 13 osh-native-souffle
3 no-host configure.util-linux 2,105,631 1 0 0 42,400 0 18,664 1,021 bash
11 no-host configure.util-linux 2,262,061 2 0 0 42,584 0 17,515 1,087 dash
19 no-host configure.util-linux 5,391,164 10 0 0 39,112 0 17,001 1,264 osh-cpython
27 no-host configure.util-linux 1,995,483 0 0 0 39,120 0 16,950 1,113 osh-native
35 no-host configure.util-linux 1,990,171 0 0 0 39,128 0 17,003 946 osh-native-souffle
6 no-host configure.yash 256,673 0 0 0 4,120 0 873 85 bash
14 no-host configure.yash 243,977 0 0 0 3,720 0 870 71 dash
22 no-host configure.yash 388,787 0 0 0 3,728 0 853 90 osh-cpython
30 no-host configure.yash 258,347 0 0 0 3,736 0 852 109 osh-native
38 no-host configure.yash 257,784 0 0 0 3,736 0 849 80 osh-native-souffle
0 no-host hello-world 152 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,945 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-716a77b0
dash dash-0ebcf347
osh-cpython osh-def54c4b
osh-native osh-e2ef1c5e
osh-native-souffle osh-6dcbb03d
host label host id
no-host no-host-556df3ee