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 19 1.30 1.21
bin-true no-host 628 443 807 811 653 1.28 1.04
configure.cpython no-host 13,716 13,744 13,351 13,413 12,830 0.97 0.94
configure.ocaml no-host 3,636 3,593 3,718 3,696 3,634 1.02 1.00
configure.tcc no-host 45 41 47 47 43 1.03 0.94
configure.util-linux no-host 12,520 13,209 12,484 12,472 12,098 1.00 0.97
configure.yash no-host 1,690 1,624 1,697 1,681 1,656 1.00 0.98
hello-world no-host 1 1 3 3 1 2.46 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,390 1,154 3,320 3,409 2,829 1.39 1.18
bin-true no-host 103,450 49,431 131,338 136,042 112,068 1.27 1.08
configure.cpython no-host 1,617,693 1,633,420 1,577,138 1,606,944 1,517,973 0.97 0.94
configure.ocaml no-host 299,117 280,421 305,336 306,791 300,174 1.02 1.00
configure.tcc no-host 5,238 4,207 5,548 5,682 5,131 1.06 0.98
configure.util-linux no-host 1,535,360 1,701,551 1,512,943 1,511,112 1,479,970 0.99 0.96
configure.yash no-host 173,355 159,637 176,897 177,204 172,858 1.02 1.00
hello-world no-host 155 88 393 398 183 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.8 9.4 10.1 6.3 2.00 1.33
bin-true no-host 3.1 1.7 8.8 9.2 5.1 2.79 1.62
configure.cpython no-host 34.7 34.5 34.5 34.5 34.4 1.00 0.99
configure.ocaml no-host 28.5 28.8 28.7 28.5 28.7 1.00 1.01
configure.tcc no-host 26.3 26.1 26.0 26.4 26.2 0.99 1.00
configure.util-linux no-host 39.7 39.9 39.5 39.5 39.5 0.99 0.99
configure.yash no-host 33.4 33.3 33.4 33.4 33.3 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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 807 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,351 1 64 14.8 34.5 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,484 3 63 21.6 39.5 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,718 1 2 2.8 28.7 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 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,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.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 811 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,413 1 64 14.9 34.5 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,472 3 63 21.6 39.5 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,696 1 2 2.8 28.5 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.4 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,681 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 7 9 4.7 bash
15 no-host abuild-print-help 9 4 5 3.8 dash
23 no-host abuild-print-help 20 12 9 9.4 osh-native
31 no-host abuild-print-help 21 8 14 10.1 osh-nosouffle
39 no-host abuild-print-help 19 15 4 6.3 osh-static
1 no-host bin-true 628 315 350 3.1 bash
9 no-host bin-true 443 262 187 1.7 dash
17 no-host bin-true 807 323 503 8.8 osh-native
25 no-host bin-true 811 325 503 9.2 osh-nosouffle
33 no-host bin-true 653 306 362 5.1 osh-static
2 no-host configure.cpython 13,716 7,559 6,545 34.7 bash
10 no-host configure.cpython 13,744 7,619 6,534 34.5 dash
18 no-host configure.cpython 13,351 7,112 6,512 34.5 osh-native
26 no-host configure.cpython 13,413 7,187 6,518 34.5 osh-nosouffle
34 no-host configure.cpython 12,830 7,038 6,030 34.4 osh-static
4 no-host configure.ocaml 3,636 1,486 1,191 28.5 bash
12 no-host configure.ocaml 3,593 1,433 1,185 28.8 dash
20 no-host configure.ocaml 3,718 1,460 1,297 28.7 osh-native
28 no-host configure.ocaml 3,696 1,474 1,264 28.5 osh-nosouffle
36 no-host configure.ocaml 3,634 1,477 1,187 28.7 osh-static
5 no-host configure.tcc 45 25 20 26.3 bash
13 no-host configure.tcc 41 27 14 26.1 dash
21 no-host configure.tcc 47 25 22 26.0 osh-native
29 no-host configure.tcc 47 22 26 26.4 osh-nosouffle
37 no-host configure.tcc 43 23 20 26.2 osh-static
3 no-host configure.util-linux 12,520 6,548 6,447 39.7 bash
11 no-host configure.util-linux 13,209 6,542 7,164 39.9 dash
19 no-host configure.util-linux 12,484 6,241 6,467 39.5 osh-native
27 no-host configure.util-linux 12,472 6,176 6,523 39.5 osh-nosouffle
35 no-host configure.util-linux 12,098 6,133 6,187 39.5 osh-static
6 no-host configure.yash 1,690 984 715 33.4 bash
14 no-host configure.yash 1,624 956 671 33.3 dash
22 no-host configure.yash 1,697 981 718 33.4 osh-native
30 no-host configure.yash 1,681 953 732 33.4 osh-nosouffle
38 no-host configure.yash 1,656 934 726 33.3 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 1 1 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.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,390 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,320 0 0 0 16 0 38 2 osh-native
31 no-host abuild-print-help 3,409 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,829 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,450 0 0 0 8 0 1,993 68 bash
9 no-host bin-true 49,431 0 0 0 8 0 2,992 51 dash
17 no-host bin-true 131,338 0 0 0 16 0 1,998 96 osh-native
25 no-host bin-true 136,042 0 0 0 16 0 1,998 78 osh-nosouffle
33 no-host bin-true 112,068 0 0 0 8 0 2,001 110 osh-static
2 no-host configure.cpython 1,617,693 0 0 0 25,272 0 14,083 1,069 bash
10 no-host configure.cpython 1,633,420 0 0 0 25,272 0 14,116 991 dash
18 no-host configure.cpython 1,577,138 0 0 0 25,280 0 11,297 840 osh-native
26 no-host configure.cpython 1,606,944 0 0 0 25,280 0 11,302 862 osh-nosouffle
34 no-host configure.cpython 1,517,973 0 0 0 25,272 0 11,307 905 osh-static
4 no-host configure.ocaml 299,117 0 0 0 4,432 0 2,015 190 bash
12 no-host configure.ocaml 280,421 0 0 0 4,432 0 2,106 194 dash
20 no-host configure.ocaml 305,336 0 0 0 4,440 0 2,001 215 osh-native
28 no-host configure.ocaml 306,791 0 0 0 4,440 0 2,000 199 osh-nosouffle
36 no-host configure.ocaml 300,174 0 0 0 4,432 0 1,999 202 osh-static
5 no-host configure.tcc 5,238 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,548 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,682 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,131 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,360 1 0 0 35,936 0 18,975 1,018 bash
11 no-host configure.util-linux 1,701,551 0 0 0 35,936 0 17,093 1,208 dash
19 no-host configure.util-linux 1,512,943 1 0 0 35,952 0 16,205 898 osh-native
27 no-host configure.util-linux 1,511,112 0 0 0 35,952 0 16,180 920 osh-nosouffle
35 no-host configure.util-linux 1,479,970 1 0 0 35,936 0 16,179 895 osh-static
6 no-host configure.yash 173,355 0 0 0 3,616 0 878 90 bash
14 no-host configure.yash 159,637 0 0 0 3,616 0 1,001 89 dash
22 no-host configure.yash 176,897 0 0 0 3,624 0 856 98 osh-native
30 no-host configure.yash 177,204 0 0 0 3,624 0 858 97 osh-nosouffle
38 no-host configure.yash 172,858 0 0 0 3,624 0 855 103 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 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 398 0 0 0 16 0 1 1 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-c83a5ddf
osh-nosouffle osh-ac957614
osh-static osh-static-3565d3d1
host label host id
no-host no-host-bba74091