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.31 1.16
bin-true no-host 619 442 807 810 653 1.30 1.05
configure.cpython no-host 13,577 13,598 13,253 13,218 12,711 0.98 0.94
configure.ocaml no-host 3,611 3,560 3,650 3,648 3,609 1.01 1.00
configure.tcc no-host 46 41 46 47 42 1.00 0.93
configure.util-linux no-host 12,331 13,058 12,248 12,312 11,893 0.99 0.96
configure.yash no-host 1,659 1,617 1,662 1,657 1,640 1.00 0.99
hello-world no-host 1 1 3 3 1 2.43 1.02

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,400 1,170 3,296 3,391 2,803 1.37 1.17
bin-true no-host 102,438 49,386 134,328 135,948 110,993 1.31 1.08
configure.cpython no-host 1,633,220 1,641,874 1,599,020 1,596,481 1,522,664 0.98 0.93
configure.ocaml no-host 299,423 280,618 306,036 305,368 300,892 1.02 1.00
configure.tcc no-host 5,229 4,202 5,604 5,671 5,150 1.07 0.98
configure.util-linux no-host 1,543,258 1,701,419 1,497,575 1,513,587 1,457,442 0.97 0.94
configure.yash no-host 173,349 159,511 176,560 176,977 173,046 1.02 1.00
hello-world no-host 154 82 390 395 182 2.53 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.8 9.4 10.0 6.4 2.00 1.36
bin-true no-host 3.3 1.4 8.8 9.2 5.4 2.68 1.64
configure.cpython no-host 34.5 34.4 34.3 34.6 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.6 28.6 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.3 26.1 26.0 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.6 39.5 1.00 1.00
configure.yash no-host 33.1 33.3 33.4 33.3 33.2 1.01 1.00
hello-world no-host 3.1 1.4 6.6 6.8 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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 807 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,253 2 66 14.8 34.3 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,248 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,650 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.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,662 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.4 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 810 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,218 1 65 14.8 34.6 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,312 3 64 21.6 39.6 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,648 1 2 2.8 28.6 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,657 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 21 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 16 6 10 4.7 bash
15 no-host abuild-print-help 9 2 7 3.8 dash
23 no-host abuild-print-help 20 10 11 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 619 306 351 3.3 bash
9 no-host bin-true 442 275 173 1.4 dash
17 no-host bin-true 807 296 527 8.8 osh-native
25 no-host bin-true 810 314 512 9.2 osh-nosouffle
33 no-host bin-true 653 320 349 5.4 osh-static
2 no-host configure.cpython 13,577 7,414 6,552 34.5 bash
10 no-host configure.cpython 13,598 7,402 6,601 34.4 dash
18 no-host configure.cpython 13,253 7,033 6,503 34.3 osh-native
26 no-host configure.cpython 13,218 6,989 6,512 34.6 osh-nosouffle
34 no-host configure.cpython 12,711 7,023 5,927 34.5 osh-static
4 no-host configure.ocaml 3,611 1,477 1,176 28.7 bash
12 no-host configure.ocaml 3,560 1,426 1,159 28.6 dash
20 no-host configure.ocaml 3,650 1,456 1,234 28.6 osh-native
28 no-host configure.ocaml 3,648 1,435 1,251 28.6 osh-nosouffle
36 no-host configure.ocaml 3,609 1,479 1,161 28.7 osh-static
5 no-host configure.tcc 46 19 28 26.2 bash
13 no-host configure.tcc 41 20 21 26.3 dash
21 no-host configure.tcc 46 24 23 26.1 osh-native
29 no-host configure.tcc 47 26 22 26.0 osh-nosouffle
37 no-host configure.tcc 42 19 23 26.2 osh-static
3 no-host configure.util-linux 12,331 6,388 6,413 39.6 bash
11 no-host configure.util-linux 13,058 6,414 7,138 39.7 dash
19 no-host configure.util-linux 12,248 6,136 6,340 39.7 osh-native
27 no-host configure.util-linux 12,312 6,101 6,439 39.6 osh-nosouffle
35 no-host configure.util-linux 11,893 6,063 6,051 39.5 osh-static
6 no-host configure.yash 1,659 948 719 33.1 bash
14 no-host configure.yash 1,617 930 689 33.3 dash
22 no-host configure.yash 1,662 926 739 33.4 osh-native
30 no-host configure.yash 1,657 924 737 33.3 osh-nosouffle
38 no-host configure.yash 1,640 902 741 33.2 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 2 6.6 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,400 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,170 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,296 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,391 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,803 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,438 0 0 0 8 0 1,995 56 bash
9 no-host bin-true 49,386 0 0 0 8 0 2,995 62 dash
17 no-host bin-true 134,328 0 0 0 16 0 1,998 86 osh-native
25 no-host bin-true 135,948 0 0 0 16 0 1,999 78 osh-nosouffle
33 no-host bin-true 110,993 0 0 0 8 0 1,999 90 osh-static
2 no-host configure.cpython 1,633,220 0 0 0 25,272 0 14,071 1,260 bash
10 no-host configure.cpython 1,641,874 0 0 0 25,272 0 14,098 988 dash
18 no-host configure.cpython 1,599,020 0 0 0 25,280 0 11,300 961 osh-native
26 no-host configure.cpython 1,596,481 0 0 0 25,280 0 11,316 872 osh-nosouffle
34 no-host configure.cpython 1,522,664 0 0 0 25,272 0 11,296 1,033 osh-static
4 no-host configure.ocaml 299,423 0 0 0 4,432 0 2,015 193 bash
12 no-host configure.ocaml 280,618 0 0 0 4,432 0 2,104 203 dash
20 no-host configure.ocaml 306,036 0 0 0 4,440 0 2,001 232 osh-native
28 no-host configure.ocaml 305,368 0 0 0 4,440 0 2,004 211 osh-nosouffle
36 no-host configure.ocaml 300,892 0 0 0 4,432 0 1,999 216 osh-static
5 no-host configure.tcc 5,229 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,604 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,671 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,150 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,543,258 2 0 232 35,944 0 18,967 1,031 bash
11 no-host configure.util-linux 1,701,419 3 0 0 35,936 0 17,074 1,154 dash
19 no-host configure.util-linux 1,497,575 0 0 0 35,960 0 16,101 877 osh-native
27 no-host configure.util-linux 1,513,587 0 0 0 35,952 0 16,221 923 osh-nosouffle
35 no-host configure.util-linux 1,457,442 0 0 0 35,936 0 16,142 890 osh-static
6 no-host configure.yash 173,349 0 0 0 3,616 0 881 101 bash
14 no-host configure.yash 159,511 0 0 0 3,624 0 1,001 109 dash
22 no-host configure.yash 176,560 0 0 0 3,624 0 857 103 osh-native
30 no-host configure.yash 176,977 0 0 0 3,624 0 857 103 osh-nosouffle
38 no-host configure.yash 173,046 0 0 0 3,616 0 857 98 osh-static
0 no-host hello-world 154 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 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 395 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 182 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-edf78b5e
osh-nosouffle osh-3d032a3b
osh-static osh-static-fe8efcd9
host label host id
no-host no-host-9c670df1