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 15 9 20 22 18 1.33 1.19
bin-true no-host 617 441 798 792 652 1.29 1.06
configure.cpython no-host 14,017 13,882 13,432 13,248 12,827 0.96 0.92
configure.ocaml no-host 3,683 3,599 3,635 3,754 3,705 0.99 1.01
configure.tcc no-host 47 41 46 47 43 0.99 0.92
configure.util-linux no-host 12,663 13,287 12,351 12,470 12,031 0.98 0.95
configure.yash no-host 1,694 1,635 1,660 1,691 1,685 0.98 0.99
hello-world no-host 1 1 3 3 1 2.37 0.97

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,392 1,161 3,325 3,426 2,811 1.39 1.18
bin-true no-host 99,421 49,368 133,317 131,025 111,029 1.34 1.12
configure.cpython no-host 1,627,468 1,636,445 1,588,837 1,603,726 1,523,314 0.98 0.94
configure.ocaml no-host 298,753 281,198 306,108 307,193 300,686 1.02 1.01
configure.tcc no-host 5,223 4,191 5,623 5,679 5,136 1.08 0.98
configure.util-linux no-host 1,537,184 1,696,286 1,502,930 1,516,455 1,458,832 0.98 0.95
configure.yash no-host 173,275 159,580 177,192 176,613 173,099 1.02 1.00
hello-world no-host 150 86 390 400 181 2.60 1.21

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.8 3.9 9.6 9.8 6.4 1.97 1.32
bin-true no-host 3.3 1.7 8.5 9.0 5.2 2.60 1.60
configure.cpython no-host 34.5 34.5 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.7 28.5 28.8 1.00 1.00
configure.tcc no-host 26.2 26.1 26.4 26.0 26.1 1.01 1.00
configure.util-linux no-host 39.5 39.6 39.7 39.5 39.7 1.01 1.01
configure.yash no-host 33.3 33.4 33.4 33.2 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.4 7.1 3.4 2.04 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.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 798 1 2 3.5 8.5 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,432 1 67 14.8 34.5 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,351 3 64 21.6 39.7 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,635 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,660 1 2 2.7 33.4 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 792 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,248 2 64 14.8 34.5 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,470 3 65 21.6 39.5 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,754 1 2 2.8 28.5 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,691 1 2 2.7 33.2 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.8 117,212 65,788 41,998 4,969 54,592 57,651 277 3 83,996 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 15 8 7 4.8 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 20 9 12 9.6 osh-native
31 no-host abuild-print-help 22 11 12 9.8 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 617 307 347 3.3 bash
9 no-host bin-true 441 278 168 1.7 dash
17 no-host bin-true 798 311 506 8.5 osh-native
25 no-host bin-true 792 316 491 9.0 osh-nosouffle
33 no-host bin-true 652 321 347 5.2 osh-static
2 no-host configure.cpython 14,017 7,588 6,825 34.5 bash
10 no-host configure.cpython 13,882 7,657 6,628 34.5 dash
18 no-host configure.cpython 13,432 7,124 6,583 34.5 osh-native
26 no-host configure.cpython 13,248 6,979 6,551 34.5 osh-nosouffle
34 no-host configure.cpython 12,827 7,094 5,967 34.4 osh-static
4 no-host configure.ocaml 3,683 1,481 1,242 28.7 bash
12 no-host configure.ocaml 3,599 1,437 1,186 28.8 dash
20 no-host configure.ocaml 3,635 1,441 1,234 28.7 osh-native
28 no-host configure.ocaml 3,754 1,516 1,281 28.5 osh-nosouffle
36 no-host configure.ocaml 3,705 1,532 1,205 28.8 osh-static
5 no-host configure.tcc 47 24 24 26.2 bash
13 no-host configure.tcc 41 17 25 26.1 dash
21 no-host configure.tcc 46 27 20 26.4 osh-native
29 no-host configure.tcc 47 24 24 26.0 osh-nosouffle
37 no-host configure.tcc 43 25 18 26.1 osh-static
3 no-host configure.util-linux 12,663 6,620 6,493 39.5 bash
11 no-host configure.util-linux 13,287 6,526 7,255 39.6 dash
19 no-host configure.util-linux 12,351 6,026 6,423 39.7 osh-native
27 no-host configure.util-linux 12,470 6,054 6,647 39.5 osh-nosouffle
35 no-host configure.util-linux 12,031 6,203 6,049 39.7 osh-static
6 no-host configure.yash 1,694 966 736 33.3 bash
14 no-host configure.yash 1,635 934 704 33.4 dash
22 no-host configure.yash 1,660 943 720 33.4 osh-native
30 no-host configure.yash 1,691 922 772 33.2 osh-nosouffle
38 no-host configure.yash 1,685 972 716 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 0 3 7.1 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,392 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,325 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,426 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,811 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,421 0 0 0 8 0 1,997 66 bash
9 no-host bin-true 49,368 0 0 0 8 0 2,994 55 dash
17 no-host bin-true 133,317 0 0 0 16 0 2,002 64 osh-native
25 no-host bin-true 131,025 0 0 0 16 0 1,995 84 osh-nosouffle
33 no-host bin-true 111,029 0 0 0 8 0 1,999 85 osh-static
2 no-host configure.cpython 1,627,468 0 0 0 25,272 0 14,069 1,060 bash
10 no-host configure.cpython 1,636,445 0 0 0 25,272 0 14,099 1,017 dash
18 no-host configure.cpython 1,588,837 0 0 0 25,280 0 11,293 843 osh-native
26 no-host configure.cpython 1,603,726 0 0 0 25,280 0 11,320 838 osh-nosouffle
34 no-host configure.cpython 1,523,314 0 0 0 25,272 0 11,302 869 osh-static
4 no-host configure.ocaml 298,753 0 0 0 4,432 0 2,020 190 bash
12 no-host configure.ocaml 281,198 0 0 0 4,432 0 2,110 174 dash
20 no-host configure.ocaml 306,108 0 0 0 4,440 0 1,998 227 osh-native
28 no-host configure.ocaml 307,193 0 0 0 4,440 0 1,999 220 osh-nosouffle
36 no-host configure.ocaml 300,686 0 0 0 4,432 0 2,002 217 osh-static
5 no-host configure.tcc 5,223 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,191 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,623 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,679 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,136 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,537,184 0 0 232 35,944 0 18,927 1,081 bash
11 no-host configure.util-linux 1,696,286 0 0 0 35,936 0 17,082 1,275 dash
19 no-host configure.util-linux 1,502,930 2 0 0 35,952 0 16,140 983 osh-native
27 no-host configure.util-linux 1,516,455 0 0 0 35,944 0 16,182 908 osh-nosouffle
35 no-host configure.util-linux 1,458,832 0 0 0 35,936 0 16,160 908 osh-static
6 no-host configure.yash 173,275 0 0 0 3,616 0 878 97 bash
14 no-host configure.yash 159,580 0 0 0 3,624 0 1,002 90 dash
22 no-host configure.yash 177,192 0 0 0 3,632 0 860 106 osh-native
30 no-host configure.yash 176,613 0 0 0 3,624 0 857 106 osh-nosouffle
38 no-host configure.yash 173,099 0 0 0 3,616 0 856 98 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 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-9259e10a
osh-nosouffle osh-bbc42536
osh-static osh-static-cc9564a9
host label host id
no-host no-host-9c670df1