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 20 10 466 23 21 23.53 1.14
bin-true no-host 661 550 2,300 816 812 3.48 1.23
configure.cpython no-host 15,361 15,352 29,661 15,504 15,650 1.93 1.01
configure.ocaml no-host 3,975 3,763 4,714 3,880 3,854 1.19 0.98
configure.tcc no-host 50 42 207 48 48 4.16 0.97
configure.util-linux no-host 14,260 15,027 31,841 14,629 14,602 2.23 1.03
configure.yash no-host 1,897 1,781 2,519 1,859 1,845 1.33 0.98
hello-world no-host 1 1 56 3 3 37.78 1.97

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,532 1,092 23,566 3,198 3,141 9.31 1.26
bin-true no-host 103,383 66,417 759,991 125,166 125,271 7.35 1.21
configure.cpython no-host 2,226,860 2,246,059 6,198,884 2,220,747 2,213,025 2.78 1.00
configure.ocaml no-host 410,524 391,039 644,222 413,694 412,900 1.57 1.01
configure.tcc no-host 6,552 5,462 23,914 6,921 6,904 3.65 1.06
configure.util-linux no-host 2,097,675 2,261,876 5,381,271 2,003,038 1,989,202 2.57 0.95
configure.yash no-host 256,622 245,042 386,987 258,116 257,932 1.51 1.01
hello-world no-host 155 82 3,950 349 338 25.48 2.25

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 9.0 8.8 5.25 2.09
bin-true no-host 3.0 1.4 18.3 8.0 7.6 6.06 2.65
configure.cpython no-host 27.5 27.4 27.4 27.4 27.3 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.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.0 30.0 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.9 1.4 18.3 6.3 5.9 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,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 816 1 2 2.6 8.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,504 1 65 14.9 27.4 1,771,800 49,612 28,519 85,427 878,134 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,629 3 62 21.2 30.0 2,702,546 45,807 65,718 108,699 1,290,651 1,303,196 32,241 41 131,436 1
configure.ocaml no-host 3,880 1 2 2.6 20.6 150,087 11,119 5,214 7,508 70,972 71,607 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,593 30,593 0 1,518 14,644 14,431 271 0 50,000 0
configure.yash no-host 1,859 1 2 2.5 24.2 139,419 8,031 6,693 5,989 67,945 65,485 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,650 1 62 14.9 27.3 1,771,799 49,070 28,457 85,428 878,134 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,602 3 62 21.2 30.3 2,702,546 53,700 65,636 108,701 1,290,651 1,303,194 32,241 41 131,272 1
configure.ocaml no-host 3,854 1 2 2.6 20.6 150,087 11,057 5,152 7,510 70,972 71,605 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,593 30,593 0 1,520 14,644 14,429 271 0 50,000 0
configure.yash no-host 1,845 1 2 2.5 24.4 139,419 7,969 6,631 5,991 67,945 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 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 20 13 7 4.3 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 466 410 59 22.7 osh-cpython
31 no-host abuild-print-help 23 15 8 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.8 osh-native-souffle
1 no-host bin-true 661 497 196 3.0 bash
9 no-host bin-true 550 419 140 1.4 dash
17 no-host bin-true 2,300 1,526 1,040 18.3 osh-cpython
25 no-host bin-true 816 588 243 8.0 osh-native
33 no-host bin-true 812 571 254 7.6 osh-native-souffle
2 no-host configure.cpython 15,361 9,186 6,574 27.5 bash
10 no-host configure.cpython 15,352 9,365 6,392 27.4 dash
18 no-host configure.cpython 29,661 17,996 13,592 27.4 osh-cpython
26 no-host configure.cpython 15,504 9,046 6,733 27.4 osh-native
34 no-host configure.cpython 15,650 9,175 6,582 27.3 osh-native-souffle
4 no-host configure.ocaml 3,975 1,726 1,271 20.6 bash
12 no-host configure.ocaml 3,763 1,614 1,170 20.6 dash
20 no-host configure.ocaml 4,714 2,216 1,711 20.6 osh-cpython
28 no-host configure.ocaml 3,880 1,750 1,169 20.6 osh-native
36 no-host configure.ocaml 3,854 1,662 1,229 20.6 osh-native-souffle
5 no-host configure.tcc 50 35 15 19.4 bash
13 no-host configure.tcc 42 22 20 19.4 dash
21 no-host configure.tcc 207 151 60 19.4 osh-cpython
29 no-host configure.tcc 48 31 18 19.3 osh-native
37 no-host configure.tcc 48 30 18 19.3 osh-native-souffle
3 no-host configure.util-linux 14,260 8,938 5,806 30.1 bash
11 no-host configure.util-linux 15,027 9,103 6,410 30.1 dash
19 no-host configure.util-linux 31,841 21,056 11,877 30.0 osh-cpython
27 no-host configure.util-linux 14,629 8,798 6,032 30.0 osh-native
35 no-host configure.util-linux 14,602 8,789 6,007 30.3 osh-native-souffle
6 no-host configure.yash 1,897 1,096 807 24.4 bash
14 no-host configure.yash 1,781 985 798 24.2 dash
22 no-host configure.yash 2,519 1,589 972 24.2 osh-cpython
30 no-host configure.yash 1,859 1,076 787 24.2 osh-native
38 no-host configure.yash 1,845 1,085 764 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 35 22 18.3 osh-cpython
24 no-host hello-world 3 0 3 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,532 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,566 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 39 1 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 103,383 0 0 0 8 0 1,982 39 bash
9 no-host bin-true 66,417 0 0 0 8 0 1,980 142 dash
17 no-host bin-true 759,991 0 0 0 8 0 2,000 198 osh-cpython
25 no-host bin-true 125,166 0 0 0 16 0 1,992 135 osh-native
33 no-host bin-true 125,271 0 0 0 16 0 1,993 94 osh-native-souffle
2 no-host configure.cpython 2,226,860 0 0 0 32,928 0 14,530 1,272 bash
10 no-host configure.cpython 2,246,059 0 0 0 32,992 0 14,592 970 dash
18 no-host configure.cpython 6,198,884 0 0 0 27,512 0 13,284 1,023 osh-cpython
26 no-host configure.cpython 2,220,747 0 0 0 27,520 0 13,272 952 osh-native
34 no-host configure.cpython 2,213,025 1 0 0 27,520 0 12,967 1,014 osh-native-souffle
4 no-host configure.ocaml 410,524 0 0 0 5,120 0 1,967 152 bash
12 no-host configure.ocaml 391,039 0 0 0 5,112 0 1,944 148 dash
20 no-host configure.ocaml 644,222 0 0 0 5,112 0 1,853 167 osh-cpython
28 no-host configure.ocaml 413,694 0 0 0 5,120 0 1,927 177 osh-native
36 no-host configure.ocaml 412,900 0 0 0 5,120 0 1,928 160 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,462 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,914 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,921 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,097,675 2 0 0 42,400 0 18,542 1,005 bash
11 no-host configure.util-linux 2,261,876 0 0 0 42,584 0 17,466 1,250 dash
19 no-host configure.util-linux 5,381,271 1 0 0 39,112 0 16,965 1,237 osh-cpython
27 no-host configure.util-linux 2,003,038 0 0 0 39,128 0 16,974 988 osh-native
35 no-host configure.util-linux 1,989,202 3 0 0 39,136 0 16,995 928 osh-native-souffle
6 no-host configure.yash 256,622 0 0 0 4,120 0 872 86 bash
14 no-host configure.yash 245,042 0 0 0 3,720 0 864 105 dash
22 no-host configure.yash 386,987 0 0 0 3,728 0 855 114 osh-cpython
30 no-host configure.yash 258,116 0 0 0 3,736 0 848 84 osh-native
38 no-host configure.yash 257,932 0 0 0 3,736 0 845 64 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,950 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 349 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-6b8c340a
dash dash-0ebcf347
osh-cpython osh-5cbf6976
osh-native osh-7e74dbb6
osh-native-souffle osh-2d7a5b49
host label host id
no-host no-host-556df3ee