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 21 10 482 24 23 22.60 1.10
bin-true no-host 701 553 2,425 854 872 3.46 1.22
configure.cpython no-host 16,012 16,258 30,902 16,251 16,218 1.93 1.01
configure.ocaml no-host 4,083 3,961 4,870 4,064 3,995 1.19 1.00
configure.tcc no-host 51 45 211 54 51 4.17 1.06
configure.util-linux no-host 15,096 15,920 33,214 15,326 15,346 2.20 1.02
configure.yash no-host 1,924 1,893 2,681 1,958 1,942 1.39 1.02
hello-world no-host 2 1 60 3 3 38.96 2.24

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,530 1,109 23,536 3,204 3,089 9.30 1.27
bin-true no-host 103,442 66,385 759,656 126,150 126,226 7.34 1.22
configure.cpython no-host 2,219,756 2,241,665 6,226,824 2,226,618 2,211,592 2.81 1.00
configure.ocaml no-host 410,901 391,383 643,388 413,553 412,221 1.57 1.01
configure.tcc no-host 6,552 5,471 23,931 6,959 6,895 3.65 1.06
configure.util-linux no-host 2,091,746 2,260,660 5,372,723 2,004,664 1,986,438 2.57 0.96
configure.yash no-host 256,080 243,604 386,988 258,067 258,420 1.51 1.01
hello-world no-host 153 81 3,954 342 337 25.84 2.24

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 22.6 9.0 8.7 5.07 2.03
bin-true no-host 3.0 1.6 18.4 8.0 7.7 6.10 2.65
configure.cpython no-host 27.5 27.1 27.4 27.4 27.5 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.3 19.3 19.4 19.3 19.4 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.0 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.5 24.2 24.5 24.4 0.99 1.01
hello-world no-host 2.8 1.4 18.3 6.2 5.9 6.63 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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 854 1 2 2.6 8.0 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 16,251 2 77 14.9 27.4 1,771,804 49,616 28,523 85,427 878,138 808,239 25,736 60 50,000 0
configure.util-linux no-host 15,326 4 74 21.2 30.1 2,702,550 53,777 65,702 108,699 1,290,655 1,303,196 32,241 41 131,404 1
configure.ocaml no-host 4,064 1 2 2.6 20.6 150,091 11,123 5,218 7,508 70,976 71,607 1,695 3 50,000 0
configure.tcc no-host 54 0 0 1.3 19.3 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,958 1 3 2.5 24.5 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 9.0 116,303 64,414 42,624 4,532 54,443 57,328 277 3 85,248 1
hello-world no-host 3 0 0 0.2 5.9 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 872 1 2 2.6 7.7 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 16,218 2 82 14.9 27.5 1,771,803 49,074 28,461 85,428 878,138 808,237 25,736 60 50,000 0
configure.util-linux no-host 15,346 4 76 21.2 30.3 2,702,550 53,704 65,640 108,701 1,290,655 1,303,194 32,241 41 131,280 1
configure.ocaml no-host 3,995 1 2 2.6 20.4 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,942 1 3 2.5 24.4 139,423 7,973 6,635 5,991 67,949 65,483 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,302 64,352 42,562 4,533 54,443 57,326 277 3 85,124 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 21 10 12 4.5 bash
15 no-host abuild-print-help 10 5 6 3.4 dash
23 no-host abuild-print-help 482 414 72 22.6 osh-cpython
31 no-host abuild-print-help 24 12 12 9.0 osh-native
39 no-host abuild-print-help 23 18 5 8.7 osh-native-souffle
1 no-host bin-true 701 491 244 3.0 bash
9 no-host bin-true 553 423 141 1.6 dash
17 no-host bin-true 2,425 1,520 1,196 18.4 osh-cpython
25 no-host bin-true 854 567 303 8.0 osh-native
33 no-host bin-true 872 602 284 7.7 osh-native-souffle
2 no-host configure.cpython 16,012 9,792 6,644 27.5 bash
10 no-host configure.cpython 16,258 9,776 6,856 27.1 dash
18 no-host configure.cpython 30,902 18,875 14,059 27.4 osh-cpython
26 no-host configure.cpython 16,251 9,707 6,836 27.4 osh-native
34 no-host configure.cpython 16,218 9,507 6,863 27.5 osh-native-souffle
4 no-host configure.ocaml 4,083 1,757 1,368 20.6 bash
12 no-host configure.ocaml 3,961 1,697 1,285 20.6 dash
20 no-host configure.ocaml 4,870 2,360 1,735 20.6 osh-cpython
28 no-host configure.ocaml 4,064 1,811 1,297 20.6 osh-native
36 no-host configure.ocaml 3,995 1,743 1,291 20.4 osh-native-souffle
5 no-host configure.tcc 51 32 19 19.3 bash
13 no-host configure.tcc 45 27 18 19.3 dash
21 no-host configure.tcc 211 158 56 19.4 osh-cpython
29 no-host configure.tcc 54 31 24 19.3 osh-native
37 no-host configure.tcc 51 31 21 19.4 osh-native-souffle
3 no-host configure.util-linux 15,096 9,485 6,126 30.1 bash
11 no-host configure.util-linux 15,920 9,731 6,721 30.1 dash
19 no-host configure.util-linux 33,214 22,088 12,281 30.0 osh-cpython
27 no-host configure.util-linux 15,326 9,229 6,303 30.1 osh-native
35 no-host configure.util-linux 15,346 9,158 6,389 30.3 osh-native-souffle
6 no-host configure.yash 1,924 1,155 778 24.4 bash
14 no-host configure.yash 1,893 1,157 740 24.5 dash
22 no-host configure.yash 2,681 1,618 1,109 24.2 osh-cpython
30 no-host configure.yash 1,958 1,123 839 24.5 osh-native
38 no-host configure.yash 1,942 1,121 825 24.4 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 60 36 23 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 0 3 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,530 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,536 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,204 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 103,442 0 0 0 8 0 1,985 129 bash
9 no-host bin-true 66,385 0 0 0 8 0 1,983 51 dash
17 no-host bin-true 759,656 0 0 0 8 0 1,995 137 osh-cpython
25 no-host bin-true 126,150 0 0 0 16 0 1,986 56 osh-native
33 no-host bin-true 126,226 0 0 0 16 0 1,983 181 osh-native-souffle
2 no-host configure.cpython 2,219,756 0 0 0 32,928 0 14,499 985 bash
10 no-host configure.cpython 2,241,665 0 0 0 32,992 0 14,630 999 dash
18 no-host configure.cpython 6,226,824 0 0 0 27,512 0 13,317 1,085 osh-cpython
26 no-host configure.cpython 2,226,618 0 0 0 27,520 0 13,399 913 osh-native
34 no-host configure.cpython 2,211,592 0 0 0 27,520 0 13,303 945 osh-native-souffle
4 no-host configure.ocaml 410,901 0 0 0 5,120 0 1,953 157 bash
12 no-host configure.ocaml 391,383 0 0 0 5,112 0 1,941 149 dash
20 no-host configure.ocaml 643,388 0 0 0 5,112 0 1,888 180 osh-cpython
28 no-host configure.ocaml 413,553 0 0 0 5,120 0 1,936 157 osh-native
36 no-host configure.ocaml 412,221 0 0 0 5,120 0 1,933 145 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,931 0 0 0 96 0 52 14 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,895 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,091,746 1 0 0 42,408 0 18,526 892 bash
11 no-host configure.util-linux 2,260,660 0 0 0 42,592 0 17,442 1,048 dash
19 no-host configure.util-linux 5,372,723 8 0 0 39,136 0 16,970 1,139 osh-cpython
27 no-host configure.util-linux 2,004,664 5 0 0 39,128 0 17,213 1,068 osh-native
35 no-host configure.util-linux 1,986,438 1 0 0 39,136 0 16,977 956 osh-native-souffle
6 no-host configure.yash 256,080 0 0 0 4,120 0 867 86 bash
14 no-host configure.yash 243,604 0 0 0 3,720 0 869 73 dash
22 no-host configure.yash 386,988 0 0 0 3,728 0 853 86 osh-cpython
30 no-host configure.yash 258,067 0 0 0 3,736 0 846 88 osh-native
38 no-host configure.yash 258,420 0 0 0 3,736 0 850 73 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,954 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-636c621d
dash dash-0ebcf347
osh-cpython osh-a2cfd30c
osh-native osh-e2b01093
osh-native-souffle osh-9a87552e
host label host id
no-host no-host-556df3ee