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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 9 474 22 20 25.22 1.15
bin-true no-host 652 525 2,318 787 792 3.55 1.21
configure.cpython no-host 14,669 14,592 28,248 14,733 14,657 1.93 1.00
configure.ocaml no-host 3,751 3,656 4,586 3,736 3,725 1.22 1.00
configure.tcc no-host 46 40 203 47 47 4.38 1.02
configure.util-linux no-host 13,579 14,310 31,275 14,007 13,763 2.30 1.03
configure.yash no-host 1,787 1,703 2,443 1,773 1,772 1.37 0.99
hello-world no-host 1 1 55 3 3 37.78 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,528 1,091 23,942 3,244 3,136 9.47 1.28
bin-true no-host 106,419 66,427 780,977 126,125 125,233 7.34 1.19
configure.cpython no-host 1,996,396 2,020,067 6,054,583 1,995,049 1,990,180 3.03 1.00
configure.ocaml no-host 373,061 353,915 610,836 376,064 375,173 1.64 1.01
configure.tcc no-host 6,102 5,009 23,767 6,454 6,446 3.89 1.06
configure.util-linux no-host 1,898,456 2,067,901 5,235,214 1,809,208 1,799,153 2.76 0.95
configure.yash no-host 233,100 221,708 367,275 235,247 235,053 1.58 1.01
hello-world no-host 147 74 3,995 343 338 27.18 2.33

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.7 9.2 8.7 5.25 2.12
bin-true no-host 3.0 1.4 18.4 8.3 7.6 6.10 2.74
configure.cpython no-host 29.3 29.1 29.3 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.7 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.4 19.5 19.7 19.7 0.99 1.00
configure.util-linux no-host 30.2 30.2 30.3 30.2 30.2 1.00 1.00
configure.yash no-host 26.4 26.1 26.3 26.4 26.5 1.00 1.00
hello-world no-host 2.8 1.3 18.3 6.2 5.9 6.64 2.24

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.2 6.2 3,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 787 1 2 2.6 8.3 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,733 1 66 14.9 29.2 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 14,007 3 65 21.2 30.2 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,736 1 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,773 1 2 2.5 26.4 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 792 1 2 2.6 7.6 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,657 1 63 14.9 29.2 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,763 3 60 21.2 30.2 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,725 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,772 1 2 2.5 26.5 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 19 10 10 4.3 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 474 413 63 22.7 osh-cpython
31 no-host abuild-print-help 22 13 9 9.2 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 652 299 386 3.0 bash
9 no-host bin-true 525 267 269 1.4 dash
17 no-host bin-true 2,318 773 1,810 18.4 osh-cpython
25 no-host bin-true 787 287 515 8.3 osh-native
33 no-host bin-true 792 301 507 7.6 osh-native-souffle
2 no-host configure.cpython 14,669 6,668 8,420 29.3 bash
10 no-host configure.cpython 14,592 6,682 8,315 29.1 dash
18 no-host configure.cpython 28,248 13,964 16,172 29.3 osh-cpython
26 no-host configure.cpython 14,733 6,421 8,593 29.2 osh-native
34 no-host configure.cpython 14,657 6,384 8,544 29.2 osh-native-souffle
4 no-host configure.ocaml 3,751 1,276 1,497 22.7 bash
12 no-host configure.ocaml 3,656 1,284 1,392 22.6 dash
20 no-host configure.ocaml 4,586 1,871 1,932 22.6 osh-cpython
28 no-host configure.ocaml 3,736 1,254 1,522 22.6 osh-native
36 no-host configure.ocaml 3,725 1,294 1,470 22.6 osh-native-souffle
5 no-host configure.tcc 46 27 20 19.7 bash
13 no-host configure.tcc 40 17 24 19.4 dash
21 no-host configure.tcc 203 135 72 19.5 osh-cpython
29 no-host configure.tcc 47 17 30 19.7 osh-native
37 no-host configure.tcc 47 22 25 19.7 osh-native-souffle
3 no-host configure.util-linux 13,579 5,802 8,272 30.2 bash
11 no-host configure.util-linux 14,310 5,770 9,058 30.2 dash
19 no-host configure.util-linux 31,275 17,792 14,573 30.3 osh-cpython
27 no-host configure.util-linux 14,007 5,620 8,609 30.2 osh-native
35 no-host configure.util-linux 13,763 5,531 8,449 30.2 osh-native-souffle
6 no-host configure.yash 1,787 904 893 26.4 bash
14 no-host configure.yash 1,703 870 837 26.1 dash
22 no-host configure.yash 2,443 1,331 1,153 26.3 osh-cpython
30 no-host configure.yash 1,773 876 902 26.4 osh-native
38 no-host configure.yash 1,772 865 911 26.5 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.3 dash
16 no-host hello-world 55 32 23 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 1 2 5.9 osh-native-souffle

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,528 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,942 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,244 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,136 0 0 0 16 0 40 0 osh-native-souffle
1 no-host bin-true 106,419 0 0 0 8 0 1,985 72 bash
9 no-host bin-true 66,427 0 0 0 8 0 1,977 67 dash
17 no-host bin-true 780,977 0 0 0 8 0 1,987 249 osh-cpython
25 no-host bin-true 126,125 0 0 0 16 0 1,979 192 osh-native
33 no-host bin-true 125,233 0 0 0 16 0 1,987 168 osh-native-souffle
2 no-host configure.cpython 1,996,396 0 0 0 32,928 0 14,194 1,140 bash
10 no-host configure.cpython 2,020,067 0 0 0 32,992 0 14,346 1,255 dash
18 no-host configure.cpython 6,054,583 1 0 0 27,512 0 13,009 1,265 osh-cpython
26 no-host configure.cpython 1,995,049 0 0 0 27,520 0 13,119 1,100 osh-native
34 no-host configure.cpython 1,990,180 0 0 0 27,520 0 13,055 1,143 osh-native-souffle
4 no-host configure.ocaml 373,061 0 0 0 5,120 0 1,957 169 bash
12 no-host configure.ocaml 353,915 0 0 0 5,112 0 1,941 168 dash
20 no-host configure.ocaml 610,836 0 0 0 5,112 0 1,856 206 osh-cpython
28 no-host configure.ocaml 376,064 0 0 0 5,120 0 1,920 204 osh-native
36 no-host configure.ocaml 375,173 0 0 0 5,120 0 1,932 198 osh-native-souffle
5 no-host configure.tcc 6,102 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,009 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,767 0 0 0 96 0 52 4 osh-cpython
29 no-host configure.tcc 6,454 0 0 0 104 0 47 13 osh-native
37 no-host configure.tcc 6,446 0 0 0 104 0 47 7 osh-native-souffle
3 no-host configure.util-linux 1,898,456 0 0 0 42,400 0 18,482 1,197 bash
11 no-host configure.util-linux 2,067,901 0 0 0 42,584 0 17,319 1,536 dash
19 no-host configure.util-linux 5,235,214 13 0 0 39,120 0 17,005 1,352 osh-cpython
27 no-host configure.util-linux 1,809,208 0 0 0 39,120 0 16,995 1,288 osh-native
35 no-host configure.util-linux 1,799,153 1 0 0 39,128 0 16,968 1,250 osh-native-souffle
6 no-host configure.yash 233,100 0 0 0 4,120 0 867 94 bash
14 no-host configure.yash 221,708 0 0 0 3,720 0 868 87 dash
22 no-host configure.yash 367,275 0 0 0 3,728 0 853 217 osh-cpython
30 no-host configure.yash 235,247 0 0 0 3,736 0 850 88 osh-native
38 no-host configure.yash 235,053 0 0 0 3,736 0 845 96 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 74 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,995 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a83aaeae
dash dash-0ebcf347
osh-cpython osh-affaf450
osh-native osh-d74bde1f
osh-native-souffle osh-217f3b29
host label host id
no-host no-host-e4839999