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 471 22 21 24.49 1.15
bin-true no-host 685 550 2,307 824 823 3.37 1.20
configure.cpython no-host 15,410 15,498 29,281 15,553 15,675 1.90 1.01
configure.ocaml no-host 3,849 3,789 4,724 3,878 3,875 1.23 1.01
configure.tcc no-host 48 42 205 49 49 4.30 1.03
configure.util-linux no-host 14,231 15,203 32,010 14,691 14,686 2.25 1.03
configure.yash no-host 1,844 1,795 2,517 1,863 1,850 1.36 1.01
hello-world no-host 2 1 57 3 3 37.01 1.89

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,540 1,095 23,538 3,161 3,088 9.27 1.24
bin-true no-host 104,295 65,412 764,542 127,154 128,160 7.33 1.22
configure.cpython no-host 2,225,792 2,244,618 6,218,471 2,221,544 2,210,341 2.79 1.00
configure.ocaml no-host 409,908 391,123 643,260 413,325 412,900 1.57 1.01
configure.tcc no-host 6,562 5,472 23,980 6,939 6,902 3.65 1.06
configure.util-linux no-host 2,097,466 2,264,738 5,356,935 1,995,451 1,989,385 2.55 0.95
configure.yash no-host 256,580 244,675 387,023 257,334 256,319 1.51 1.00
hello-world no-host 151 85 3,957 341 336 26.21 2.26

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.7 9.2 8.7 5.10 2.06
bin-true no-host 2.9 1.4 18.4 8.1 7.7 6.38 2.82
configure.cpython no-host 27.5 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.3 19.3 19.3 19.4 0.99 0.99
configure.util-linux no-host 30.3 30.0 30.0 30.3 30.1 0.99 1.00
configure.yash no-host 24.2 24.5 24.5 24.2 24.4 1.01 1.00
hello-world no-host 2.8 1.6 18.4 6.2 5.9 6.68 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 824 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,553 1 63 14.9 27.5 1,771,758 49,616 28,523 85,415 878,122 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,691 3 64 21.2 30.3 2,702,524 53,777 65,702 108,691 1,290,647 1,303,186 32,239 41 131,404 1
configure.ocaml no-host 3,878 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 49 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,863 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 9.2 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 823 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 15,675 2 65 14.9 27.5 1,771,757 49,074 28,461 85,416 878,122 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,686 3 62 21.2 30.1 2,702,524 53,704 65,640 108,693 1,290,647 1,303,184 32,239 41 131,280 1
configure.ocaml no-host 3,875 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 49 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,850 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 15 5 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 471 403 71 22.7 osh-cpython
31 no-host abuild-print-help 22 14 8 9.2 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 685 508 207 2.9 bash
9 no-host bin-true 550 417 140 1.4 dash
17 no-host bin-true 2,307 1,493 1,077 18.4 osh-cpython
25 no-host bin-true 824 582 258 8.1 osh-native
33 no-host bin-true 823 575 262 7.7 osh-native-souffle
2 no-host configure.cpython 15,410 9,384 6,428 27.5 bash
10 no-host configure.cpython 15,498 9,313 6,608 27.4 dash
18 no-host configure.cpython 29,281 17,757 13,412 27.4 osh-cpython
26 no-host configure.cpython 15,553 9,247 6,550 27.5 osh-native
34 no-host configure.cpython 15,675 9,080 6,704 27.5 osh-native-souffle
4 no-host configure.ocaml 3,849 1,691 1,196 20.4 bash
12 no-host configure.ocaml 3,789 1,703 1,105 20.6 dash
20 no-host configure.ocaml 4,724 2,288 1,651 20.6 osh-cpython
28 no-host configure.ocaml 3,878 1,726 1,192 20.6 osh-native
36 no-host configure.ocaml 3,875 1,625 1,285 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 25 19.4 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 205 136 73 19.3 osh-cpython
29 no-host configure.tcc 49 37 13 19.3 osh-native
37 no-host configure.tcc 49 31 18 19.4 osh-native-souffle
3 no-host configure.util-linux 14,231 9,063 5,639 30.3 bash
11 no-host configure.util-linux 15,203 9,210 6,484 30.0 dash
19 no-host configure.util-linux 32,010 21,263 11,862 30.0 osh-cpython
27 no-host configure.util-linux 14,691 8,871 6,009 30.3 osh-native
35 no-host configure.util-linux 14,686 8,818 6,049 30.1 osh-native-souffle
6 no-host configure.yash 1,844 1,086 766 24.2 bash
14 no-host configure.yash 1,795 1,068 729 24.5 dash
22 no-host configure.yash 2,517 1,516 1,045 24.5 osh-cpython
30 no-host configure.yash 1,863 1,101 765 24.2 osh-native
38 no-host configure.yash 1,850 1,057 796 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 57 40 16 18.4 osh-cpython
24 no-host hello-world 3 0 3 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,540 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,538 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,161 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,088 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,295 0 0 0 8 0 1,990 109 bash
9 no-host bin-true 65,412 0 0 0 8 0 1,987 81 dash
17 no-host bin-true 764,542 0 0 0 8 0 1,997 179 osh-cpython
25 no-host bin-true 127,154 0 0 0 16 0 1,976 66 osh-native
33 no-host bin-true 128,160 0 0 0 16 0 1,987 135 osh-native-souffle
2 no-host configure.cpython 2,225,792 0 0 0 32,928 0 14,488 1,245 bash
10 no-host configure.cpython 2,244,618 0 0 0 32,992 0 14,636 1,009 dash
18 no-host configure.cpython 6,218,471 0 0 0 27,512 0 13,223 1,125 osh-cpython
26 no-host configure.cpython 2,221,544 0 0 0 27,520 0 13,250 971 osh-native
34 no-host configure.cpython 2,210,341 0 0 0 27,520 0 13,231 910 osh-native-souffle
4 no-host configure.ocaml 409,908 0 0 0 5,120 0 1,940 143 bash
12 no-host configure.ocaml 391,123 0 0 0 5,112 0 1,921 137 dash
20 no-host configure.ocaml 643,260 0 0 0 5,112 0 1,856 173 osh-cpython
28 no-host configure.ocaml 413,325 0 0 0 5,120 0 1,928 168 osh-native
36 no-host configure.ocaml 412,900 0 0 0 5,120 0 1,932 161 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,472 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,980 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,939 0 0 0 104 0 47 10 osh-native
37 no-host configure.tcc 6,902 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,097,466 0 0 0 42,408 0 18,510 972 bash
11 no-host configure.util-linux 2,264,738 0 0 0 42,592 0 17,422 1,218 dash
19 no-host configure.util-linux 5,356,935 6 0 0 39,136 0 16,913 1,286 osh-cpython
27 no-host configure.util-linux 1,995,451 0 0 0 39,128 0 16,990 972 osh-native
35 no-host configure.util-linux 1,989,385 1 0 0 39,136 0 16,958 910 osh-native-souffle
6 no-host configure.yash 256,580 0 0 0 4,120 0 872 71 bash
14 no-host configure.yash 244,675 0 0 0 3,720 0 865 86 dash
22 no-host configure.yash 387,023 0 0 0 3,728 0 852 104 osh-cpython
30 no-host configure.yash 257,334 0 0 0 3,736 0 845 127 osh-native
38 no-host configure.yash 256,319 0 0 0 3,736 0 851 76 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,957 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 341 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-3dfb0e84
dash dash-0ebcf347
osh-cpython osh-19ebbd4a
osh-native osh-fc9da292
osh-native-souffle osh-e8ac642a
host label host id
no-host no-host-556df3ee