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 22 22 19 1.38 1.19
bin-true no-host 620 442 816 813 660 1.32 1.06
configure.cpython no-host 14,684 14,814 14,401 14,147 13,481 0.98 0.92
configure.ocaml no-host 3,809 3,796 3,857 3,815 3,763 1.01 0.99
configure.tcc no-host 48 44 49 49 44 1.02 0.93
configure.util-linux no-host 12,791 14,140 13,262 13,090 12,581 1.04 0.98
configure.yash no-host 1,795 1,736 1,787 1,782 1,753 1.00 0.98
hello-world no-host 1 1 3 3 1 2.57 1.11

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,374 1,159 3,308 3,389 2,807 1.39 1.18
bin-true no-host 102,401 49,419 132,336 132,967 110,987 1.29 1.08
configure.cpython no-host 1,619,254 1,639,938 1,595,321 1,590,534 1,524,173 0.99 0.94
configure.ocaml no-host 299,337 281,035 306,639 307,069 300,931 1.02 1.01
configure.tcc no-host 5,199 4,206 5,639 5,673 5,146 1.08 0.99
configure.util-linux no-host 1,542,782 1,699,698 1,502,955 1,522,210 1,459,164 0.97 0.95
configure.yash no-host 173,204 159,601 176,424 176,940 173,108 1.02 1.00
hello-world no-host 154 82 391 400 181 2.54 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.4 10.1 6.4 2.00 1.36
bin-true no-host 3.1 1.7 8.5 9.2 5.2 2.71 1.67
configure.cpython no-host 34.5 34.7 34.7 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.5 28.8 1.00 1.00
configure.tcc no-host 26.1 26.2 26.2 26.4 26.0 1.00 1.00
configure.util-linux no-host 39.5 39.6 39.6 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 3.4 2.00 1.04

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 816 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 14,401 2 73 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 13,262 3 72 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,857 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 49 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,787 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 22 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 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 813 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 14,147 1 72 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 13,090 3 70 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,815 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 49 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,782 1 2 2.7 33.4 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.1 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 7 9 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 22 14 9 9.4 osh-native
31 no-host abuild-print-help 22 14 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 11 9 6.4 osh-static
1 no-host bin-true 620 308 353 3.1 bash
9 no-host bin-true 442 281 165 1.7 dash
17 no-host bin-true 816 319 514 8.5 osh-native
25 no-host bin-true 813 327 502 9.2 osh-nosouffle
33 no-host bin-true 660 322 355 5.2 osh-static
2 no-host configure.cpython 14,684 7,961 7,030 34.5 bash
10 no-host configure.cpython 14,814 8,141 7,099 34.7 dash
18 no-host configure.cpython 14,401 7,708 6,978 34.7 osh-native
26 no-host configure.cpython 14,147 7,541 6,890 34.5 osh-nosouffle
34 no-host configure.cpython 13,481 7,403 6,320 34.4 osh-static
4 no-host configure.ocaml 3,809 1,562 1,289 28.7 bash
12 no-host configure.ocaml 3,796 1,535 1,286 28.5 dash
20 no-host configure.ocaml 3,857 1,566 1,331 28.7 osh-native
28 no-host configure.ocaml 3,815 1,557 1,301 28.5 osh-nosouffle
36 no-host configure.ocaml 3,763 1,504 1,290 28.8 osh-static
5 no-host configure.tcc 48 25 23 26.1 bash
13 no-host configure.tcc 44 24 21 26.2 dash
21 no-host configure.tcc 49 25 24 26.2 osh-native
29 no-host configure.tcc 49 19 30 26.4 osh-nosouffle
37 no-host configure.tcc 44 20 25 26.0 osh-static
3 no-host configure.util-linux 12,791 6,612 6,632 39.5 bash
11 no-host configure.util-linux 14,140 6,915 7,740 39.6 dash
19 no-host configure.util-linux 13,262 6,499 6,994 39.6 osh-native
27 no-host configure.util-linux 13,090 6,474 6,850 39.6 osh-nosouffle
35 no-host configure.util-linux 12,581 6,351 6,456 39.6 osh-static
6 no-host configure.yash 1,795 998 805 33.4 bash
14 no-host configure.yash 1,736 995 741 33.4 dash
22 no-host configure.yash 1,787 1,009 780 33.4 osh-native
30 no-host configure.yash 1,782 1,014 770 33.4 osh-nosouffle
38 no-host configure.yash 1,753 1,004 750 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 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,374 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,308 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,389 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,807 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 102,401 0 0 0 8 0 1,995 57 bash
9 no-host bin-true 49,419 0 0 0 8 0 2,992 48 dash
17 no-host bin-true 132,336 0 0 0 16 0 1,999 71 osh-native
25 no-host bin-true 132,967 0 0 0 16 0 1,993 81 osh-nosouffle
33 no-host bin-true 110,987 0 0 0 8 0 1,999 83 osh-static
2 no-host configure.cpython 1,619,254 0 0 0 25,272 0 14,115 1,041 bash
10 no-host configure.cpython 1,639,938 0 0 0 25,272 0 14,155 995 dash
18 no-host configure.cpython 1,595,321 0 0 0 25,280 0 11,296 893 osh-native
26 no-host configure.cpython 1,590,534 0 0 0 25,280 0 11,305 847 osh-nosouffle
34 no-host configure.cpython 1,524,173 0 0 0 25,272 0 11,305 924 osh-static
4 no-host configure.ocaml 299,337 0 0 0 4,432 0 2,010 176 bash
12 no-host configure.ocaml 281,035 0 0 0 4,432 0 2,101 199 dash
20 no-host configure.ocaml 306,639 0 0 0 4,440 0 2,001 212 osh-native
28 no-host configure.ocaml 307,069 0 0 0 4,440 0 1,999 179 osh-nosouffle
36 no-host configure.ocaml 300,931 0 0 0 4,432 0 1,993 223 osh-static
5 no-host configure.tcc 5,199 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,639 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,673 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,146 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,542,782 0 0 232 35,944 0 19,042 1,001 bash
11 no-host configure.util-linux 1,699,698 2 0 0 35,944 0 17,152 1,185 dash
19 no-host configure.util-linux 1,502,955 1 0 0 35,960 0 16,189 964 osh-native
27 no-host configure.util-linux 1,522,210 1 0 0 35,952 0 16,185 892 osh-nosouffle
35 no-host configure.util-linux 1,459,164 2 0 0 35,944 0 16,115 892 osh-static
6 no-host configure.yash 173,204 0 0 0 3,616 0 878 113 bash
14 no-host configure.yash 159,601 0 0 0 3,616 0 1,002 102 dash
22 no-host configure.yash 176,424 0 0 0 3,624 0 857 90 osh-native
30 no-host configure.yash 176,940 0 0 0 3,624 0 855 124 osh-nosouffle
38 no-host configure.yash 173,108 0 0 0 3,616 0 860 110 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 391 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-0421fe26
osh-nosouffle osh-2e23d82c
osh-static osh-static-74050a48
host label host id
no-host no-host-9c670df1