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 470 23 21 24.72 1.21
bin-true no-host 674 543 2,295 813 801 3.40 1.21
configure.cpython no-host 15,179 15,215 28,882 15,405 15,502 1.90 1.01
configure.ocaml no-host 3,798 3,816 4,648 3,823 3,840 1.22 1.01
configure.tcc no-host 48 43 202 49 48 4.25 1.02
configure.util-linux no-host 14,083 14,919 31,483 14,470 14,366 2.24 1.03
configure.yash no-host 1,824 1,825 2,463 1,826 1,832 1.35 1.00
hello-world no-host 1 1 58 3 3 39.98 1.95

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,545 1,101 23,548 3,195 3,141 9.25 1.26
bin-true no-host 106,352 67,453 765,747 126,251 123,221 7.20 1.19
configure.cpython no-host 2,224,042 2,248,461 6,196,532 2,220,796 2,220,406 2.79 1.00
configure.ocaml no-host 411,087 390,896 643,761 413,172 412,207 1.57 1.01
configure.tcc no-host 6,552 5,482 23,996 6,958 6,914 3.66 1.06
configure.util-linux no-host 2,095,866 2,264,657 5,345,706 1,999,373 1,992,587 2.55 0.95
configure.yash no-host 255,992 244,554 387,096 258,287 257,471 1.51 1.01
hello-world no-host 154 83 3,956 343 337 25.69 2.23

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.4 22.7 8.9 8.8 5.25 2.06
bin-true no-host 3.0 1.4 18.5 8.3 7.5 6.14 2.74
configure.cpython no-host 27.4 27.4 27.5 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.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.4 30.3 30.3 30.0 30.3 1.00 0.99
configure.yash no-host 24.4 24.5 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.9 1.4 18.3 6.3 6.0 6.33 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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.3 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,405 1 62 14.9 27.4 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,470 3 60 21.2 30.0 2,702,524 45,811 65,722 108,691 1,290,647 1,303,186 32,239 41 131,444 1
configure.ocaml no-host 3,823 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.4 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,826 1 2 2.5 24.4 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 23 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 6.0 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 801 1 2 2.6 7.5 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 15,502 1 63 14.9 27.4 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,366 3 60 21.2 30.3 2,702,524 53,704 65,660 108,693 1,290,647 1,303,184 32,239 41 131,320 1
configure.ocaml no-host 3,840 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 48 0 0 1.3 19.3 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,832 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.8 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 18 2 4.3 bash
15 no-host abuild-print-help 10 5 6 3.4 dash
23 no-host abuild-print-help 470 414 59 22.7 osh-cpython
31 no-host abuild-print-help 23 20 3 8.9 osh-native
39 no-host abuild-print-help 21 12 10 8.8 osh-native-souffle
1 no-host bin-true 674 501 205 3.0 bash
9 no-host bin-true 543 415 138 1.4 dash
17 no-host bin-true 2,295 1,474 1,084 18.5 osh-cpython
25 no-host bin-true 813 568 258 8.3 osh-native
33 no-host bin-true 801 558 258 7.5 osh-native-souffle
2 no-host configure.cpython 15,179 9,296 6,280 27.4 bash
10 no-host configure.cpython 15,215 9,240 6,385 27.4 dash
18 no-host configure.cpython 28,882 17,711 13,037 27.5 osh-cpython
26 no-host configure.cpython 15,405 9,138 6,537 27.4 osh-native
34 no-host configure.cpython 15,502 9,107 6,470 27.4 osh-native-souffle
4 no-host configure.ocaml 3,798 1,582 1,254 20.6 bash
12 no-host configure.ocaml 3,816 1,605 1,228 20.6 dash
20 no-host configure.ocaml 4,648 2,376 1,481 20.6 osh-cpython
28 no-host configure.ocaml 3,823 1,692 1,168 20.6 osh-native
36 no-host configure.ocaml 3,840 1,559 1,316 20.6 osh-native-souffle
5 no-host configure.tcc 48 25 23 19.3 bash
13 no-host configure.tcc 43 34 8 19.3 dash
21 no-host configure.tcc 202 158 48 19.3 osh-cpython
29 no-host configure.tcc 49 36 13 19.4 osh-native
37 no-host configure.tcc 48 25 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,083 8,938 5,599 30.4 bash
11 no-host configure.util-linux 14,919 9,128 6,279 30.3 dash
19 no-host configure.util-linux 31,483 21,088 11,477 30.3 osh-cpython
27 no-host configure.util-linux 14,470 8,685 5,982 30.0 osh-native
35 no-host configure.util-linux 14,366 8,654 5,907 30.3 osh-native-souffle
6 no-host configure.yash 1,824 1,100 733 24.4 bash
14 no-host configure.yash 1,825 1,076 752 24.5 dash
22 no-host configure.yash 2,463 1,524 979 24.2 osh-cpython
30 no-host configure.yash 1,826 1,055 776 24.4 osh-native
38 no-host configure.yash 1,832 1,011 824 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.4 dash
16 no-host hello-world 58 33 24 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 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,545 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,548 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,141 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,352 0 0 0 8 0 1,985 85 bash
9 no-host bin-true 67,453 0 0 0 8 0 1,991 43 dash
17 no-host bin-true 765,747 0 0 0 8 0 1,996 171 osh-cpython
25 no-host bin-true 126,251 0 0 0 16 0 1,992 217 osh-native
33 no-host bin-true 123,221 0 0 0 16 0 1,981 53 osh-native-souffle
2 no-host configure.cpython 2,224,042 0 0 0 32,928 0 14,528 1,073 bash
10 no-host configure.cpython 2,248,461 1 0 0 32,992 0 14,585 1,197 dash
18 no-host configure.cpython 6,196,532 1 0 0 27,512 0 13,279 1,102 osh-cpython
26 no-host configure.cpython 2,220,796 0 0 0 27,520 0 13,243 990 osh-native
34 no-host configure.cpython 2,220,406 0 0 0 27,520 0 13,271 1,074 osh-native-souffle
4 no-host configure.ocaml 411,087 0 0 0 5,120 0 1,946 163 bash
12 no-host configure.ocaml 390,896 0 0 0 5,112 0 1,886 268 dash
20 no-host configure.ocaml 643,761 0 0 0 5,112 0 1,861 207 osh-cpython
28 no-host configure.ocaml 413,172 0 0 0 5,120 0 1,921 173 osh-native
36 no-host configure.ocaml 412,207 0 0 0 5,120 0 1,926 158 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 48 5 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,996 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,958 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,914 0 0 0 104 0 46 2 osh-native-souffle
3 no-host configure.util-linux 2,095,866 1 0 0 42,408 0 18,661 1,084 bash
11 no-host configure.util-linux 2,264,657 1 0 0 42,592 0 17,432 1,049 dash
19 no-host configure.util-linux 5,345,706 8 0 0 39,112 0 17,009 1,359 osh-cpython
27 no-host configure.util-linux 1,999,373 0 0 0 39,120 0 16,953 938 osh-native
35 no-host configure.util-linux 1,992,587 0 0 0 39,128 0 16,964 1,050 osh-native-souffle
6 no-host configure.yash 255,992 0 0 0 4,120 0 870 80 bash
14 no-host configure.yash 244,554 0 0 0 3,720 0 865 80 dash
22 no-host configure.yash 387,096 0 0 0 3,728 0 853 109 osh-cpython
30 no-host configure.yash 258,287 0 0 0 3,736 0 847 73 osh-native
38 no-host configure.yash 257,471 0 0 0 3,736 0 849 90 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,956 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-637ea94f
dash dash-0ebcf347
osh-cpython osh-bae32a59
osh-native osh-1503e82f
osh-native-souffle osh-e45ec4a3
host label host id
no-host no-host-556df3ee