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.26 1.14
bin-true no-host 622 443 804 807 660 1.29 1.06
configure.cpython no-host 13,737 13,629 13,215 13,269 12,707 0.96 0.93
configure.ocaml no-host 3,612 3,555 3,655 3,653 3,631 1.01 1.01
configure.tcc no-host 46 41 46 46 43 1.00 0.93
configure.util-linux no-host 12,342 13,095 12,281 12,371 11,963 1.00 0.97
configure.yash no-host 1,658 1,605 1,660 1,664 1,637 1.00 0.99
hello-world no-host 1 1 3 3 1 2.47 1.03

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,432 1,155 3,280 3,435 2,822 1.35 1.16
bin-true no-host 102,459 49,406 130,344 134,069 112,008 1.27 1.09
configure.cpython no-host 1,628,054 1,633,616 1,593,959 1,598,979 1,513,851 0.98 0.93
configure.ocaml no-host 299,346 280,821 306,624 307,201 300,082 1.02 1.00
configure.tcc no-host 5,230 4,223 5,564 5,636 5,125 1.06 0.98
configure.util-linux no-host 1,532,454 1,699,819 1,498,917 1,522,784 1,470,304 0.98 0.96
configure.yash no-host 173,447 159,560 177,108 177,538 172,842 1.02 1.00
hello-world no-host 152 87 396 398 184 2.61 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 5.0 4.1 9.4 10.2 6.3 1.89 1.26
bin-true no-host 3.1 1.6 8.8 9.2 5.4 2.79 1.71
configure.cpython no-host 34.6 34.5 34.5 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.5 28.8 1.00 1.00
configure.tcc no-host 26.2 26.0 26.3 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.6 39.5 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.2 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.7 6.9 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 804 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,215 1 64 14.8 34.5 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,281 3 62 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,655 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 46 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,660 1 2 2.7 33.4 143,496 11,508 6,625 7,171 70,532 65,793 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 807 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,269 2 65 14.9 34.5 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,371 3 62 21.6 39.5 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,653 1 2 2.8 28.5 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 46 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,664 1 2 2.7 33.2 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.2 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 12 4 5.0 bash
15 no-host abuild-print-help 9 4 6 4.1 dash
23 no-host abuild-print-help 20 13 8 9.4 osh-native
31 no-host abuild-print-help 22 11 11 10.2 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 622 312 346 3.1 bash
9 no-host bin-true 443 281 169 1.6 dash
17 no-host bin-true 804 300 518 8.8 osh-native
25 no-host bin-true 807 318 509 9.2 osh-nosouffle
33 no-host bin-true 660 323 352 5.4 osh-static
2 no-host configure.cpython 13,737 7,564 6,568 34.6 bash
10 no-host configure.cpython 13,629 7,540 6,491 34.5 dash
18 no-host configure.cpython 13,215 7,033 6,459 34.5 osh-native
26 no-host configure.cpython 13,269 6,997 6,556 34.5 osh-nosouffle
34 no-host configure.cpython 12,707 7,018 5,928 34.6 osh-static
4 no-host configure.ocaml 3,612 1,442 1,211 28.7 bash
12 no-host configure.ocaml 3,555 1,430 1,149 28.7 dash
20 no-host configure.ocaml 3,655 1,473 1,223 28.7 osh-native
28 no-host configure.ocaml 3,653 1,493 1,201 28.5 osh-nosouffle
36 no-host configure.ocaml 3,631 1,441 1,222 28.8 osh-static
5 no-host configure.tcc 46 23 24 26.2 bash
13 no-host configure.tcc 41 20 21 26.0 dash
21 no-host configure.tcc 46 23 24 26.3 osh-native
29 no-host configure.tcc 46 28 19 26.1 osh-nosouffle
37 no-host configure.tcc 43 28 16 26.2 osh-static
3 no-host configure.util-linux 12,342 6,483 6,326 39.6 bash
11 no-host configure.util-linux 13,095 6,364 7,226 39.7 dash
19 no-host configure.util-linux 12,281 6,177 6,328 39.6 osh-native
27 no-host configure.util-linux 12,371 6,133 6,465 39.5 osh-nosouffle
35 no-host configure.util-linux 11,963 6,088 6,096 39.7 osh-static
6 no-host configure.yash 1,658 917 750 33.4 bash
14 no-host configure.yash 1,605 919 689 33.4 dash
22 no-host configure.yash 1,660 918 744 33.4 osh-native
30 no-host configure.yash 1,664 924 744 33.2 osh-nosouffle
38 no-host configure.yash 1,637 939 701 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 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 3 0 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,432 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,280 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,435 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,822 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,459 0 0 0 8 0 2,001 55 bash
9 no-host bin-true 49,406 0 0 0 8 0 2,991 41 dash
17 no-host bin-true 130,344 0 0 0 16 0 1,998 96 osh-native
25 no-host bin-true 134,069 0 0 0 16 0 1,998 59 osh-nosouffle
33 no-host bin-true 112,008 0 0 0 8 0 1,995 79 osh-static
2 no-host configure.cpython 1,628,054 0 0 0 25,272 0 14,063 1,042 bash
10 no-host configure.cpython 1,633,616 0 0 0 25,272 0 14,096 1,072 dash
18 no-host configure.cpython 1,593,959 0 0 0 25,280 0 11,304 879 osh-native
26 no-host configure.cpython 1,598,979 0 0 0 25,280 0 11,305 914 osh-nosouffle
34 no-host configure.cpython 1,513,851 0 0 0 25,272 0 11,303 849 osh-static
4 no-host configure.ocaml 299,346 0 0 0 4,432 0 2,018 205 bash
12 no-host configure.ocaml 280,821 0 0 0 4,432 0 2,111 204 dash
20 no-host configure.ocaml 306,624 0 0 0 4,440 0 2,003 205 osh-native
28 no-host configure.ocaml 307,201 0 0 0 4,440 0 2,001 207 osh-nosouffle
36 no-host configure.ocaml 300,082 0 0 0 4,432 0 2,000 211 osh-static
5 no-host configure.tcc 5,230 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,223 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,564 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,125 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,532,454 1 0 0 35,936 0 18,967 1,064 bash
11 no-host configure.util-linux 1,699,819 0 0 0 35,936 0 17,077 1,272 dash
19 no-host configure.util-linux 1,498,917 1 0 0 35,952 0 16,194 888 osh-native
27 no-host configure.util-linux 1,522,784 0 0 8 35,944 0 16,143 912 osh-nosouffle
35 no-host configure.util-linux 1,470,304 1 0 0 35,936 0 16,226 890 osh-static
6 no-host configure.yash 173,447 0 0 0 3,616 0 879 103 bash
14 no-host configure.yash 159,560 0 0 0 3,616 0 999 104 dash
22 no-host configure.yash 177,108 0 0 0 3,624 0 858 103 osh-native
30 no-host configure.yash 177,538 0 0 0 3,624 0 858 99 osh-nosouffle
38 no-host configure.yash 172,842 0 0 0 3,616 0 858 88 osh-static
0 no-host hello-world 152 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 396 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 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-e8da64b2
osh-nosouffle osh-8bad1132
osh-static osh-static-5fd685de
host label host id
no-host no-host-bba74091