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 21 21 18 1.32 1.18
bin-true no-host 621 443 808 803 657 1.30 1.06
configure.cpython no-host 13,843 13,836 13,435 13,469 13,046 0.97 0.94
configure.ocaml no-host 3,664 3,623 3,709 3,692 3,663 1.01 1.00
configure.tcc no-host 47 41 47 48 43 1.00 0.93
configure.util-linux no-host 12,522 13,222 12,438 12,536 12,350 0.99 0.99
configure.yash no-host 1,693 1,645 1,697 1,703 1,676 1.00 0.99
hello-world no-host 1 1 3 3 1 2.48 1.04

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,370 1,192 3,331 3,435 2,839 1.41 1.20
bin-true no-host 101,382 49,383 134,390 133,074 112,081 1.33 1.11
configure.cpython no-host 1,629,801 1,635,522 1,586,263 1,605,036 1,513,264 0.97 0.93
configure.ocaml no-host 299,054 280,892 305,996 307,563 300,098 1.02 1.00
configure.tcc no-host 5,212 4,205 5,624 5,701 5,120 1.08 0.98
configure.util-linux no-host 1,536,221 1,691,290 1,492,481 1,520,849 1,470,249 0.97 0.96
configure.yash no-host 173,149 159,510 177,371 177,049 172,773 1.02 1.00
hello-world no-host 152 86 393 396 183 2.59 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.9 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.1 1.4 8.9 9.3 5.2 2.83 1.67
configure.cpython no-host 34.5 34.4 34.1 34.5 34.7 0.99 1.00
configure.ocaml no-host 28.8 28.7 28.7 28.5 28.6 1.00 0.99
configure.tcc no-host 26.2 26.4 26.3 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.7 39.6 39.9 39.6 39.6 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 8.9 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,435 1 67 14.8 34.1 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,438 3 65 21.6 39.9 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,709 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,697 1 2 2.7 33.4 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.8 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 803 1 2 3.5 9.3 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,469 1 64 14.9 34.5 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,536 3 64 21.6 39.6 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,692 1 2 2.8 28.5 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,703 1 2 2.7 33.4 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,239 65,805 42,012 4,980 54,601 57,658 277 3 84,024 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 8 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 21 11 11 9.4 osh-native
31 no-host abuild-print-help 21 13 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 621 306 355 3.1 bash
9 no-host bin-true 443 281 168 1.4 dash
17 no-host bin-true 808 308 516 8.9 osh-native
25 no-host bin-true 803 310 510 9.3 osh-nosouffle
33 no-host bin-true 657 327 346 5.2 osh-static
2 no-host configure.cpython 13,843 7,587 6,648 34.5 bash
10 no-host configure.cpython 13,836 7,605 6,633 34.4 dash
18 no-host configure.cpython 13,435 7,101 6,611 34.1 osh-native
26 no-host configure.cpython 13,469 7,151 6,605 34.5 osh-nosouffle
34 no-host configure.cpython 13,046 7,222 6,055 34.7 osh-static
4 no-host configure.ocaml 3,664 1,428 1,276 28.8 bash
12 no-host configure.ocaml 3,623 1,487 1,161 28.7 dash
20 no-host configure.ocaml 3,709 1,489 1,258 28.7 osh-native
28 no-host configure.ocaml 3,692 1,492 1,241 28.5 osh-nosouffle
36 no-host configure.ocaml 3,663 1,441 1,254 28.6 osh-static
5 no-host configure.tcc 47 22 25 26.2 bash
13 no-host configure.tcc 41 20 21 26.4 dash
21 no-host configure.tcc 47 22 25 26.3 osh-native
29 no-host configure.tcc 48 28 20 26.2 osh-nosouffle
37 no-host configure.tcc 43 24 20 26.3 osh-static
3 no-host configure.util-linux 12,522 6,615 6,370 39.7 bash
11 no-host configure.util-linux 13,222 6,543 7,170 39.6 dash
19 no-host configure.util-linux 12,438 6,133 6,532 39.9 osh-native
27 no-host configure.util-linux 12,536 6,203 6,543 39.6 osh-nosouffle
35 no-host configure.util-linux 12,350 6,260 6,304 39.6 osh-static
6 no-host configure.yash 1,693 951 750 33.3 bash
14 no-host configure.yash 1,645 964 677 33.4 dash
22 no-host configure.yash 1,697 952 747 33.4 osh-native
30 no-host configure.yash 1,703 947 759 33.4 osh-nosouffle
38 no-host configure.yash 1,676 972 707 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 6.8 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,370 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,192 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,331 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,435 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,382 0 0 0 8 0 1,998 59 bash
9 no-host bin-true 49,383 0 0 0 8 0 2,999 38 dash
17 no-host bin-true 134,390 0 0 0 16 0 1,998 73 osh-native
25 no-host bin-true 133,074 0 0 0 16 0 1,999 79 osh-nosouffle
33 no-host bin-true 112,081 0 0 0 8 0 2,001 73 osh-static
2 no-host configure.cpython 1,629,801 0 0 0 25,272 0 14,088 1,005 bash
10 no-host configure.cpython 1,635,522 0 0 0 25,272 0 14,114 1,118 dash
18 no-host configure.cpython 1,586,263 0 0 0 25,280 0 11,299 841 osh-native
26 no-host configure.cpython 1,605,036 0 0 0 25,280 0 11,306 818 osh-nosouffle
34 no-host configure.cpython 1,513,264 0 0 0 25,272 0 11,312 864 osh-static
4 no-host configure.ocaml 299,054 0 0 0 4,432 0 2,020 188 bash
12 no-host configure.ocaml 280,892 0 0 0 4,432 0 2,109 208 dash
20 no-host configure.ocaml 305,996 0 0 0 4,440 0 2,004 228 osh-native
28 no-host configure.ocaml 307,563 0 0 0 4,440 0 2,003 212 osh-nosouffle
36 no-host configure.ocaml 300,098 0 0 0 4,432 0 2,003 204 osh-static
5 no-host configure.tcc 5,212 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,205 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,624 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,701 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,120 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,536,221 0 0 0 35,936 0 18,971 1,083 bash
11 no-host configure.util-linux 1,691,290 1 0 0 35,936 0 17,090 1,126 dash
19 no-host configure.util-linux 1,492,481 0 0 0 35,952 0 16,202 910 osh-native
27 no-host configure.util-linux 1,520,849 1 0 496 35,944 0 16,121 985 osh-nosouffle
35 no-host configure.util-linux 1,470,249 3 0 0 35,936 0 16,116 930 osh-static
6 no-host configure.yash 173,149 0 0 0 3,616 0 879 95 bash
14 no-host configure.yash 159,510 0 0 0 3,616 0 1,002 103 dash
22 no-host configure.yash 177,371 0 0 0 3,632 0 857 106 osh-native
30 no-host configure.yash 177,049 0 0 0 3,624 0 858 107 osh-nosouffle
38 no-host configure.yash 172,773 0 0 0 3,616 0 858 88 osh-static
0 no-host hello-world 152 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 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 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-56c0b725
osh-nosouffle osh-127531d7
osh-static osh-static-682465b5
host label host id
no-host no-host-bba74091