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.29 1.17
bin-true no-host 609 436 794 802 645 1.30 1.06
configure.cpython no-host 13,580 13,636 13,246 13,332 12,768 0.98 0.94
configure.ocaml no-host 3,619 3,552 3,655 3,672 3,633 1.01 1.00
configure.tcc no-host 45 40 46 47 43 1.02 0.94
configure.util-linux no-host 12,312 13,053 12,231 12,357 11,956 0.99 0.97
configure.yash no-host 1,683 1,605 1,679 1,697 1,681 1.00 1.00
hello-world no-host 1 1 3 3 1 2.41 1.06

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,390 1,159 3,335 3,415 2,816 1.40 1.18
bin-true no-host 100,447 49,404 133,363 134,976 111,026 1.33 1.11
configure.cpython no-host 1,625,409 1,638,877 1,597,295 1,610,533 1,523,147 0.98 0.94
configure.ocaml no-host 298,882 280,510 304,812 306,257 300,987 1.02 1.01
configure.tcc no-host 5,204 4,208 5,587 5,674 5,140 1.07 0.99
configure.util-linux no-host 1,536,387 1,702,962 1,493,930 1,523,248 1,457,296 0.97 0.95
configure.yash no-host 173,256 159,545 176,998 177,206 173,068 1.02 1.00
hello-world no-host 151 82 388 394 181 2.57 1.20

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.8 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.3 1.4 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.4 34.7 34.7 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.8 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.2 26.1 26.0 0.99 0.99
configure.util-linux no-host 39.7 39.6 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.3 33.3 33.3 1.00 1.00
hello-world no-host 3.1 1.4 6.4 6.8 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 794 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,246 1 62 14.8 34.7 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,231 3 62 21.6 39.6 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,655 1 2 2.8 28.6 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.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,679 1 2 2.7 33.3 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 6.8 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 802 1 2 3.5 9.2 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,332 1 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,357 3 63 21.6 39.7 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,672 1 2 2.8 28.7 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.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,697 1 2 2.7 33.3 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 10.0 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 9 7 4.8 bash
15 no-host abuild-print-help 9 2 7 3.8 dash
23 no-host abuild-print-help 20 12 8 9.6 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 6 6.4 osh-static
1 no-host bin-true 609 306 340 3.3 bash
9 no-host bin-true 436 280 161 1.4 dash
17 no-host bin-true 794 306 504 8.8 osh-native
25 no-host bin-true 802 300 520 9.2 osh-nosouffle
33 no-host bin-true 645 325 337 5.2 osh-static
2 no-host configure.cpython 13,580 7,418 6,539 34.4 bash
10 no-host configure.cpython 13,636 7,571 6,461 34.7 dash
18 no-host configure.cpython 13,246 7,112 6,410 34.7 osh-native
26 no-host configure.cpython 13,332 7,120 6,492 34.5 osh-nosouffle
34 no-host configure.cpython 12,768 7,053 5,950 34.5 osh-static
4 no-host configure.ocaml 3,619 1,471 1,188 28.7 bash
12 no-host configure.ocaml 3,552 1,465 1,110 28.8 dash
20 no-host configure.ocaml 3,655 1,432 1,261 28.6 osh-native
28 no-host configure.ocaml 3,672 1,435 1,277 28.7 osh-nosouffle
36 no-host configure.ocaml 3,633 1,492 1,173 28.7 osh-static
5 no-host configure.tcc 45 25 21 26.3 bash
13 no-host configure.tcc 40 24 17 26.3 dash
21 no-host configure.tcc 46 25 21 26.2 osh-native
29 no-host configure.tcc 47 22 25 26.1 osh-nosouffle
37 no-host configure.tcc 43 21 22 26.0 osh-static
3 no-host configure.util-linux 12,312 6,466 6,295 39.7 bash
11 no-host configure.util-linux 13,053 6,459 7,072 39.6 dash
19 no-host configure.util-linux 12,231 6,069 6,378 39.6 osh-native
27 no-host configure.util-linux 12,357 6,111 6,464 39.7 osh-nosouffle
35 no-host configure.util-linux 11,956 6,136 6,031 39.6 osh-static
6 no-host configure.yash 1,683 946 746 33.4 bash
14 no-host configure.yash 1,605 893 714 33.4 dash
22 no-host configure.yash 1,679 977 705 33.3 osh-native
30 no-host configure.yash 1,697 959 742 33.3 osh-nosouffle
38 no-host configure.yash 1,681 965 718 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 0 3 6.4 osh-native
24 no-host hello-world 3 2 1 6.8 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,390 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,159 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,335 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,415 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,816 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 100,447 0 0 0 8 0 1,994 51 bash
9 no-host bin-true 49,404 0 0 0 8 0 2,996 53 dash
17 no-host bin-true 133,363 0 0 0 16 0 1,998 77 osh-native
25 no-host bin-true 134,976 0 0 0 16 0 2,000 71 osh-nosouffle
33 no-host bin-true 111,026 0 0 0 8 0 2,000 66 osh-static
2 no-host configure.cpython 1,625,409 1 0 0 25,272 0 14,087 1,026 bash
10 no-host configure.cpython 1,638,877 0 0 0 25,272 0 14,116 1,002 dash
18 no-host configure.cpython 1,597,295 0 0 0 25,280 0 11,295 838 osh-native
26 no-host configure.cpython 1,610,533 0 0 0 25,280 0 11,331 826 osh-nosouffle
34 no-host configure.cpython 1,523,147 0 0 0 25,272 0 11,305 868 osh-static
4 no-host configure.ocaml 298,882 0 0 0 4,432 0 2,022 186 bash
12 no-host configure.ocaml 280,510 0 0 0 4,432 0 2,097 179 dash
20 no-host configure.ocaml 304,812 0 0 0 4,440 0 2,002 224 osh-native
28 no-host configure.ocaml 306,257 0 0 0 4,440 0 1,992 198 osh-nosouffle
36 no-host configure.ocaml 300,987 0 0 0 4,432 0 1,998 216 osh-static
5 no-host configure.tcc 5,204 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,587 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,674 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,140 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,387 0 0 232 35,944 0 18,993 1,063 bash
11 no-host configure.util-linux 1,702,962 0 0 0 35,936 0 17,029 1,193 dash
19 no-host configure.util-linux 1,493,930 1 0 0 35,952 0 16,213 970 osh-native
27 no-host configure.util-linux 1,523,248 0 0 0 35,952 0 16,174 933 osh-nosouffle
35 no-host configure.util-linux 1,457,296 1 0 0 35,936 0 16,129 961 osh-static
6 no-host configure.yash 173,256 0 0 0 3,616 0 879 105 bash
14 no-host configure.yash 159,545 0 0 0 3,616 0 1,003 98 dash
22 no-host configure.yash 176,998 0 0 0 3,624 0 855 145 osh-native
30 no-host configure.yash 177,206 0 0 0 3,624 0 859 94 osh-nosouffle
38 no-host configure.yash 173,068 0 0 0 3,624 0 858 99 osh-static
0 no-host hello-world 151 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 388 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 394 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-d5346c60
osh-nosouffle osh-cca552af
osh-static osh-static-865d1344
host label host id
no-host no-host-9c670df1