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.29 1.17
bin-true no-host 610 441 802 806 651 1.31 1.07
configure.cpython no-host 13,564 13,658 13,244 13,214 12,696 0.98 0.94
configure.ocaml no-host 3,627 3,563 3,645 3,656 3,602 1.00 0.99
configure.tcc no-host 46 40 46 46 42 1.00 0.92
configure.util-linux no-host 12,272 13,033 12,272 12,294 11,979 1.00 0.98
configure.yash no-host 1,672 1,609 1,663 1,662 1,638 0.99 0.98
hello-world no-host 1 1 3 3 1 2.49 1.03

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,405 1,158 3,272 3,428 2,820 1.36 1.17
bin-true no-host 98,475 49,399 134,311 135,026 112,166 1.36 1.14
configure.cpython no-host 1,630,614 1,638,030 1,580,714 1,597,714 1,519,063 0.97 0.93
configure.ocaml no-host 298,929 280,765 305,876 306,814 300,014 1.02 1.00
configure.tcc no-host 5,227 4,229 5,566 5,650 5,126 1.06 0.98
configure.util-linux no-host 1,532,225 1,698,271 1,506,227 1,514,069 1,479,974 0.98 0.97
configure.yash no-host 173,353 159,592 176,947 177,511 172,819 1.02 1.00
hello-world no-host 152 85 396 404 183 2.61 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 5.0 3.9 9.4 10.1 6.3 1.89 1.26
bin-true no-host 3.1 1.7 8.7 9.2 5.1 2.75 1.62
configure.cpython no-host 34.7 34.1 34.4 34.3 34.5 0.99 1.00
configure.ocaml no-host 28.7 28.6 28.5 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.1 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.7 7.2 3.3 2.12 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.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 802 1 2 3.5 8.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,244 2 64 14.8 34.4 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,272 3 62 21.6 39.7 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,645 1 2 2.8 28.5 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,663 1 2 2.7 33.3 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 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 7.2 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 806 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,214 1 63 14.9 34.3 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,294 3 62 21.6 39.7 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,656 1 2 2.8 28.6 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,662 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 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 6 10 5.0 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 20 9 11 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 610 314 332 3.1 bash
9 no-host bin-true 441 278 171 1.7 dash
17 no-host bin-true 802 317 502 8.7 osh-native
25 no-host bin-true 806 296 525 9.2 osh-nosouffle
33 no-host bin-true 651 298 369 5.1 osh-static
2 no-host configure.cpython 13,564 7,460 6,489 34.7 bash
10 no-host configure.cpython 13,658 7,549 6,505 34.1 dash
18 no-host configure.cpython 13,244 7,059 6,454 34.4 osh-native
26 no-host configure.cpython 13,214 7,079 6,416 34.3 osh-nosouffle
34 no-host configure.cpython 12,696 7,061 5,872 34.5 osh-static
4 no-host configure.ocaml 3,627 1,454 1,212 28.7 bash
12 no-host configure.ocaml 3,563 1,448 1,139 28.6 dash
20 no-host configure.ocaml 3,645 1,445 1,239 28.5 osh-native
28 no-host configure.ocaml 3,656 1,459 1,237 28.6 osh-nosouffle
36 no-host configure.ocaml 3,602 1,460 1,173 28.7 osh-static
5 no-host configure.tcc 46 25 22 26.2 bash
13 no-host configure.tcc 40 26 15 26.2 dash
21 no-host configure.tcc 46 23 23 26.1 osh-native
29 no-host configure.tcc 46 28 19 26.1 osh-nosouffle
37 no-host configure.tcc 42 21 21 26.2 osh-static
3 no-host configure.util-linux 12,272 6,456 6,277 39.6 bash
11 no-host configure.util-linux 13,033 6,431 7,087 39.7 dash
19 no-host configure.util-linux 12,272 6,111 6,380 39.7 osh-native
27 no-host configure.util-linux 12,294 6,161 6,358 39.7 osh-nosouffle
35 no-host configure.util-linux 11,979 6,121 6,077 39.6 osh-static
6 no-host configure.yash 1,672 948 733 33.4 bash
14 no-host configure.yash 1,609 945 666 33.4 dash
22 no-host configure.yash 1,663 935 731 33.3 osh-native
30 no-host configure.yash 1,662 932 733 33.4 osh-nosouffle
38 no-host configure.yash 1,638 912 729 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 2 1 6.7 osh-native
24 no-host hello-world 3 1 2 7.2 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,405 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,272 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,428 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,820 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 98,475 0 0 0 8 0 1,997 63 bash
9 no-host bin-true 49,399 0 0 0 8 0 2,997 45 dash
17 no-host bin-true 134,311 0 0 0 16 0 1,997 68 osh-native
25 no-host bin-true 135,026 0 0 0 16 0 2,000 85 osh-nosouffle
33 no-host bin-true 112,166 0 0 0 8 0 1,998 82 osh-static
2 no-host configure.cpython 1,630,614 0 0 0 25,272 0 14,077 1,044 bash
10 no-host configure.cpython 1,638,030 0 0 0 25,272 0 14,121 1,046 dash
18 no-host configure.cpython 1,580,714 0 0 0 25,280 0 11,302 843 osh-native
26 no-host configure.cpython 1,597,714 0 0 0 25,280 0 11,305 838 osh-nosouffle
34 no-host configure.cpython 1,519,063 0 0 0 25,272 0 11,308 846 osh-static
4 no-host configure.ocaml 298,929 0 0 0 4,432 0 2,018 212 bash
12 no-host configure.ocaml 280,765 0 0 0 4,432 0 2,100 203 dash
20 no-host configure.ocaml 305,876 0 0 0 4,440 0 2,004 207 osh-native
28 no-host configure.ocaml 306,814 0 0 0 4,440 0 2,004 200 osh-nosouffle
36 no-host configure.ocaml 300,014 0 0 0 4,432 0 1,999 217 osh-static
5 no-host configure.tcc 5,227 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,229 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,566 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,650 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,126 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,532,225 0 0 0 35,936 0 18,983 1,045 bash
11 no-host configure.util-linux 1,698,271 1 0 0 35,936 0 17,100 1,224 dash
19 no-host configure.util-linux 1,506,227 0 0 0 35,952 0 16,198 1,072 osh-native
27 no-host configure.util-linux 1,514,069 3 0 0 35,944 0 16,168 918 osh-nosouffle
35 no-host configure.util-linux 1,479,974 1 0 0 35,936 0 16,210 1,006 osh-static
6 no-host configure.yash 173,353 0 0 0 3,616 0 878 100 bash
14 no-host configure.yash 159,592 0 0 0 3,616 0 1,004 103 dash
22 no-host configure.yash 176,947 0 0 0 3,624 0 857 105 osh-native
30 no-host configure.yash 177,511 0 0 0 3,624 0 858 97 osh-nosouffle
38 no-host configure.yash 172,819 0 0 0 3,616 0 857 112 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 396 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 404 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-d4dbaeab
osh-nosouffle osh-64f26179
osh-static osh-static-5369cda3
host label host id
no-host no-host-bba74091