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 22 18 1.28 1.14
bin-true no-host 612 450 812 801 661 1.33 1.08
configure.cpython no-host 14,045 14,357 13,935 13,984 13,336 0.99 0.95
configure.ocaml no-host 3,746 3,673 3,771 3,834 3,732 1.01 1.00
configure.tcc no-host 46 42 48 48 44 1.03 0.94
configure.util-linux no-host 12,847 13,744 12,939 13,145 12,578 1.01 0.98
configure.yash no-host 1,750 1,684 1,740 1,764 1,699 0.99 0.97
hello-world no-host 1 1 3 3 1 2.46 1.06

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,370 1,164 3,311 3,431 2,839 1.40 1.20
bin-true no-host 98,450 49,424 133,312 131,998 111,077 1.35 1.13
configure.cpython no-host 1,623,328 1,639,048 1,590,369 1,599,803 1,516,749 0.98 0.93
configure.ocaml no-host 298,915 281,107 306,864 306,692 300,099 1.03 1.00
configure.tcc no-host 5,195 4,231 5,593 5,659 5,113 1.08 0.98
configure.util-linux no-host 1,538,055 1,693,408 1,510,927 1,510,910 1,481,102 0.98 0.96
configure.yash no-host 173,206 159,630 176,558 177,051 172,749 1.02 1.00
hello-world no-host 153 87 392 399 185 2.56 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.7 4.1 9.4 10.1 6.3 2.00 1.33
bin-true no-host 3.1 1.6 8.8 9.2 5.2 2.79 1.67
configure.cpython no-host 34.5 34.4 34.4 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.5 28.6 28.8 28.7 28.6 1.01 1.00
configure.tcc no-host 26.4 26.2 26.2 26.0 26.3 0.99 0.99
configure.util-linux no-host 39.7 39.7 39.7 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.2 33.4 33.2 1.00 1.00
hello-world no-host 3.1 1.6 6.7 6.9 3.4 2.12 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.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 812 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,935 1 69 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,939 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,771 1 2 2.8 28.8 149,705 12,656 6,571 9,217 70,297 70,191 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,740 1 2 2.7 33.2 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 801 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,984 1 70 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 13,145 3 68 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,834 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 48 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,764 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 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 11 6 4.7 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 20 12 9 9.4 osh-native
31 no-host abuild-print-help 22 10 13 10.1 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.3 osh-static
1 no-host bin-true 612 320 330 3.1 bash
9 no-host bin-true 450 275 179 1.6 dash
17 no-host bin-true 812 313 515 8.8 osh-native
25 no-host bin-true 801 311 507 9.2 osh-nosouffle
33 no-host bin-true 661 328 348 5.2 osh-static
2 no-host configure.cpython 14,045 7,627 6,808 34.5 bash
10 no-host configure.cpython 14,357 7,851 6,918 34.4 dash
18 no-host configure.cpython 13,935 7,443 6,774 34.4 osh-native
26 no-host configure.cpython 13,984 7,460 6,817 34.5 osh-nosouffle
34 no-host configure.cpython 13,336 7,370 6,210 34.6 osh-static
4 no-host configure.ocaml 3,746 1,502 1,285 28.5 bash
12 no-host configure.ocaml 3,673 1,491 1,207 28.6 dash
20 no-host configure.ocaml 3,771 1,509 1,300 28.8 osh-native
28 no-host configure.ocaml 3,834 1,540 1,336 28.7 osh-nosouffle
36 no-host configure.ocaml 3,732 1,527 1,237 28.6 osh-static
5 no-host configure.tcc 46 30 17 26.4 bash
13 no-host configure.tcc 42 20 22 26.2 dash
21 no-host configure.tcc 48 25 23 26.2 osh-native
29 no-host configure.tcc 48 23 26 26.0 osh-nosouffle
37 no-host configure.tcc 44 23 21 26.3 osh-static
3 no-host configure.util-linux 12,847 6,674 6,648 39.7 bash
11 no-host configure.util-linux 13,744 6,765 7,488 39.7 dash
19 no-host configure.util-linux 12,939 6,397 6,770 39.7 osh-native
27 no-host configure.util-linux 13,145 6,398 6,903 39.6 osh-nosouffle
35 no-host configure.util-linux 12,578 6,353 6,450 39.6 osh-static
6 no-host configure.yash 1,750 962 795 33.4 bash
14 no-host configure.yash 1,684 954 731 33.4 dash
22 no-host configure.yash 1,740 973 769 33.2 osh-native
30 no-host configure.yash 1,764 966 800 33.4 osh-nosouffle
38 no-host configure.yash 1,699 947 755 33.2 osh-static
0 no-host hello-world 1 0 1 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 2 1 6.9 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,370 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,164 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,311 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,431 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 2 osh-static
1 no-host bin-true 98,450 0 0 0 8 0 1,999 68 bash
9 no-host bin-true 49,424 0 0 0 8 0 2,990 56 dash
17 no-host bin-true 133,312 0 0 0 16 0 1,998 85 osh-native
25 no-host bin-true 131,998 0 0 0 16 0 1,998 66 osh-nosouffle
33 no-host bin-true 111,077 0 0 0 8 0 1,998 82 osh-static
2 no-host configure.cpython 1,623,328 0 0 0 25,272 0 14,076 985 bash
10 no-host configure.cpython 1,639,048 1 0 0 25,272 0 14,125 1,053 dash
18 no-host configure.cpython 1,590,369 0 0 0 25,280 0 11,300 869 osh-native
26 no-host configure.cpython 1,599,803 0 0 0 25,280 0 11,306 873 osh-nosouffle
34 no-host configure.cpython 1,516,749 0 0 0 25,272 0 11,295 921 osh-static
4 no-host configure.ocaml 298,915 0 0 0 4,432 0 2,017 174 bash
12 no-host configure.ocaml 281,107 0 0 0 4,432 0 2,111 210 dash
20 no-host configure.ocaml 306,864 0 0 0 4,440 0 2,003 215 osh-native
28 no-host configure.ocaml 306,692 0 0 0 4,440 0 1,998 179 osh-nosouffle
36 no-host configure.ocaml 300,099 0 0 0 4,432 0 1,994 264 osh-static
5 no-host configure.tcc 5,195 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,231 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,593 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,659 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,113 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,538,055 2 0 0 35,936 0 19,021 1,154 bash
11 no-host configure.util-linux 1,693,408 0 0 0 35,936 0 17,116 1,169 dash
19 no-host configure.util-linux 1,510,927 0 0 0 35,952 0 16,213 908 osh-native
27 no-host configure.util-linux 1,510,910 2 0 8 35,944 0 16,183 943 osh-nosouffle
35 no-host configure.util-linux 1,481,102 2 0 0 35,936 0 16,136 913 osh-static
6 no-host configure.yash 173,206 0 0 0 3,616 0 877 105 bash
14 no-host configure.yash 159,630 0 0 0 3,616 0 1,001 103 dash
22 no-host configure.yash 176,558 0 0 0 3,624 0 857 99 osh-native
30 no-host configure.yash 177,051 0 0 0 3,624 0 858 97 osh-nosouffle
38 no-host configure.yash 172,749 0 0 0 3,616 0 856 105 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 185 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-706d7242
osh-nosouffle osh-ef0f5c6a
osh-static osh-static-4cd3ae9e
host label host id
no-host no-host-bba74091