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 15 9 21 22 19 1.33 1.20
bin-true no-host 630 440 808 806 656 1.28 1.04
configure.cpython no-host 13,796 13,825 13,361 13,516 12,921 0.97 0.94
configure.ocaml no-host 3,651 3,588 3,684 3,685 3,652 1.01 1.00
configure.tcc no-host 46 41 47 47 43 1.03 0.95
configure.util-linux no-host 12,434 13,267 12,498 12,641 12,135 1.01 0.98
configure.yash no-host 1,680 1,624 1,689 1,697 1,669 1.01 0.99
hello-world no-host 1 1 3 3 1 2.28 0.99

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,381 1,154 3,330 3,387 2,827 1.40 1.19
bin-true no-host 100,445 49,396 133,317 132,047 111,067 1.33 1.11
configure.cpython no-host 1,622,497 1,644,189 1,587,102 1,611,739 1,516,723 0.98 0.93
configure.ocaml no-host 299,390 280,554 305,211 306,976 300,431 1.02 1.00
configure.tcc no-host 5,198 4,196 5,590 5,639 5,115 1.08 0.98
configure.util-linux no-host 1,535,746 1,692,928 1,512,826 1,523,074 1,480,575 0.99 0.96
configure.yash no-host 173,377 159,546 176,810 177,466 172,826 1.02 1.00
hello-world no-host 152 88 394 399 183 2.59 1.20

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 3.8 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.3 1.6 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.6 34.5 34.5 34.4 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.8 28.8 28.7 1.00 1.00
configure.tcc no-host 26.0 26.3 26.2 26.2 26.3 1.01 1.01
configure.util-linux no-host 39.5 39.7 39.5 39.7 39.7 1.00 1.01
configure.yash no-host 33.4 33.4 33.1 33.2 33.3 0.99 1.00
hello-world no-host 3.1 1.6 6.6 6.9 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 808 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,361 1 65 14.8 34.5 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,498 3 65 21.6 39.5 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,684 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 47 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,689 1 2 2.7 33.1 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.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 806 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,516 1 66 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,641 3 66 21.6 39.7 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,685 1 2 2.8 28.8 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.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,697 1 2 2.7 33.2 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.0 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 15 9 7 4.8 bash
15 no-host abuild-print-help 9 5 5 3.8 dash
23 no-host abuild-print-help 21 13 8 9.4 osh-native
31 no-host abuild-print-help 22 9 13 10.0 osh-nosouffle
39 no-host abuild-print-help 19 14 5 6.3 osh-static
1 no-host bin-true 630 324 346 3.3 bash
9 no-host bin-true 440 260 188 1.6 dash
17 no-host bin-true 808 315 511 8.8 osh-native
25 no-host bin-true 806 311 513 9.2 osh-nosouffle
33 no-host bin-true 656 326 346 5.1 osh-static
2 no-host configure.cpython 13,796 7,549 6,630 34.6 bash
10 no-host configure.cpython 13,825 7,603 6,628 34.5 dash
18 no-host configure.cpython 13,361 7,051 6,589 34.5 osh-native
26 no-host configure.cpython 13,516 7,227 6,581 34.4 osh-nosouffle
34 no-host configure.cpython 12,921 7,139 6,023 34.7 osh-static
4 no-host configure.ocaml 3,651 1,465 1,227 28.7 bash
12 no-host configure.ocaml 3,588 1,437 1,176 28.7 dash
20 no-host configure.ocaml 3,684 1,464 1,257 28.8 osh-native
28 no-host configure.ocaml 3,685 1,517 1,211 28.8 osh-nosouffle
36 no-host configure.ocaml 3,652 1,491 1,193 28.7 osh-static
5 no-host configure.tcc 46 22 24 26.0 bash
13 no-host configure.tcc 41 22 19 26.3 dash
21 no-host configure.tcc 47 23 24 26.2 osh-native
29 no-host configure.tcc 47 19 28 26.2 osh-nosouffle
37 no-host configure.tcc 43 29 15 26.3 osh-static
3 no-host configure.util-linux 12,434 6,560 6,346 39.5 bash
11 no-host configure.util-linux 13,267 6,525 7,235 39.7 dash
19 no-host configure.util-linux 12,498 6,249 6,475 39.5 osh-native
27 no-host configure.util-linux 12,641 6,258 6,607 39.7 osh-nosouffle
35 no-host configure.util-linux 12,135 6,164 6,194 39.7 osh-static
6 no-host configure.yash 1,680 937 752 33.4 bash
14 no-host configure.yash 1,624 915 712 33.4 dash
22 no-host configure.yash 1,689 945 746 33.1 osh-native
30 no-host configure.yash 1,697 952 749 33.2 osh-nosouffle
38 no-host configure.yash 1,669 982 690 33.3 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 1 2 6.6 osh-native
24 no-host hello-world 3 1 1 6.9 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,381 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,330 0 0 0 16 0 39 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,827 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,445 0 0 0 8 0 1,995 59 bash
9 no-host bin-true 49,396 0 0 0 8 0 2,998 49 dash
17 no-host bin-true 133,317 0 0 0 16 0 1,999 56 osh-native
25 no-host bin-true 132,047 0 0 0 16 0 1,998 76 osh-nosouffle
33 no-host bin-true 111,067 0 0 0 8 0 1,998 77 osh-static
2 no-host configure.cpython 1,622,497 0 0 0 25,304 0 14,084 1,007 bash
10 no-host configure.cpython 1,644,189 0 0 0 25,272 0 14,118 1,171 dash
18 no-host configure.cpython 1,587,102 0 0 0 25,280 0 11,306 814 osh-native
26 no-host configure.cpython 1,611,739 0 0 0 25,280 0 11,305 841 osh-nosouffle
34 no-host configure.cpython 1,516,723 0 0 0 25,272 0 11,301 843 osh-static
4 no-host configure.ocaml 299,390 0 0 0 4,432 0 2,014 186 bash
12 no-host configure.ocaml 280,554 0 0 0 4,432 0 2,107 217 dash
20 no-host configure.ocaml 305,211 0 0 0 4,440 0 2,002 333 osh-native
28 no-host configure.ocaml 306,976 0 0 0 4,440 0 2,005 193 osh-nosouffle
36 no-host configure.ocaml 300,431 0 0 0 4,432 0 2,000 237 osh-static
5 no-host configure.tcc 5,198 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,196 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,590 0 0 0 96 0 44 1 osh-native
29 no-host configure.tcc 5,639 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,115 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,746 0 0 0 35,936 0 18,995 1,059 bash
11 no-host configure.util-linux 1,692,928 2 0 0 35,936 0 17,133 1,204 dash
19 no-host configure.util-linux 1,512,826 1 0 0 35,952 0 16,147 962 osh-native
27 no-host configure.util-linux 1,523,074 1 0 0 35,952 0 16,158 960 osh-nosouffle
35 no-host configure.util-linux 1,480,575 1 0 0 35,936 0 16,207 940 osh-static
6 no-host configure.yash 173,377 0 0 0 3,616 0 879 96 bash
14 no-host configure.yash 159,546 0 0 0 3,616 0 1,002 103 dash
22 no-host configure.yash 176,810 0 0 0 3,624 0 857 110 osh-native
30 no-host configure.yash 177,466 0 0 0 3,624 0 858 100 osh-nosouffle
38 no-host configure.yash 172,826 0 0 0 3,616 0 858 100 osh-static
0 no-host hello-world 152 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 394 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 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-d45b1609
osh-nosouffle osh-d484a644
osh-static osh-static-51d190eb
host label host id
no-host no-host-bba74091