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 22 19 1.31 1.16
bin-true no-host 640 457 819 822 672 1.28 1.05
configure.cpython no-host 14,576 14,531 13,985 14,117 13,496 0.96 0.93
configure.ocaml no-host 3,835 3,768 3,814 3,814 3,753 0.99 0.98
configure.tcc no-host 50 43 48 48 45 0.95 0.89
configure.util-linux no-host 13,314 14,069 12,755 12,926 12,555 0.96 0.94
configure.yash no-host 1,790 1,719 1,766 1,763 1,739 0.99 0.97
hello-world no-host 2 1 3 3 1 1.71 0.73

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,397 1,184 3,310 3,407 2,811 1.38 1.17
bin-true no-host 100,452 49,419 133,336 133,029 111,344 1.33 1.11
configure.cpython no-host 1,619,300 1,639,623 1,577,831 1,598,847 1,513,452 0.97 0.93
configure.ocaml no-host 299,034 280,820 307,209 306,513 300,116 1.03 1.00
configure.tcc no-host 5,225 4,205 5,570 5,646 5,114 1.07 0.98
configure.util-linux no-host 1,530,206 1,694,473 1,497,137 1,519,479 1,470,293 0.98 0.96
configure.yash no-host 173,151 159,546 176,513 177,239 172,752 1.02 1.00
hello-world no-host 152 83 393 399 184 2.59 1.21

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 4.1 9.6 10.1 6.3 1.97 1.30
bin-true no-host 3.1 1.6 8.7 9.2 5.2 2.75 1.67
configure.cpython no-host 34.6 34.6 34.4 34.6 34.2 0.99 0.99
configure.ocaml no-host 28.7 28.6 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.1 26.3 1.00 1.00
configure.util-linux no-host 39.9 39.5 39.6 39.7 39.5 0.99 0.99
configure.yash no-host 33.4 33.4 33.5 33.4 33.1 1.00 0.99
hello-world no-host 3.3 1.4 6.6 7.1 3.4 2.00 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 819 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,985 2 71 14.8 34.4 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,755 3 67 21.6 39.6 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,814 1 2 2.8 28.6 149,720 12,656 6,571 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,766 1 2 2.7 33.5 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,263 65,801 42,008 4,981 54,612 57,670 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 822 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 14,117 1 69 14.9 34.6 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,926 3 68 21.6 39.7 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,814 1 2 2.8 28.7 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.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,763 1 2 2.7 33.4 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,263 65,805 42,012 4,981 54,612 57,670 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.8 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 21 13 8 9.6 osh-native
31 no-host abuild-print-help 22 14 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 10 9 6.3 osh-static
1 no-host bin-true 640 312 365 3.1 bash
9 no-host bin-true 457 281 181 1.6 dash
17 no-host bin-true 819 318 518 8.7 osh-native
25 no-host bin-true 822 298 541 9.2 osh-nosouffle
33 no-host bin-true 672 315 373 5.2 osh-static
2 no-host configure.cpython 14,576 7,838 7,133 34.6 bash
10 no-host configure.cpython 14,531 7,893 7,051 34.6 dash
18 no-host configure.cpython 13,985 7,397 6,872 34.4 osh-native
26 no-host configure.cpython 14,117 7,576 6,836 34.6 osh-nosouffle
34 no-host configure.cpython 13,496 7,408 6,336 34.2 osh-static
4 no-host configure.ocaml 3,835 1,526 1,350 28.7 bash
12 no-host configure.ocaml 3,768 1,512 1,280 28.6 dash
20 no-host configure.ocaml 3,814 1,486 1,369 28.6 osh-native
28 no-host configure.ocaml 3,814 1,490 1,365 28.7 osh-nosouffle
36 no-host configure.ocaml 3,753 1,498 1,286 28.7 osh-static
5 no-host configure.tcc 50 29 22 26.2 bash
13 no-host configure.tcc 43 23 21 26.2 dash
21 no-host configure.tcc 48 25 23 26.2 osh-native
29 no-host configure.tcc 48 24 25 26.1 osh-nosouffle
37 no-host configure.tcc 45 20 25 26.3 osh-static
3 no-host configure.util-linux 13,314 6,844 6,966 39.9 bash
11 no-host configure.util-linux 14,069 6,922 7,648 39.5 dash
19 no-host configure.util-linux 12,755 6,293 6,695 39.6 osh-native
27 no-host configure.util-linux 12,926 6,317 6,833 39.7 osh-nosouffle
35 no-host configure.util-linux 12,555 6,293 6,476 39.5 osh-static
6 no-host configure.yash 1,790 1,013 785 33.4 bash
14 no-host configure.yash 1,719 961 754 33.4 dash
22 no-host configure.yash 1,766 982 786 33.5 osh-native
30 no-host configure.yash 1,763 1,010 755 33.4 osh-nosouffle
38 no-host configure.yash 1,739 965 776 33.1 osh-static
0 no-host hello-world 2 2 0 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 2 1 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,397 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,184 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,310 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,407 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,811 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,452 0 0 0 8 0 1,997 71 bash
9 no-host bin-true 49,419 0 0 0 8 0 2,992 54 dash
17 no-host bin-true 133,336 0 0 0 16 0 1,996 76 osh-native
25 no-host bin-true 133,029 0 0 0 16 0 1,999 79 osh-nosouffle
33 no-host bin-true 111,344 0 0 0 8 0 1,995 75 osh-static
2 no-host configure.cpython 1,619,300 0 0 0 25,272 0 14,063 997 bash
10 no-host configure.cpython 1,639,623 0 0 0 25,272 0 14,155 1,079 dash
18 no-host configure.cpython 1,577,831 0 0 0 25,280 0 11,293 835 osh-native
26 no-host configure.cpython 1,598,847 0 0 0 25,280 0 11,292 831 osh-nosouffle
34 no-host configure.cpython 1,513,452 0 0 0 25,272 0 11,315 815 osh-static
4 no-host configure.ocaml 299,034 0 0 0 4,432 0 2,016 251 bash
12 no-host configure.ocaml 280,820 0 0 0 4,432 0 2,108 181 dash
20 no-host configure.ocaml 307,209 0 0 0 4,440 0 2,000 214 osh-native
28 no-host configure.ocaml 306,513 0 0 0 4,440 0 1,999 214 osh-nosouffle
36 no-host configure.ocaml 300,116 0 0 0 4,432 0 1,999 219 osh-static
5 no-host configure.tcc 5,225 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,205 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,570 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,646 0 0 0 96 0 45 2 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,530,206 2 0 0 35,936 0 19,012 1,102 bash
11 no-host configure.util-linux 1,694,473 0 0 0 35,936 0 17,121 1,265 dash
19 no-host configure.util-linux 1,497,137 0 0 0 35,960 0 16,147 959 osh-native
27 no-host configure.util-linux 1,519,479 3 0 0 35,952 0 16,205 958 osh-nosouffle
35 no-host configure.util-linux 1,470,293 4 0 0 35,944 0 16,196 968 osh-static
6 no-host configure.yash 173,151 0 0 0 3,616 0 883 99 bash
14 no-host configure.yash 159,546 0 0 0 3,616 0 999 97 dash
22 no-host configure.yash 176,513 0 0 0 3,624 0 857 92 osh-native
30 no-host configure.yash 177,239 0 0 0 3,632 0 855 102 osh-nosouffle
38 no-host configure.yash 172,752 0 0 0 3,616 0 856 111 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 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 399 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 184 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-c90de033
osh-nosouffle osh-d99016af
osh-static osh-static-c3b9c8fa
host label host id
no-host no-host-bba74091