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 9 473 22 21 24.43 1.15
bin-true no-host 685 552 2,327 819 814 3.40 1.20
configure.cpython no-host 15,467 15,580 29,763 15,824 15,906 1.92 1.02
configure.ocaml no-host 3,920 3,829 4,756 3,905 3,916 1.21 1.00
configure.tcc no-host 49 43 209 51 50 4.30 1.05
configure.util-linux no-host 14,464 15,349 32,366 14,796 14,696 2.24 1.02
configure.yash no-host 1,870 1,828 2,529 1,892 1,881 1.35 1.01
hello-world no-host 2 1 59 3 3 37.79 1.82

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,517 1,087 23,438 3,200 3,113 9.31 1.27
bin-true no-host 105,406 66,469 757,931 127,148 123,156 7.19 1.21
configure.cpython no-host 2,225,187 2,239,897 6,200,941 2,219,843 2,222,251 2.79 1.00
configure.ocaml no-host 410,707 390,799 644,144 413,553 412,471 1.57 1.01
configure.tcc no-host 6,532 5,494 23,873 6,956 6,903 3.65 1.06
configure.util-linux no-host 2,100,845 2,262,216 5,356,207 1,997,438 1,987,237 2.55 0.95
configure.yash no-host 256,185 244,171 386,625 258,446 257,651 1.51 1.01
hello-world no-host 150 80 3,952 347 336 26.35 2.31

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.8 8.9 8.7 5.28 2.06
bin-true no-host 3.0 1.4 18.5 8.1 7.6 6.14 2.70
configure.cpython no-host 27.4 27.3 27.4 27.4 27.4 1.00 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.4 19.4 19.4 19.3 19.4 1.00 0.99
configure.util-linux no-host 30.3 30.0 30.1 30.1 30.4 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.2 24.4 1.01 0.99
hello-world no-host 2.8 1.3 18.3 6.4 5.9 6.63 2.33

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.4 3,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 819 1 2 2.6 8.1 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,824 1 68 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 14,796 3 64 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 3,905 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 51 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,892 1 2 2.5 24.2 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 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 814 1 2 2.6 7.6 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 15,906 1 65 14.9 27.4 1,771,803 49,074 28,461 85,428 878,138 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,696 3 63 21.2 30.4 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,916 1 2 2.6 20.6 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 50 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,881 1 2 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 21 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 19 17 3 4.3 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 473 422 55 22.8 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
39 no-host abuild-print-help 21 19 3 8.7 osh-native-souffle
1 no-host bin-true 685 503 217 3.0 bash
9 no-host bin-true 552 428 132 1.4 dash
17 no-host bin-true 2,327 1,582 1,017 18.5 osh-cpython
25 no-host bin-true 819 568 265 8.1 osh-native
33 no-host bin-true 814 574 255 7.6 osh-native-souffle
2 no-host configure.cpython 15,467 9,258 6,618 27.4 bash
10 no-host configure.cpython 15,580 9,404 6,615 27.3 dash
18 no-host configure.cpython 29,763 17,971 13,715 27.4 osh-cpython
26 no-host configure.cpython 15,824 9,328 6,724 27.4 osh-native
34 no-host configure.cpython 15,906 9,283 6,753 27.4 osh-native-souffle
4 no-host configure.ocaml 3,920 1,715 1,234 20.6 bash
12 no-host configure.ocaml 3,829 1,653 1,195 20.6 dash
20 no-host configure.ocaml 4,756 2,344 1,630 20.6 osh-cpython
28 no-host configure.ocaml 3,905 1,760 1,182 20.6 osh-native
36 no-host configure.ocaml 3,916 1,716 1,239 20.6 osh-native-souffle
5 no-host configure.tcc 49 23 26 19.4 bash
13 no-host configure.tcc 43 32 11 19.4 dash
21 no-host configure.tcc 209 146 67 19.4 osh-cpython
29 no-host configure.tcc 51 29 22 19.3 osh-native
37 no-host configure.tcc 50 30 21 19.4 osh-native-souffle
3 no-host configure.util-linux 14,464 9,123 5,829 30.3 bash
11 no-host configure.util-linux 15,349 9,315 6,532 30.0 dash
19 no-host configure.util-linux 32,366 21,476 11,971 30.1 osh-cpython
27 no-host configure.util-linux 14,796 8,933 6,005 30.1 osh-native
35 no-host configure.util-linux 14,696 8,752 6,142 30.4 osh-native-souffle
6 no-host configure.yash 1,870 1,033 845 24.4 bash
14 no-host configure.yash 1,828 1,057 772 24.4 dash
22 no-host configure.yash 2,529 1,556 1,019 24.5 osh-cpython
30 no-host configure.yash 1,892 1,079 817 24.2 osh-native
38 no-host configure.yash 1,881 1,086 799 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.3 dash
16 no-host hello-world 59 55 4 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,517 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,438 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,200 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,113 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,406 0 0 0 8 0 1,997 132 bash
9 no-host bin-true 66,469 0 0 0 8 0 1,985 38 dash
17 no-host bin-true 757,931 0 0 0 8 0 1,997 123 osh-cpython
25 no-host bin-true 127,148 0 0 0 16 0 1,989 57 osh-native
33 no-host bin-true 123,156 0 0 0 16 0 1,996 92 osh-native-souffle
2 no-host configure.cpython 2,225,187 0 0 0 32,928 0 14,467 983 bash
10 no-host configure.cpython 2,239,897 0 0 0 32,992 0 14,657 922 dash
18 no-host configure.cpython 6,200,941 0 0 0 27,512 0 13,251 1,207 osh-cpython
26 no-host configure.cpython 2,219,843 0 0 0 27,520 0 13,180 967 osh-native
34 no-host configure.cpython 2,222,251 0 0 0 27,520 0 13,232 936 osh-native-souffle
4 no-host configure.ocaml 410,707 0 0 0 5,120 0 1,952 177 bash
12 no-host configure.ocaml 390,799 0 0 0 5,112 0 1,860 135 dash
20 no-host configure.ocaml 644,144 0 0 0 5,112 0 1,865 209 osh-cpython
28 no-host configure.ocaml 413,553 0 0 0 5,120 0 1,926 152 osh-native
36 no-host configure.ocaml 412,471 0 0 0 5,120 0 1,929 150 osh-native-souffle
5 no-host configure.tcc 6,532 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,494 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,873 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 46 0 osh-native
37 no-host configure.tcc 6,903 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,100,845 1 0 0 42,400 0 18,409 1,066 bash
11 no-host configure.util-linux 2,262,216 0 0 0 42,584 0 17,483 1,181 dash
19 no-host configure.util-linux 5,356,207 9 0 0 39,112 0 16,950 1,273 osh-cpython
27 no-host configure.util-linux 1,997,438 0 0 0 39,128 0 17,038 966 osh-native
35 no-host configure.util-linux 1,987,237 0 0 0 39,136 0 16,897 943 osh-native-souffle
6 no-host configure.yash 256,185 0 0 0 4,120 0 870 92 bash
14 no-host configure.yash 244,171 0 0 0 3,720 0 869 69 dash
22 no-host configure.yash 386,625 0 0 0 3,728 0 853 98 osh-cpython
30 no-host configure.yash 258,446 0 0 0 3,736 0 851 77 osh-native
38 no-host configure.yash 257,651 0 0 0 3,736 0 851 70 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,952 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-29acf5c8
dash dash-0ebcf347
osh-cpython osh-4e13b5b8
osh-native osh-45023df2
osh-native-souffle osh-a5d98bf0
host label host id
no-host no-host-556df3ee