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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 20 21 18 1.29 1.15
bin-true no-host 616 440 793 802 653 1.29 1.06
configure.cpython no-host 13,604 13,737 13,273 13,325 12,810 0.98 0.94
configure.ocaml no-host 3,626 3,566 3,683 3,667 3,635 1.02 1.00
configure.tcc no-host 45 41 46 46 43 1.03 0.95
configure.util-linux no-host 12,415 13,187 12,339 12,425 12,093 0.99 0.97
configure.yash no-host 1,669 1,615 1,672 1,677 1,652 1.00 0.99
hello-world no-host 1 1 3 3 1 2.47 1.08

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,369 1,154 3,319 3,433 2,858 1.40 1.21
bin-true no-host 102,507 49,356 130,009 133,298 112,678 1.27 1.10
configure.cpython no-host 1,621,068 1,640,974 1,588,881 1,588,112 1,525,071 0.98 0.94
configure.ocaml no-host 299,308 280,654 306,383 307,026 300,164 1.02 1.00
configure.tcc no-host 5,213 4,228 5,630 5,673 5,135 1.08 0.99
configure.util-linux no-host 1,535,625 1,699,767 1,495,564 1,518,699 1,452,263 0.97 0.95
configure.yash no-host 173,570 159,583 176,311 177,199 173,073 1.02 1.00
hello-world no-host 153 82 394 399 181 2.58 1.18

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.7 3.9 9.6 10.0 6.4 2.03 1.36
bin-true no-host 3.3 1.4 8.8 8.9 5.2 2.68 1.60
configure.cpython no-host 34.7 34.5 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.8 28.6 28.5 28.7 0.99 1.00
configure.tcc no-host 26.1 26.3 26.1 26.2 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.5 33.1 33.4 33.1 33.3 1.00 0.99
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 1.08

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.3 6.6 3,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 793 1 2 3.5 8.8 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,273 1 66 14.8 34.5 1,750,784 35,383 28,940 93,077 869,742 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,339 3 67 21.6 39.6 2,705,320 37,455 66,328 119,745 1,291,837 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,683 1 2 2.8 28.6 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,672 1 2 2.7 33.4 143,452 11,458 6,614 7,164 70,516 65,772 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 6.9 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 802 1 2 3.5 8.9 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,325 1 65 14.8 34.5 1,750,783 35,388 28,945 93,076 869,742 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,425 3 63 21.6 39.7 2,705,320 37,461 66,334 119,745 1,291,837 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,667 1 2 2.8 28.5 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,677 1 2 2.7 33.1 143,452 11,462 6,618 7,164 70,516 65,772 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 16 8 9 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 12 9 9.6 osh-native
31 no-host abuild-print-help 21 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 616 299 354 3.3 bash
9 no-host bin-true 440 275 171 1.4 dash
17 no-host bin-true 793 306 502 8.8 osh-native
25 no-host bin-true 802 311 508 8.9 osh-nosouffle
33 no-host bin-true 653 310 360 5.2 osh-static
2 no-host configure.cpython 13,604 7,461 6,522 34.7 bash
10 no-host configure.cpython 13,737 7,538 6,598 34.5 dash
18 no-host configure.cpython 13,273 6,995 6,549 34.5 osh-native
26 no-host configure.cpython 13,325 7,084 6,520 34.5 osh-nosouffle
34 no-host configure.cpython 12,810 7,020 6,023 34.5 osh-static
4 no-host configure.ocaml 3,626 1,466 1,200 28.8 bash
12 no-host configure.ocaml 3,566 1,462 1,127 28.8 dash
20 no-host configure.ocaml 3,683 1,481 1,245 28.6 osh-native
28 no-host configure.ocaml 3,667 1,480 1,227 28.5 osh-nosouffle
36 no-host configure.ocaml 3,635 1,469 1,196 28.7 osh-static
5 no-host configure.tcc 45 22 24 26.1 bash
13 no-host configure.tcc 41 24 17 26.3 dash
21 no-host configure.tcc 46 21 26 26.1 osh-native
29 no-host configure.tcc 46 22 25 26.2 osh-nosouffle
37 no-host configure.tcc 43 17 26 26.1 osh-static
3 no-host configure.util-linux 12,415 6,546 6,332 39.6 bash
11 no-host configure.util-linux 13,187 6,470 7,196 39.6 dash
19 no-host configure.util-linux 12,339 6,179 6,380 39.6 osh-native
27 no-host configure.util-linux 12,425 6,160 6,488 39.7 osh-nosouffle
35 no-host configure.util-linux 12,093 6,125 6,184 39.6 osh-static
6 no-host configure.yash 1,669 942 736 33.5 bash
14 no-host configure.yash 1,615 935 683 33.1 dash
22 no-host configure.yash 1,672 935 741 33.4 osh-native
30 no-host configure.yash 1,677 952 728 33.1 osh-nosouffle
38 no-host configure.yash 1,652 949 707 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 3.4 osh-static

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,369 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,319 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,433 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,858 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 102,507 0 0 0 8 0 1,997 72 bash
9 no-host bin-true 49,356 0 0 0 8 0 2,998 48 dash
17 no-host bin-true 130,009 0 0 0 16 0 2,000 83 osh-native
25 no-host bin-true 133,298 0 0 0 16 0 2,000 77 osh-nosouffle
33 no-host bin-true 112,678 0 0 0 8 0 2,000 74 osh-static
2 no-host configure.cpython 1,621,068 0 0 0 25,272 0 14,071 1,029 bash
10 no-host configure.cpython 1,640,974 0 0 0 25,272 0 14,145 1,019 dash
18 no-host configure.cpython 1,588,881 0 0 0 25,280 0 11,281 874 osh-native
26 no-host configure.cpython 1,588,112 0 0 0 25,280 0 11,311 857 osh-nosouffle
34 no-host configure.cpython 1,525,071 0 0 0 25,272 0 11,305 830 osh-static
4 no-host configure.ocaml 299,308 0 0 0 4,432 0 2,016 187 bash
12 no-host configure.ocaml 280,654 0 0 0 4,432 0 2,108 193 dash
20 no-host configure.ocaml 306,383 0 0 0 4,440 0 1,991 198 osh-native
28 no-host configure.ocaml 307,026 0 0 0 4,440 0 2,000 198 osh-nosouffle
36 no-host configure.ocaml 300,164 0 0 0 4,432 0 2,005 237 osh-static
5 no-host configure.tcc 5,213 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,228 0 0 0 88 0 51 2 dash
21 no-host configure.tcc 5,630 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,673 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,135 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,535,625 0 0 0 35,944 0 19,026 1,019 bash
11 no-host configure.util-linux 1,699,767 0 0 336 35,936 0 17,108 1,139 dash
19 no-host configure.util-linux 1,495,564 0 0 0 35,952 0 16,224 957 osh-native
27 no-host configure.util-linux 1,518,699 0 0 0 35,944 0 16,179 950 osh-nosouffle
35 no-host configure.util-linux 1,452,263 4 0 0 35,936 0 16,179 902 osh-static
6 no-host configure.yash 173,570 0 0 0 3,616 0 878 99 bash
14 no-host configure.yash 159,583 0 0 0 3,624 0 1,000 92 dash
22 no-host configure.yash 176,311 0 0 0 3,624 0 858 98 osh-native
30 no-host configure.yash 177,199 0 0 0 3,624 0 858 110 osh-nosouffle
38 no-host configure.yash 173,073 0 0 0 3,616 0 858 97 osh-static
0 no-host hello-world 153 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 394 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 181 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-56ebced0
osh-nosouffle osh-703a81fe
osh-static osh-static-7a48e525
host label host id
no-host no-host-9c670df1