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 13 7 18 19 16 1.38 1.28
bin-true no-host 435 297 604 608 476 1.39 1.09
configure.cpython no-host 11,677 11,754 11,589 11,602 11,232 0.99 0.96
configure.ocaml no-host 3,269 3,228 3,306 3,298 3,277 1.01 1.00
configure.tcc no-host 39 36 40 40 38 1.03 0.98
configure.util-linux no-host 10,245 10,853 10,563 10,647 10,275 1.03 1.00
configure.yash no-host 1,450 1,419 1,460 1,470 1,429 1.01 0.99
hello-world no-host 1 0 3 2 1 2.67 1.07

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,386 1,163 3,342 3,471 2,844 1.40 1.19
bin-true no-host 101,896 49,882 132,744 135,438 112,449 1.30 1.10
configure.cpython no-host 1,634,377 1,644,647 1,592,231 1,612,629 1,520,576 0.97 0.93
configure.ocaml no-host 299,972 281,849 306,640 308,417 301,036 1.02 1.00
configure.tcc no-host 5,272 4,242 5,628 5,713 5,139 1.07 0.97
configure.util-linux no-host 1,537,061 1,701,201 1,516,130 1,523,994 1,484,789 0.99 0.97
configure.yash no-host 173,799 159,906 177,168 177,844 173,178 1.02 1.00
hello-world no-host 153 88 396 403 185 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.7 3.9 9.3 10.1 6.3 1.97 1.33
bin-true no-host 3.3 1.6 8.9 9.3 5.2 2.72 1.60
configure.cpython no-host 34.5 34.5 34.3 34.6 34.4 0.99 1.00
configure.ocaml no-host 28.8 28.8 28.8 28.7 28.8 1.00 1.00
configure.tcc no-host 26.3 26.2 26.2 26.3 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.6 39.6 39.7 1.00 1.00
configure.yash no-host 33.2 33.5 33.4 33.4 33.5 1.00 1.01
hello-world no-host 3.3 1.6 6.7 7.1 3.4 2.04 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.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 604 1 2 3.5 8.9 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 11,589 1 65 14.8 34.3 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 10,563 3 68 21.6 39.6 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,306 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 40 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,460 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 18 1 2 3.0 9.3 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 2 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 608 1 2 3.5 9.3 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 11,602 1 66 14.9 34.6 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 10,647 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,298 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 40 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,470 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 19 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 13 7 6 4.7 bash
15 no-host abuild-print-help 7 5 3 3.9 dash
23 no-host abuild-print-help 18 11 7 9.3 osh-native
31 no-host abuild-print-help 19 13 7 10.1 osh-nosouffle
39 no-host abuild-print-help 16 15 2 6.3 osh-static
1 no-host bin-true 435 282 189 3.3 bash
9 no-host bin-true 297 224 73 1.6 dash
17 no-host bin-true 604 323 293 8.9 osh-native
25 no-host bin-true 608 327 293 9.3 osh-nosouffle
33 no-host bin-true 476 292 199 5.2 osh-static
2 no-host configure.cpython 11,677 7,707 4,304 34.5 bash
10 no-host configure.cpython 11,754 7,649 4,456 34.5 dash
18 no-host configure.cpython 11,589 7,225 4,562 34.3 osh-native
26 no-host configure.cpython 11,602 7,196 4,635 34.6 osh-nosouffle
34 no-host configure.cpython 11,232 7,202 4,206 34.4 osh-static
4 no-host configure.ocaml 3,269 1,484 811 28.8 bash
12 no-host configure.ocaml 3,228 1,489 747 28.8 dash
20 no-host configure.ocaml 3,306 1,470 860 28.8 osh-native
28 no-host configure.ocaml 3,298 1,486 839 28.7 osh-nosouffle
36 no-host configure.ocaml 3,277 1,470 823 28.8 osh-static
5 no-host configure.tcc 39 23 17 26.3 bash
13 no-host configure.tcc 36 27 10 26.2 dash
21 no-host configure.tcc 40 24 16 26.2 osh-native
29 no-host configure.tcc 40 26 15 26.3 osh-nosouffle
37 no-host configure.tcc 38 27 11 26.3 osh-static
3 no-host configure.util-linux 10,245 6,637 3,993 39.6 bash
11 no-host configure.util-linux 10,853 6,591 4,671 39.5 dash
19 no-host configure.util-linux 10,563 6,207 4,515 39.6 osh-native
27 no-host configure.util-linux 10,647 6,366 4,437 39.6 osh-nosouffle
35 no-host configure.util-linux 10,275 6,277 4,153 39.7 osh-static
6 no-host configure.yash 1,450 951 505 33.2 bash
14 no-host configure.yash 1,419 918 494 33.5 dash
22 no-host configure.yash 1,460 959 500 33.4 osh-native
30 no-host configure.yash 1,470 946 522 33.4 osh-nosouffle
38 no-host configure.yash 1,429 936 493 33.5 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 0 1 0 1.6 dash
16 no-host hello-world 3 1 1 6.7 osh-native
24 no-host hello-world 2 1 2 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,386 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,342 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,471 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,844 0 0 0 8 0 40 0 osh-static
1 no-host bin-true 101,896 0 0 0 8 0 2,000 52 bash
9 no-host bin-true 49,882 0 0 0 8 0 2,995 44 dash
17 no-host bin-true 132,744 0 0 0 16 0 1,998 70 osh-native
25 no-host bin-true 135,438 0 0 0 16 0 1,997 75 osh-nosouffle
33 no-host bin-true 112,449 0 0 0 8 0 1,997 45 osh-static
2 no-host configure.cpython 1,634,377 0 0 0 25,272 0 14,063 953 bash
10 no-host configure.cpython 1,644,647 0 0 0 25,272 0 14,090 925 dash
18 no-host configure.cpython 1,592,231 0 0 0 25,280 0 11,328 799 osh-native
26 no-host configure.cpython 1,612,629 0 0 0 25,280 0 11,302 828 osh-nosouffle
34 no-host configure.cpython 1,520,576 0 0 0 25,272 0 11,287 771 osh-static
4 no-host configure.ocaml 299,972 0 0 0 4,432 0 2,020 177 bash
12 no-host configure.ocaml 281,849 0 0 0 4,432 0 2,114 169 dash
20 no-host configure.ocaml 306,640 0 0 0 4,440 0 2,006 164 osh-native
28 no-host configure.ocaml 308,417 0 0 0 4,440 0 1,998 206 osh-nosouffle
36 no-host configure.ocaml 301,036 0 0 0 4,432 0 2,006 174 osh-static
5 no-host configure.tcc 5,272 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,242 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,628 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,713 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,139 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,537,061 1 0 0 35,936 0 18,778 956 bash
11 no-host configure.util-linux 1,701,201 0 0 0 35,936 0 16,955 1,062 dash
19 no-host configure.util-linux 1,516,130 2 0 0 35,952 0 16,178 890 osh-native
27 no-host configure.util-linux 1,523,994 3 0 0 35,952 0 16,173 877 osh-nosouffle
35 no-host configure.util-linux 1,484,789 1 0 0 35,936 0 16,159 841 osh-static
6 no-host configure.yash 173,799 0 0 0 3,616 0 875 92 bash
14 no-host configure.yash 159,906 0 0 0 3,616 0 1,002 104 dash
22 no-host configure.yash 177,168 0 0 0 3,624 0 858 96 osh-native
30 no-host configure.yash 177,844 0 0 0 3,624 0 859 88 osh-nosouffle
38 no-host configure.yash 173,178 0 0 0 3,616 0 860 71 osh-static
0 no-host hello-world 153 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 396 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 403 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-ac75ab0b
osh-nosouffle osh-316cc692
osh-static osh-static-4d8ba6df
host label host id
no-host no-host-bba74091