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 20 21 18 1.31 1.17
bin-true no-host 619 442 793 808 651 1.28 1.05
configure.cpython no-host 13,462 13,614 13,142 13,227 12,654 0.98 0.94
configure.ocaml no-host 3,612 3,538 3,641 3,654 3,599 1.01 1.00
configure.tcc no-host 45 40 46 46 43 1.02 0.94
configure.util-linux no-host 12,245 13,101 12,234 12,284 11,939 1.00 0.97
configure.yash no-host 1,658 1,596 1,651 1,685 1,624 1.00 0.98
hello-world no-host 1 1 3 3 1 2.46 1.05

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,390 1,169 3,311 3,400 2,832 1.39 1.18
bin-true no-host 103,453 49,403 132,244 137,338 112,108 1.28 1.08
configure.cpython no-host 1,629,527 1,638,862 1,593,995 1,611,936 1,514,919 0.98 0.93
configure.ocaml no-host 298,997 280,783 306,253 306,899 300,162 1.02 1.00
configure.tcc no-host 5,222 4,222 5,555 5,653 5,124 1.06 0.98
configure.util-linux no-host 1,535,252 1,705,345 1,504,122 1,521,861 1,479,683 0.98 0.96
configure.yash no-host 173,278 159,546 176,419 177,162 172,734 1.02 1.00
hello-world no-host 150 83 395 399 182 2.63 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.8 3.9 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.3 1.7 8.8 9.2 5.2 2.68 1.60
configure.cpython no-host 34.4 34.5 34.5 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.6 28.5 1.00 1.00
configure.tcc no-host 26.1 26.1 26.3 26.3 26.2 1.01 1.00
configure.util-linux no-host 39.6 39.6 39.5 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.3 33.2 1.00 1.00
hello-world no-host 3.1 1.4 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,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 793 1 2 3.5 8.8 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,142 1 62 14.8 34.5 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,234 4 63 21.6 39.5 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,641 1 2 2.8 28.7 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,651 1 2 2.7 33.4 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 9.2 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,227 1 65 14.9 34.4 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,284 3 63 21.6 39.7 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,654 1 2 2.8 28.6 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,685 1 2 2.7 33.3 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,238 65,805 42,012 4,980 54,600 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 7 9 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 21 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 619 317 339 3.3 bash
9 no-host bin-true 442 272 176 1.7 dash
17 no-host bin-true 793 309 500 8.8 osh-native
25 no-host bin-true 808 304 519 9.2 osh-nosouffle
33 no-host bin-true 651 312 355 5.2 osh-static
2 no-host configure.cpython 13,462 7,399 6,446 34.4 bash
10 no-host configure.cpython 13,614 7,436 6,576 34.5 dash
18 no-host configure.cpython 13,142 6,920 6,496 34.5 osh-native
26 no-host configure.cpython 13,227 7,007 6,507 34.4 osh-nosouffle
34 no-host configure.cpython 12,654 7,007 5,878 34.5 osh-static
4 no-host configure.ocaml 3,612 1,444 1,210 28.6 bash
12 no-host configure.ocaml 3,538 1,423 1,139 28.7 dash
20 no-host configure.ocaml 3,641 1,453 1,227 28.7 osh-native
28 no-host configure.ocaml 3,654 1,465 1,230 28.6 osh-nosouffle
36 no-host configure.ocaml 3,599 1,456 1,175 28.5 osh-static
5 no-host configure.tcc 45 29 16 26.1 bash
13 no-host configure.tcc 40 24 16 26.1 dash
21 no-host configure.tcc 46 26 21 26.3 osh-native
29 no-host configure.tcc 46 23 24 26.3 osh-nosouffle
37 no-host configure.tcc 43 22 21 26.2 osh-static
3 no-host configure.util-linux 12,245 6,452 6,261 39.6 bash
11 no-host configure.util-linux 13,101 6,380 7,209 39.6 dash
19 no-host configure.util-linux 12,234 6,066 6,390 39.5 osh-native
27 no-host configure.util-linux 12,284 6,091 6,418 39.7 osh-nosouffle
35 no-host configure.util-linux 11,939 6,113 6,050 39.6 osh-static
6 no-host configure.yash 1,658 932 735 33.4 bash
14 no-host configure.yash 1,596 919 680 33.4 dash
22 no-host configure.yash 1,651 937 717 33.4 osh-native
30 no-host configure.yash 1,685 939 749 33.3 osh-nosouffle
38 no-host configure.yash 1,624 922 705 33.2 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 1 6.6 osh-native
24 no-host hello-world 3 1 2 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,390 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,169 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,311 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,400 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 103,453 0 0 0 8 0 1,999 56 bash
9 no-host bin-true 49,403 0 0 0 8 0 2,996 46 dash
17 no-host bin-true 132,244 0 0 0 16 0 2,001 80 osh-native
25 no-host bin-true 137,338 0 0 0 16 0 1,998 90 osh-nosouffle
33 no-host bin-true 112,108 0 0 0 8 0 1,999 85 osh-static
2 no-host configure.cpython 1,629,527 0 0 0 25,272 0 14,067 1,054 bash
10 no-host configure.cpython 1,638,862 0 0 0 25,272 0 14,103 1,032 dash
18 no-host configure.cpython 1,593,995 0 0 0 25,280 0 11,307 851 osh-native
26 no-host configure.cpython 1,611,936 0 0 0 25,280 0 11,293 916 osh-nosouffle
34 no-host configure.cpython 1,514,919 0 0 0 25,272 0 11,301 831 osh-static
4 no-host configure.ocaml 298,997 0 0 0 4,432 0 2,017 195 bash
12 no-host configure.ocaml 280,783 0 0 0 4,432 0 2,109 191 dash
20 no-host configure.ocaml 306,253 0 0 0 4,440 0 1,996 204 osh-native
28 no-host configure.ocaml 306,899 0 0 0 4,440 0 2,002 211 osh-nosouffle
36 no-host configure.ocaml 300,162 0 0 0 4,432 0 2,002 190 osh-static
5 no-host configure.tcc 5,222 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,555 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,653 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,124 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,252 1 0 0 35,936 0 18,614 1,057 bash
11 no-host configure.util-linux 1,705,345 0 0 0 35,936 0 17,068 1,225 dash
19 no-host configure.util-linux 1,504,122 2 0 0 35,952 0 16,151 870 osh-native
27 no-host configure.util-linux 1,521,861 1 0 0 35,944 0 16,182 886 osh-nosouffle
35 no-host configure.util-linux 1,479,683 0 0 0 35,936 0 16,149 868 osh-static
6 no-host configure.yash 173,278 0 0 0 3,616 0 879 96 bash
14 no-host configure.yash 159,546 0 0 0 3,624 0 999 92 dash
22 no-host configure.yash 176,419 0 0 0 3,632 0 857 93 osh-native
30 no-host configure.yash 177,162 0 0 0 3,632 0 856 89 osh-nosouffle
38 no-host configure.yash 172,734 0 0 0 3,624 0 856 105 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 395 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 182 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-5e2349f2
osh-nosouffle osh-27901013
osh-static osh-static-8fd2ab4a
host label host id
no-host no-host-9c670df1