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.30 1.15
bin-true no-host 617 441 801 798 650 1.30 1.05
configure.cpython no-host 13,510 13,586 13,180 13,247 12,757 0.98 0.94
configure.ocaml no-host 3,605 3,549 3,652 3,678 3,612 1.01 1.00
configure.tcc no-host 45 40 46 46 42 1.01 0.93
configure.util-linux no-host 12,310 13,045 12,228 12,296 11,888 0.99 0.97
configure.yash no-host 1,689 1,607 1,664 1,664 1,634 0.98 0.97
hello-world no-host 1 1 3 3 1 2.44 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,401 1,212 3,313 3,435 2,853 1.38 1.19
bin-true no-host 102,455 49,411 135,013 132,376 112,733 1.32 1.10
configure.cpython no-host 1,621,888 1,642,338 1,590,854 1,602,008 1,523,678 0.98 0.94
configure.ocaml no-host 298,852 280,698 307,275 306,521 300,177 1.03 1.00
configure.tcc no-host 5,253 4,206 5,621 5,678 5,125 1.07 0.98
configure.util-linux no-host 1,540,922 1,703,008 1,501,802 1,514,582 1,452,528 0.97 0.94
configure.yash no-host 173,377 159,475 176,484 177,044 172,967 1.02 1.00
hello-world no-host 154 86 387 397 182 2.51 1.18

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.1 6.4 1.97 1.32
bin-true no-host 3.1 1.4 8.7 9.0 5.2 2.75 1.67
configure.cpython no-host 34.5 34.4 34.4 34.4 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.0 26.1 26.1 0.99 0.99
configure.util-linux no-host 39.7 39.7 39.5 39.9 39.5 0.99 0.99
configure.yash no-host 33.3 33.3 33.3 33.3 33.3 1.00 1.00
hello-world no-host 3.3 1.4 6.4 6.8 3.4 1.96 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.4 3,908 3,908 0 722 1,922 1,264 2 0 50,000 0
bin-true no-host 801 1 2 3.5 8.7 151,893 10,756 2,970 14,781 72,396 64,716 3,008 3 50,000 0
configure.cpython no-host 13,180 1 63 14.8 34.4 1,750,755 35,384 28,941 93,077 869,713 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,228 3 62 21.6 39.5 2,705,291 37,456 66,329 119,745 1,291,808 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,652 1 2 2.8 28.7 149,693 12,648 6,563 9,213 70,296 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.0 30,542 30,542 0 1,680 14,473 14,389 271 0 50,000 0
configure.yash no-host 1,664 1 2 2.7 33.3 143,455 11,461 6,617 7,166 70,509 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,224 65,790 42,000 4,975 54,598 57,651 277 3 84,000 1
hello-world no-host 3 0 0 0.3 6.8 3,907 3,907 0 721 1,922 1,264 2 0 50,000 0
bin-true no-host 798 1 2 3.5 9.0 151,893 10,760 2,974 14,781 72,396 64,716 3,008 3 50,000 0
configure.cpython no-host 13,247 1 63 14.8 34.4 1,750,754 35,389 28,946 93,076 869,713 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,296 3 62 21.6 39.9 2,705,291 37,462 66,335 119,745 1,291,808 1,293,738 32,527 42 132,670 1
configure.ocaml no-host 3,678 1 2 2.8 28.6 149,693 12,653 6,568 9,213 70,296 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,542 30,542 0 1,680 14,473 14,389 271 0 50,000 0
configure.yash no-host 1,664 1 2 2.7 33.3 143,455 11,465 6,621 7,166 70,509 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,224 65,794 42,004 4,975 54,598 57,651 277 3 84,008 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 6 4 3.9 dash
23 no-host abuild-print-help 20 9 11 9.6 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 8 10 6.4 osh-static
1 no-host bin-true 617 315 343 3.1 bash
9 no-host bin-true 441 270 176 1.4 dash
17 no-host bin-true 801 305 515 8.7 osh-native
25 no-host bin-true 798 311 504 9.0 osh-nosouffle
33 no-host bin-true 650 322 343 5.2 osh-static
2 no-host configure.cpython 13,510 7,409 6,483 34.5 bash
10 no-host configure.cpython 13,586 7,412 6,549 34.4 dash
18 no-host configure.cpython 13,180 7,002 6,452 34.4 osh-native
26 no-host configure.cpython 13,247 7,106 6,417 34.4 osh-nosouffle
34 no-host configure.cpython 12,757 7,089 5,906 34.4 osh-static
4 no-host configure.ocaml 3,605 1,471 1,174 28.6 bash
12 no-host configure.ocaml 3,549 1,421 1,153 28.7 dash
20 no-host configure.ocaml 3,652 1,413 1,280 28.7 osh-native
28 no-host configure.ocaml 3,678 1,496 1,222 28.6 osh-nosouffle
36 no-host configure.ocaml 3,612 1,442 1,200 28.7 osh-static
5 no-host configure.tcc 45 19 27 26.3 bash
13 no-host configure.tcc 40 25 16 26.3 dash
21 no-host configure.tcc 46 22 24 26.0 osh-native
29 no-host configure.tcc 46 28 18 26.1 osh-nosouffle
37 no-host configure.tcc 42 19 24 26.1 osh-static
3 no-host configure.util-linux 12,310 6,573 6,199 39.7 bash
11 no-host configure.util-linux 13,045 6,341 7,188 39.7 dash
19 no-host configure.util-linux 12,228 6,139 6,304 39.5 osh-native
27 no-host configure.util-linux 12,296 6,158 6,362 39.9 osh-nosouffle
35 no-host configure.util-linux 11,888 6,155 5,943 39.5 osh-static
6 no-host configure.yash 1,689 947 744 33.3 bash
14 no-host configure.yash 1,607 918 691 33.3 dash
22 no-host configure.yash 1,664 922 744 33.3 osh-native
30 no-host configure.yash 1,664 969 698 33.3 osh-nosouffle
38 no-host configure.yash 1,634 924 713 33.3 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 3 0 6.8 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,401 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,212 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,313 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,435 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,853 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,455 0 0 0 8 0 1,998 49 bash
9 no-host bin-true 49,411 0 0 0 8 0 2,997 57 dash
17 no-host bin-true 135,013 0 0 0 16 0 1,997 72 osh-native
25 no-host bin-true 132,376 0 0 0 16 0 1,996 71 osh-nosouffle
33 no-host bin-true 112,733 0 0 0 8 0 2,000 89 osh-static
2 no-host configure.cpython 1,621,888 0 0 0 25,272 0 14,072 1,022 bash
10 no-host configure.cpython 1,642,338 0 0 0 25,272 0 14,090 1,008 dash
18 no-host configure.cpython 1,590,854 0 0 0 25,280 0 11,307 803 osh-native
26 no-host configure.cpython 1,602,008 0 0 0 25,280 0 11,309 820 osh-nosouffle
34 no-host configure.cpython 1,523,678 0 0 0 25,280 0 11,297 815 osh-static
4 no-host configure.ocaml 298,852 0 0 0 4,432 0 2,017 197 bash
12 no-host configure.ocaml 280,698 0 0 0 4,432 0 2,104 183 dash
20 no-host configure.ocaml 307,275 0 0 0 4,440 0 1,997 214 osh-native
28 no-host configure.ocaml 306,521 0 0 0 4,440 0 1,999 200 osh-nosouffle
36 no-host configure.ocaml 300,177 0 0 0 4,432 0 2,001 226 osh-static
5 no-host configure.tcc 5,253 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,621 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,678 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,125 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,540,922 1 0 232 35,944 0 18,977 1,056 bash
11 no-host configure.util-linux 1,703,008 1 0 0 35,936 0 17,084 1,300 dash
19 no-host configure.util-linux 1,501,802 1 0 0 35,952 0 16,205 896 osh-native
27 no-host configure.util-linux 1,514,582 1 0 0 35,944 0 16,135 980 osh-nosouffle
35 no-host configure.util-linux 1,452,528 2 0 0 35,936 0 16,154 928 osh-static
6 no-host configure.yash 173,377 0 0 0 3,616 0 900 87 bash
14 no-host configure.yash 159,475 0 0 0 3,616 0 1,003 102 dash
22 no-host configure.yash 176,484 0 0 0 3,624 0 855 103 osh-native
30 no-host configure.yash 177,044 0 0 0 3,624 0 860 87 osh-nosouffle
38 no-host configure.yash 172,967 0 0 0 3,616 0 856 101 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 387 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 397 0 0 0 16 0 1 0 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-86538f39
osh-nosouffle osh-dbe07ad0
osh-static osh-static-77f74d4e
host label host id
no-host no-host-9c670df1