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.31 1.14
bin-true no-host 618 456 795 815 649 1.29 1.05
configure.cpython no-host 13,580 13,705 13,249 13,174 12,717 0.98 0.94
configure.ocaml no-host 3,608 3,554 3,639 3,644 3,621 1.01 1.00
configure.tcc no-host 46 41 46 47 43 1.00 0.94
configure.util-linux no-host 12,436 13,082 12,294 12,327 11,953 0.99 0.96
configure.yash no-host 1,657 1,610 1,666 1,663 1,641 1.01 0.99
hello-world no-host 1 1 3 3 1 2.45 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,372 1,173 3,320 3,398 2,835 1.40 1.20
bin-true no-host 100,418 49,355 130,253 137,042 112,067 1.30 1.12
configure.cpython no-host 1,627,475 1,646,289 1,595,062 1,597,367 1,515,912 0.98 0.93
configure.ocaml no-host 299,531 280,927 306,714 306,352 300,262 1.02 1.00
configure.tcc no-host 5,246 4,213 5,587 5,661 5,129 1.07 0.98
configure.util-linux no-host 1,536,120 1,699,579 1,514,194 1,521,583 1,480,056 0.99 0.96
configure.yash no-host 173,214 159,536 176,810 176,994 172,871 1.02 1.00
hello-world no-host 154 85 392 398 183 2.55 1.19

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.6 10.0 6.3 1.97 1.30
bin-true no-host 3.3 1.6 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.6 34.7 34.5 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.9 28.7 28.5 28.5 28.8 0.99 1.00
configure.tcc no-host 26.2 26.1 26.1 26.2 25.9 1.00 0.99
configure.util-linux no-host 39.7 39.6 39.6 39.9 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.3 2.00 1.00

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 795 1 2 3.5 8.7 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,249 1 65 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,294 3 63 21.6 39.6 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,639 1 2 2.8 28.5 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.1 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,666 1 2 2.7 33.3 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.6 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 815 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,174 1 65 14.9 34.5 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,327 3 64 21.6 39.9 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,644 1 2 2.8 28.5 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,663 1 2 2.7 33.4 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 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 16 7 10 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 11 11 9.6 osh-native
31 no-host abuild-print-help 22 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 618 313 346 3.3 bash
9 no-host bin-true 456 280 184 1.6 dash
17 no-host bin-true 795 314 501 8.7 osh-native
25 no-host bin-true 815 303 528 9.2 osh-nosouffle
33 no-host bin-true 649 322 344 5.1 osh-static
2 no-host configure.cpython 13,580 7,442 6,527 34.6 bash
10 no-host configure.cpython 13,705 7,479 6,631 34.7 dash
18 no-host configure.cpython 13,249 6,977 6,550 34.5 osh-native
26 no-host configure.cpython 13,174 7,014 6,444 34.5 osh-nosouffle
34 no-host configure.cpython 12,717 7,047 5,907 34.6 osh-static
4 no-host configure.ocaml 3,608 1,453 1,195 28.9 bash
12 no-host configure.ocaml 3,554 1,413 1,166 28.7 dash
20 no-host configure.ocaml 3,639 1,424 1,255 28.5 osh-native
28 no-host configure.ocaml 3,644 1,491 1,194 28.5 osh-nosouffle
36 no-host configure.ocaml 3,621 1,442 1,211 28.8 osh-static
5 no-host configure.tcc 46 28 19 26.2 bash
13 no-host configure.tcc 41 22 20 26.1 dash
21 no-host configure.tcc 46 26 21 26.1 osh-native
29 no-host configure.tcc 47 26 21 26.2 osh-nosouffle
37 no-host configure.tcc 43 22 22 25.9 osh-static
3 no-host configure.util-linux 12,436 6,642 6,271 39.7 bash
11 no-host configure.util-linux 13,082 6,494 7,082 39.6 dash
19 no-host configure.util-linux 12,294 6,114 6,401 39.6 osh-native
27 no-host configure.util-linux 12,327 6,156 6,408 39.9 osh-nosouffle
35 no-host configure.util-linux 11,953 6,195 5,979 39.7 osh-static
6 no-host configure.yash 1,657 967 699 33.4 bash
14 no-host configure.yash 1,610 915 696 33.4 dash
22 no-host configure.yash 1,666 959 710 33.3 osh-native
30 no-host configure.yash 1,663 916 750 33.4 osh-nosouffle
38 no-host configure.yash 1,641 928 717 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 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,372 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,173 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,320 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,398 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,418 0 0 0 8 0 1,998 72 bash
9 no-host bin-true 49,355 0 0 0 8 0 2,996 46 dash
17 no-host bin-true 130,253 0 0 0 16 0 1,997 81 osh-native
25 no-host bin-true 137,042 0 0 0 16 0 1,993 80 osh-nosouffle
33 no-host bin-true 112,067 0 0 0 8 0 1,997 90 osh-static
2 no-host configure.cpython 1,627,475 0 0 0 25,272 0 14,064 1,040 bash
10 no-host configure.cpython 1,646,289 0 0 0 25,272 0 14,099 997 dash
18 no-host configure.cpython 1,595,062 0 0 0 25,280 0 11,305 818 osh-native
26 no-host configure.cpython 1,597,367 0 0 0 25,280 0 11,304 834 osh-nosouffle
34 no-host configure.cpython 1,515,912 1 0 0 25,280 0 11,310 828 osh-static
4 no-host configure.ocaml 299,531 0 0 0 4,432 0 2,015 210 bash
12 no-host configure.ocaml 280,927 0 0 0 4,432 0 2,102 190 dash
20 no-host configure.ocaml 306,714 0 0 0 4,440 0 2,002 215 osh-native
28 no-host configure.ocaml 306,352 0 0 0 4,440 0 2,004 199 osh-nosouffle
36 no-host configure.ocaml 300,262 0 0 0 4,432 0 1,999 221 osh-static
5 no-host configure.tcc 5,246 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,587 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,661 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,120 0 0 0 35,936 0 18,982 1,119 bash
11 no-host configure.util-linux 1,699,579 0 0 0 35,936 0 17,081 1,201 dash
19 no-host configure.util-linux 1,514,194 2 0 0 35,952 0 16,220 1,045 osh-native
27 no-host configure.util-linux 1,521,583 0 0 0 35,944 0 16,145 912 osh-nosouffle
35 no-host configure.util-linux 1,480,056 1 0 0 35,936 0 16,213 945 osh-static
6 no-host configure.yash 173,214 0 0 0 3,616 0 877 88 bash
14 no-host configure.yash 159,536 0 0 0 3,616 0 1,001 109 dash
22 no-host configure.yash 176,810 0 0 0 3,624 0 857 94 osh-native
30 no-host configure.yash 176,994 0 0 0 3,624 0 858 95 osh-nosouffle
38 no-host configure.yash 172,871 0 0 0 3,616 0 858 115 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 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 398 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-f45eb654
osh-nosouffle osh-a7e667bd
osh-static osh-static-5d51e6cc
host label host id
no-host no-host-bba74091