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 617 439 795 810 653 1.29 1.06
configure.cpython no-host 13,660 13,700 13,378 13,286 12,939 0.98 0.95
configure.ocaml no-host 3,633 3,581 3,687 3,718 3,669 1.01 1.01
configure.tcc no-host 45 40 46 47 43 1.02 0.95
configure.util-linux no-host 12,382 13,139 12,297 12,502 12,075 0.99 0.98
configure.yash no-host 1,667 1,615 1,675 1,700 1,665 1.01 1.00
hello-world no-host 1 1 3 3 1 2.43 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,423 1,160 3,341 3,404 2,843 1.38 1.17
bin-true no-host 102,459 49,472 132,309 136,037 111,087 1.29 1.08
configure.cpython no-host 1,618,342 1,642,325 1,579,863 1,603,272 1,517,890 0.98 0.94
configure.ocaml no-host 299,228 280,760 306,381 307,622 299,989 1.02 1.00
configure.tcc no-host 5,213 4,204 5,586 5,619 5,114 1.07 0.98
configure.util-linux no-host 1,534,089 1,702,022 1,505,946 1,518,951 1,479,617 0.98 0.96
configure.yash no-host 173,593 159,528 176,827 177,386 172,810 1.02 1.00
hello-world no-host 150 89 395 401 183 2.63 1.22

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.6 10.1 6.3 1.92 1.26
bin-true no-host 3.3 1.4 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.8 34.7 34.7 34.5 34.5 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.5 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.4 26.3 26.3 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.9 39.9 39.6 39.6 1.01 1.00
configure.yash no-host 33.2 33.4 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.1 1.6 6.6 7.1 3.3 2.08 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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 795 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,378 1 65 14.8 34.7 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,297 3 62 21.6 39.9 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,687 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.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,675 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.6 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 810 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,286 1 63 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,502 3 63 21.6 39.6 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,718 1 2 2.8 28.7 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.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,700 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 5.0 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 8 13 9.6 osh-native
31 no-host abuild-print-help 21 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 13 7 6.3 osh-static
1 no-host bin-true 617 314 342 3.3 bash
9 no-host bin-true 439 268 176 1.4 dash
17 no-host bin-true 795 313 499 8.8 osh-native
25 no-host bin-true 810 311 515 9.2 osh-nosouffle
33 no-host bin-true 653 297 372 5.1 osh-static
2 no-host configure.cpython 13,660 7,527 6,509 34.8 bash
10 no-host configure.cpython 13,700 7,465 6,634 34.7 dash
18 no-host configure.cpython 13,378 7,153 6,493 34.7 osh-native
26 no-host configure.cpython 13,286 7,099 6,465 34.5 osh-nosouffle
34 no-host configure.cpython 12,939 7,137 6,042 34.5 osh-static
4 no-host configure.ocaml 3,633 1,492 1,172 28.7 bash
12 no-host configure.ocaml 3,581 1,454 1,150 28.7 dash
20 no-host configure.ocaml 3,687 1,488 1,239 28.5 osh-native
28 no-host configure.ocaml 3,718 1,491 1,270 28.7 osh-nosouffle
36 no-host configure.ocaml 3,669 1,501 1,199 28.7 osh-static
5 no-host configure.tcc 45 24 22 26.2 bash
13 no-host configure.tcc 40 20 20 26.4 dash
21 no-host configure.tcc 46 27 20 26.3 osh-native
29 no-host configure.tcc 47 25 22 26.3 osh-nosouffle
37 no-host configure.tcc 43 21 22 26.1 osh-static
3 no-host configure.util-linux 12,382 6,596 6,246 39.6 bash
11 no-host configure.util-linux 13,139 6,335 7,293 39.9 dash
19 no-host configure.util-linux 12,297 6,118 6,396 39.9 osh-native
27 no-host configure.util-linux 12,502 6,153 6,575 39.6 osh-nosouffle
35 no-host configure.util-linux 12,075 6,155 6,135 39.6 osh-static
6 no-host configure.yash 1,667 961 714 33.2 bash
14 no-host configure.yash 1,615 894 723 33.4 dash
22 no-host configure.yash 1,675 905 773 33.4 osh-native
30 no-host configure.yash 1,700 963 740 33.4 osh-nosouffle
38 no-host configure.yash 1,665 952 715 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 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 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,423 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,341 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,404 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,843 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,459 0 0 0 8 0 2,001 64 bash
9 no-host bin-true 49,472 0 0 0 8 0 2,996 51 dash
17 no-host bin-true 132,309 0 0 0 16 0 1,997 72 osh-native
25 no-host bin-true 136,037 0 0 0 16 0 1,998 66 osh-nosouffle
33 no-host bin-true 111,087 0 0 0 8 0 2,000 95 osh-static
2 no-host configure.cpython 1,618,342 0 0 0 25,272 0 14,080 1,010 bash
10 no-host configure.cpython 1,642,325 0 0 0 25,272 0 14,117 1,058 dash
18 no-host configure.cpython 1,579,863 0 0 0 25,280 0 11,294 887 osh-native
26 no-host configure.cpython 1,603,272 0 0 0 25,280 0 11,301 832 osh-nosouffle
34 no-host configure.cpython 1,517,890 0 0 0 25,272 0 11,301 837 osh-static
4 no-host configure.ocaml 299,228 0 0 0 4,432 0 2,021 197 bash
12 no-host configure.ocaml 280,760 0 0 0 4,432 0 2,107 194 dash
20 no-host configure.ocaml 306,381 0 0 0 4,440 0 2,004 192 osh-native
28 no-host configure.ocaml 307,622 0 0 0 4,440 0 1,998 183 osh-nosouffle
36 no-host configure.ocaml 299,989 0 0 0 4,432 0 2,003 224 osh-static
5 no-host configure.tcc 5,213 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,204 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 5,586 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,619 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,114 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,534,089 0 0 0 35,936 0 18,861 1,108 bash
11 no-host configure.util-linux 1,702,022 2 0 0 35,936 0 17,105 1,186 dash
19 no-host configure.util-linux 1,505,946 2 0 0 35,960 0 16,201 949 osh-native
27 no-host configure.util-linux 1,518,951 1 0 0 35,952 0 16,150 925 osh-nosouffle
35 no-host configure.util-linux 1,479,617 3 0 0 35,944 0 16,130 909 osh-static
6 no-host configure.yash 173,593 0 0 0 3,616 0 880 104 bash
14 no-host configure.yash 159,528 0 0 0 3,624 0 1,001 100 dash
22 no-host configure.yash 176,827 0 0 0 3,624 0 856 105 osh-native
30 no-host configure.yash 177,386 0 0 0 3,624 0 858 99 osh-nosouffle
38 no-host configure.yash 172,810 0 0 0 3,616 0 858 103 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 0 0 0 8 0 1 0 dash
16 no-host hello-world 395 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 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-3010eb45
osh-nosouffle osh-4d4e9189
osh-static osh-static-a67f9b53
host label host id
no-host no-host-bba74091