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.32 1.17
bin-true no-host 636 444 806 812 655 1.27 1.03
configure.cpython no-host 14,222 14,147 13,860 13,874 13,220 0.97 0.93
configure.ocaml no-host 3,725 3,722 3,780 3,765 3,742 1.01 1.00
configure.tcc no-host 47 42 47 47 44 1.01 0.93
configure.util-linux no-host 12,884 13,397 12,898 12,860 12,502 1.00 0.97
configure.yash no-host 1,749 1,675 1,741 1,728 1,717 1.00 0.98
hello-world no-host 1 1 3 3 1 2.28 0.98

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,385 1,171 3,332 3,387 2,835 1.40 1.19
bin-true no-host 102,468 49,406 132,289 133,018 111,036 1.29 1.08
configure.cpython no-host 1,627,153 1,639,685 1,593,745 1,597,708 1,518,620 0.98 0.93
configure.ocaml no-host 298,785 280,780 306,229 308,027 300,050 1.02 1.00
configure.tcc no-host 5,227 4,197 5,608 5,636 5,113 1.07 0.98
configure.util-linux no-host 1,533,513 1,699,299 1,504,367 1,523,431 1,478,956 0.98 0.96
configure.yash no-host 173,303 159,557 176,898 177,426 172,761 1.02 1.00
hello-world no-host 155 85 391 396 183 2.52 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.9 9.6 10.1 6.3 2.03 1.33
bin-true no-host 3.3 1.4 8.7 9.0 5.2 2.64 1.60
configure.cpython no-host 34.4 34.4 34.6 34.4 34.8 1.01 1.01
configure.ocaml no-host 28.7 28.8 28.6 28.5 28.5 1.00 1.00
configure.tcc no-host 26.1 26.0 26.1 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.9 39.7 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.3 33.1 1.00 0.99
hello-world no-host 3.1 1.4 6.6 6.9 3.4 2.08 1.08

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 806 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,860 1 68 14.8 34.6 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,898 3 69 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,780 1 2 2.8 28.6 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.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,741 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 21 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 812 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,874 1 68 14.9 34.4 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,860 3 67 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,765 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.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,728 1 2 2.7 33.3 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 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 8 8 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 11 11 9.6 osh-native
31 no-host abuild-print-help 22 11 11 10.1 osh-nosouffle
39 no-host abuild-print-help 19 13 6 6.3 osh-static
1 no-host bin-true 636 325 348 3.3 bash
9 no-host bin-true 444 283 168 1.4 dash
17 no-host bin-true 806 309 516 8.7 osh-native
25 no-host bin-true 812 321 507 9.0 osh-nosouffle
33 no-host bin-true 655 325 347 5.2 osh-static
2 no-host configure.cpython 14,222 7,784 6,839 34.4 bash
10 no-host configure.cpython 14,147 7,817 6,748 34.4 dash
18 no-host configure.cpython 13,860 7,367 6,784 34.6 osh-native
26 no-host configure.cpython 13,874 7,406 6,760 34.4 osh-nosouffle
34 no-host configure.cpython 13,220 7,300 6,169 34.8 osh-static
4 no-host configure.ocaml 3,725 1,503 1,263 28.7 bash
12 no-host configure.ocaml 3,722 1,551 1,196 28.8 dash
20 no-host configure.ocaml 3,780 1,532 1,288 28.6 osh-native
28 no-host configure.ocaml 3,765 1,498 1,310 28.5 osh-nosouffle
36 no-host configure.ocaml 3,742 1,490 1,283 28.5 osh-static
5 no-host configure.tcc 47 26 22 26.1 bash
13 no-host configure.tcc 42 27 15 26.0 dash
21 no-host configure.tcc 47 24 24 26.1 osh-native
29 no-host configure.tcc 47 24 23 26.1 osh-nosouffle
37 no-host configure.tcc 44 24 20 26.1 osh-static
3 no-host configure.util-linux 12,884 6,720 6,641 39.7 bash
11 no-host configure.util-linux 13,397 6,577 7,314 39.9 dash
19 no-host configure.util-linux 12,898 6,403 6,726 39.7 osh-native
27 no-host configure.util-linux 12,860 6,366 6,720 39.6 osh-nosouffle
35 no-host configure.util-linux 12,502 6,459 6,267 39.6 osh-static
6 no-host configure.yash 1,749 1,002 756 33.4 bash
14 no-host configure.yash 1,675 953 723 33.4 dash
22 no-host configure.yash 1,741 969 775 33.4 osh-native
30 no-host configure.yash 1,728 974 757 33.3 osh-nosouffle
38 no-host configure.yash 1,717 955 765 33.1 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 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,385 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,171 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,332 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,387 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,468 0 0 0 8 0 1,997 78 bash
9 no-host bin-true 49,406 0 0 0 8 0 2,998 55 dash
17 no-host bin-true 132,289 0 0 0 16 0 1,996 61 osh-native
25 no-host bin-true 133,018 0 0 0 16 0 1,999 85 osh-nosouffle
33 no-host bin-true 111,036 0 0 0 8 0 1,991 69 osh-static
2 no-host configure.cpython 1,627,153 0 0 0 25,272 0 14,097 1,116 bash
10 no-host configure.cpython 1,639,685 0 0 0 25,272 0 14,109 1,015 dash
18 no-host configure.cpython 1,593,745 0 0 0 25,280 0 11,291 858 osh-native
26 no-host configure.cpython 1,597,708 0 0 0 25,280 0 11,291 829 osh-nosouffle
34 no-host configure.cpython 1,518,620 0 0 0 25,272 0 11,293 815 osh-static
4 no-host configure.ocaml 298,785 0 0 0 4,432 0 2,021 176 bash
12 no-host configure.ocaml 280,780 0 0 0 4,432 0 2,108 190 dash
20 no-host configure.ocaml 306,229 0 0 0 4,440 0 2,001 240 osh-native
28 no-host configure.ocaml 308,027 0 0 0 4,440 0 1,996 196 osh-nosouffle
36 no-host configure.ocaml 300,050 0 0 0 4,432 0 1,997 225 osh-static
5 no-host configure.tcc 5,227 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,197 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,608 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,636 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,113 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,533,513 0 0 0 35,936 0 18,991 1,100 bash
11 no-host configure.util-linux 1,699,299 0 0 0 35,936 0 17,131 1,332 dash
19 no-host configure.util-linux 1,504,367 1 0 0 35,952 0 16,183 912 osh-native
27 no-host configure.util-linux 1,523,431 3 0 0 35,944 0 16,179 962 osh-nosouffle
35 no-host configure.util-linux 1,478,956 0 0 0 35,936 0 16,175 920 osh-static
6 no-host configure.yash 173,303 0 0 0 3,616 0 878 96 bash
14 no-host configure.yash 159,557 0 0 0 3,616 0 1,001 116 dash
22 no-host configure.yash 176,898 0 0 0 3,632 0 857 106 osh-native
30 no-host configure.yash 177,426 0 0 0 3,624 0 857 109 osh-nosouffle
38 no-host configure.yash 172,761 0 0 0 3,624 0 858 102 osh-static
0 no-host hello-world 155 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 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-70c5b2d1
osh-nosouffle osh-8e0010f5
osh-static osh-static-bca497c7
host label host id
no-host no-host-bba74091