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 461 22 21 24.34 1.14
bin-true no-host 653 531 2,290 795 792 3.51 1.22
configure.cpython no-host 14,380 14,444 28,145 14,560 14,561 1.96 1.01
configure.ocaml no-host 3,690 3,629 4,546 3,709 3,700 1.23 1.01
configure.tcc no-host 46 40 201 47 47 4.38 1.03
configure.util-linux no-host 13,380 14,232 30,713 13,744 13,694 2.30 1.03
configure.yash no-host 1,759 1,710 2,395 1,763 1,760 1.36 1.00
hello-world no-host 1 1 57 3 3 44.49 2.19

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,535 1,084 23,914 3,171 3,094 9.43 1.25
bin-true no-host 106,383 66,497 782,717 125,133 126,253 7.36 1.18
configure.cpython no-host 1,996,787 2,019,497 6,050,204 1,995,769 1,989,957 3.03 1.00
configure.ocaml no-host 373,657 354,093 611,433 376,492 375,858 1.64 1.01
configure.tcc no-host 6,124 5,023 23,777 6,498 6,420 3.88 1.06
configure.util-linux no-host 1,901,328 2,063,943 5,250,606 1,806,711 1,796,992 2.76 0.95
configure.yash no-host 233,531 221,770 367,514 234,426 234,319 1.57 1.00
hello-world no-host 148 76 4,002 346 337 27.04 2.34

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.5 3.5 22.6 9.0 8.5 5.07 2.03
bin-true no-host 2.9 1.4 18.4 8.4 7.7 6.38 2.91
configure.cpython no-host 29.2 29.3 29.1 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.5 22.8 22.6 22.6 22.5 1.01 1.01
configure.tcc no-host 19.7 19.6 19.5 19.5 19.7 0.99 0.99
configure.util-linux no-host 30.2 30.3 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.3 26.3 26.5 26.5 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.4 5.8 6.34 2.23

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.4 3,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 795 1 2 2.6 8.4 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,560 2 63 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 13,744 3 61 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,709 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.5 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,763 1 2 2.5 26.5 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.0 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.8 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.7 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,561 1 64 14.9 29.1 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,694 3 60 21.2 30.3 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,700 1 2 2.6 22.5 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,760 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 21 1 2 2.8 8.5 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.5 bash
15 no-host abuild-print-help 9 2 7 3.5 dash
23 no-host abuild-print-help 461 396 68 22.6 osh-cpython
31 no-host abuild-print-help 22 12 10 9.0 osh-native
39 no-host abuild-print-help 21 13 8 8.5 osh-native-souffle
1 no-host bin-true 653 310 377 2.9 bash
9 no-host bin-true 531 275 268 1.4 dash
17 no-host bin-true 2,290 774 1,778 18.4 osh-cpython
25 no-host bin-true 795 289 521 8.4 osh-native
33 no-host bin-true 792 285 526 7.7 osh-native-souffle
2 no-host configure.cpython 14,380 6,491 8,311 29.2 bash
10 no-host configure.cpython 14,444 6,525 8,360 29.3 dash
18 no-host configure.cpython 28,145 13,963 16,056 29.1 osh-cpython
26 no-host configure.cpython 14,560 6,379 8,468 29.2 osh-native
34 no-host configure.cpython 14,561 6,386 8,454 29.1 osh-native-souffle
4 no-host configure.ocaml 3,690 1,285 1,447 22.5 bash
12 no-host configure.ocaml 3,629 1,261 1,388 22.8 dash
20 no-host configure.ocaml 4,546 1,827 1,930 22.6 osh-cpython
28 no-host configure.ocaml 3,709 1,292 1,458 22.6 osh-native
36 no-host configure.ocaml 3,700 1,283 1,458 22.5 osh-native-souffle
5 no-host configure.tcc 46 18 29 19.7 bash
13 no-host configure.tcc 40 22 18 19.6 dash
21 no-host configure.tcc 201 137 67 19.5 osh-cpython
29 no-host configure.tcc 47 22 26 19.5 osh-native
37 no-host configure.tcc 47 18 29 19.7 osh-native-souffle
3 no-host configure.util-linux 13,380 5,753 8,125 30.2 bash
11 no-host configure.util-linux 14,232 5,833 8,924 30.3 dash
19 no-host configure.util-linux 30,713 17,468 14,325 30.2 osh-cpython
27 no-host configure.util-linux 13,744 5,405 8,565 30.2 osh-native
35 no-host configure.util-linux 13,694 5,414 8,503 30.3 osh-native-souffle
6 no-host configure.yash 1,759 884 885 26.4 bash
14 no-host configure.yash 1,710 877 838 26.3 dash
22 no-host configure.yash 2,395 1,299 1,138 26.3 osh-cpython
30 no-host configure.yash 1,763 899 869 26.5 osh-native
38 no-host configure.yash 1,760 858 908 26.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 36 21 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 0 3 5.8 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,535 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,084 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,914 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,094 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,383 0 0 0 8 0 1,979 86 bash
9 no-host bin-true 66,497 0 0 0 8 0 1,987 92 dash
17 no-host bin-true 782,717 0 0 0 8 0 1,990 239 osh-cpython
25 no-host bin-true 125,133 0 0 0 16 0 1,988 462 osh-native
33 no-host bin-true 126,253 0 0 0 16 0 1,972 135 osh-native-souffle
2 no-host configure.cpython 1,996,787 0 0 0 32,928 0 14,228 1,271 bash
10 no-host configure.cpython 2,019,497 0 0 0 32,992 0 14,342 1,349 dash
18 no-host configure.cpython 6,050,204 0 0 0 27,512 0 13,091 1,300 osh-cpython
26 no-host configure.cpython 1,995,769 0 0 0 27,520 0 13,027 1,163 osh-native
34 no-host configure.cpython 1,989,957 0 0 0 27,520 0 13,013 1,187 osh-native-souffle
4 no-host configure.ocaml 373,657 0 0 0 5,120 0 1,951 208 bash
12 no-host configure.ocaml 354,093 0 0 0 5,112 0 1,933 204 dash
20 no-host configure.ocaml 611,433 0 0 0 5,112 0 1,850 214 osh-cpython
28 no-host configure.ocaml 376,492 0 0 0 5,120 0 1,930 204 osh-native
36 no-host configure.ocaml 375,858 0 0 0 5,120 0 1,925 186 osh-native-souffle
5 no-host configure.tcc 6,124 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,023 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,777 0 0 0 96 0 53 2 osh-cpython
29 no-host configure.tcc 6,498 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,420 0 0 0 104 0 46 5 osh-native-souffle
3 no-host configure.util-linux 1,901,328 0 0 0 42,408 0 18,418 1,154 bash
11 no-host configure.util-linux 2,063,943 1 0 0 42,592 0 17,280 1,367 dash
19 no-host configure.util-linux 5,250,606 8 0 0 39,112 0 17,010 1,243 osh-cpython
27 no-host configure.util-linux 1,806,711 0 0 0 39,120 0 16,972 1,260 osh-native
35 no-host configure.util-linux 1,796,992 0 0 0 39,128 0 16,944 1,419 osh-native-souffle
6 no-host configure.yash 233,531 0 0 0 4,120 0 869 115 bash
14 no-host configure.yash 221,770 0 0 0 3,720 0 871 97 dash
22 no-host configure.yash 367,514 0 0 0 3,728 0 856 111 osh-cpython
30 no-host configure.yash 234,426 0 0 0 3,736 0 846 105 osh-native
38 no-host configure.yash 234,319 0 0 0 3,736 0 847 87 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,002 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-dd9bacb3
dash dash-0ebcf347
osh-cpython osh-8c90f30b
osh-native osh-a936b36a
osh-native-souffle osh-4ca4557e
host label host id
no-host no-host-e4839999