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 19 1.32 1.20
bin-true no-host 619 450 794 801 653 1.28 1.05
configure.cpython no-host 13,511 13,564 13,162 13,438 13,301 0.97 0.98
configure.ocaml no-host 3,605 3,544 3,646 3,774 3,670 1.01 1.02
configure.tcc no-host 45 41 46 49 43 1.02 0.96
configure.util-linux no-host 12,256 13,051 12,327 12,569 12,421 1.01 1.01
configure.yash no-host 1,657 1,610 1,671 1,722 1,679 1.01 1.01
hello-world no-host 1 1 3 3 1 2.49 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,358 1,158 3,303 3,392 2,845 1.40 1.21
bin-true no-host 101,431 49,368 129,960 134,378 110,735 1.28 1.09
configure.cpython no-host 1,623,207 1,640,129 1,579,904 1,603,318 1,515,747 0.97 0.93
configure.ocaml no-host 299,206 281,081 306,336 306,981 300,035 1.02 1.00
configure.tcc no-host 5,229 4,216 5,582 5,696 5,123 1.07 0.98
configure.util-linux no-host 1,532,926 1,698,659 1,524,282 1,521,146 1,477,801 0.99 0.96
configure.yash no-host 173,421 159,613 176,434 177,161 172,816 1.02 1.00
hello-world no-host 154 84 390 403 183 2.53 1.19

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.0 6.3 2.00 1.33
bin-true no-host 3.1 1.6 8.7 9.2 5.2 2.75 1.67
configure.cpython no-host 34.7 34.1 34.8 34.6 34.6 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.6 28.7 28.5 1.00 1.00
configure.tcc no-host 26.2 26.1 26.3 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.7 39.7 39.6 39.5 1.01 1.00
configure.yash no-host 33.3 33.4 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.4 6.6 7.1 3.3 2.00 1.00

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,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 794 1 2 3.5 8.7 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,162 1 63 14.8 34.8 1,750,827 35,398 28,953 93,078 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,327 3 63 21.6 39.7 2,705,393 37,470 66,341 119,746 1,291,872 1,293,775 32,527 42 132,682 1
configure.ocaml no-host 3,646 1 2 2.8 28.6 149,700 12,655 6,570 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,671 1 2 2.7 33.3 143,476 11,507 6,624 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,234 65,800 42,007 4,977 54,599 57,658 277 3 84,014 1
hello-world no-host 3 0 0 0.3 7.1 3,914 3,914 0 722 1,921 1,271 2 0 50,000 0
bin-true no-host 801 1 2 3.5 9.2 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,438 2 65 14.8 34.6 1,750,826 36,457 28,958 93,077 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,569 3 64 21.6 39.6 2,705,393 37,476 66,347 119,746 1,291,872 1,293,775 32,527 42 132,694 1
configure.ocaml no-host 3,774 1 2 2.8 28.7 149,700 12,660 6,575 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.2 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,722 1 2 2.7 33.4 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,234 65,804 42,011 4,977 54,599 57,658 277 3 84,022 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 8 4.7 bash
15 no-host abuild-print-help 9 6 4 3.9 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 22 14 8 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.3 osh-static
1 no-host bin-true 619 318 337 3.1 bash
9 no-host bin-true 450 282 176 1.6 dash
17 no-host bin-true 794 311 499 8.7 osh-native
25 no-host bin-true 801 316 501 9.2 osh-nosouffle
33 no-host bin-true 653 310 361 5.2 osh-static
2 no-host configure.cpython 13,511 7,483 6,410 34.7 bash
10 no-host configure.cpython 13,564 7,495 6,470 34.1 dash
18 no-host configure.cpython 13,162 6,963 6,465 34.8 osh-native
26 no-host configure.cpython 13,438 7,212 6,512 34.6 osh-nosouffle
34 no-host configure.cpython 13,301 7,362 6,170 34.6 osh-static
4 no-host configure.ocaml 3,605 1,462 1,184 28.7 bash
12 no-host configure.ocaml 3,544 1,424 1,145 28.8 dash
20 no-host configure.ocaml 3,646 1,458 1,228 28.6 osh-native
28 no-host configure.ocaml 3,774 1,533 1,284 28.7 osh-nosouffle
36 no-host configure.ocaml 3,670 1,477 1,225 28.5 osh-static
5 no-host configure.tcc 45 23 22 26.2 bash
13 no-host configure.tcc 41 21 20 26.1 dash
21 no-host configure.tcc 46 24 22 26.3 osh-native
29 no-host configure.tcc 49 18 31 26.2 osh-nosouffle
37 no-host configure.tcc 43 24 20 26.2 osh-static
3 no-host configure.util-linux 12,256 6,475 6,240 39.5 bash
11 no-host configure.util-linux 13,051 6,496 7,038 39.7 dash
19 no-host configure.util-linux 12,327 6,080 6,468 39.7 osh-native
27 no-host configure.util-linux 12,569 6,267 6,527 39.6 osh-nosouffle
35 no-host configure.util-linux 12,421 6,386 6,259 39.5 osh-static
6 no-host configure.yash 1,657 967 698 33.3 bash
14 no-host configure.yash 1,610 932 680 33.4 dash
22 no-host configure.yash 1,671 962 713 33.3 osh-native
30 no-host configure.yash 1,722 933 792 33.4 osh-nosouffle
38 no-host configure.yash 1,679 949 733 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 1 1 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 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,358 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 3,303 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,392 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,845 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,431 0 0 0 8 0 1,994 65 bash
9 no-host bin-true 49,368 0 0 0 8 0 2,995 43 dash
17 no-host bin-true 129,960 0 0 0 16 0 1,996 80 osh-native
25 no-host bin-true 134,378 0 0 0 16 0 1,998 60 osh-nosouffle
33 no-host bin-true 110,735 0 0 0 8 0 2,000 64 osh-static
2 no-host configure.cpython 1,623,207 0 0 0 25,272 0 14,072 991 bash
10 no-host configure.cpython 1,640,129 0 0 0 25,272 0 14,115 998 dash
18 no-host configure.cpython 1,579,904 0 0 0 25,280 0 11,301 852 osh-native
26 no-host configure.cpython 1,603,318 0 0 0 25,280 0 11,307 857 osh-nosouffle
34 no-host configure.cpython 1,515,747 0 0 0 25,272 0 11,302 910 osh-static
4 no-host configure.ocaml 299,206 0 0 0 4,432 0 2,020 197 bash
12 no-host configure.ocaml 281,081 0 0 0 4,432 0 2,108 191 dash
20 no-host configure.ocaml 306,336 0 0 0 4,440 0 2,000 212 osh-native
28 no-host configure.ocaml 306,981 0 0 0 4,440 0 2,000 189 osh-nosouffle
36 no-host configure.ocaml 300,035 0 0 0 4,432 0 1,997 223 osh-static
5 no-host configure.tcc 5,229 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,582 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,696 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,123 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,532,926 1 0 0 35,944 0 18,967 1,043 bash
11 no-host configure.util-linux 1,698,659 2 0 0 35,936 0 17,070 1,201 dash
19 no-host configure.util-linux 1,524,282 1 0 0 35,952 0 16,161 1,004 osh-native
27 no-host configure.util-linux 1,521,146 1 0 0 35,944 0 16,140 914 osh-nosouffle
35 no-host configure.util-linux 1,477,801 0 0 0 35,936 0 16,252 878 osh-static
6 no-host configure.yash 173,421 0 0 0 3,616 0 878 101 bash
14 no-host configure.yash 159,613 0 0 0 3,616 0 1,002 113 dash
22 no-host configure.yash 176,434 0 0 0 3,624 0 856 99 osh-native
30 no-host configure.yash 177,161 0 0 0 3,624 0 859 98 osh-nosouffle
38 no-host configure.yash 172,816 0 0 0 3,616 0 858 94 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 1 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 403 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-c8be3c78
osh-nosouffle osh-2e65d07c
osh-static osh-static-be515655
host label host id
no-host no-host-9c670df1