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 18 10 474 22 21 25.74 1.18
bin-true no-host 664 526 2,314 798 783 3.49 1.20
configure.cpython no-host 14,472 14,535 28,236 14,689 14,634 1.95 1.01
configure.ocaml no-host 3,733 3,653 4,572 3,726 3,723 1.22 1.00
configure.tcc no-host 46 40 201 47 47 4.36 1.02
configure.util-linux no-host 13,473 14,325 30,690 13,853 13,773 2.28 1.03
configure.yash no-host 1,767 1,715 2,416 1,770 1,774 1.37 1.00
hello-world no-host 1 1 57 3 3 42.39 2.11

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,094 23,920 3,215 3,113 9.46 1.27
bin-true no-host 104,326 66,504 781,956 127,200 124,172 7.50 1.22
configure.cpython no-host 1,995,095 2,017,310 6,055,714 2,005,617 1,988,588 3.04 1.01
configure.ocaml no-host 374,051 353,607 611,281 375,876 375,356 1.63 1.00
configure.tcc no-host 6,093 4,997 23,767 6,475 6,426 3.90 1.06
configure.util-linux no-host 1,907,871 2,069,501 5,223,960 1,801,811 1,793,625 2.74 0.94
configure.yash no-host 234,060 222,248 365,459 235,227 234,810 1.56 1.00
hello-world no-host 150 80 3,997 347 339 26.65 2.31

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.4 22.7 8.9 8.7 5.24 2.06
bin-true no-host 2.9 1.4 18.3 8.3 7.6 6.34 2.86
configure.cpython no-host 29.3 29.3 29.1 29.1 29.2 0.99 0.99
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.6 19.7 19.6 19.7 1.00 0.99
configure.util-linux no-host 30.4 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.5 26.3 26.5 26.4 26.4 1.00 0.99
hello-world no-host 2.9 1.4 18.3 6.3 5.9 6.34 2.18

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.3 3,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 798 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,689 1 65 14.9 29.1 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,853 3 63 21.2 30.3 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,726 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.6 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,770 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 8.9 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 783 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,634 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,773 3 61 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,723 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,774 1 2 2.5 26.4 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.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 18 11 8 4.3 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 474 422 56 22.7 osh-cpython
31 no-host abuild-print-help 22 9 13 8.9 osh-native
39 no-host abuild-print-help 21 14 7 8.7 osh-native-souffle
1 no-host bin-true 664 309 386 2.9 bash
9 no-host bin-true 526 285 253 1.4 dash
17 no-host bin-true 2,314 770 1,804 18.3 osh-cpython
25 no-host bin-true 798 297 517 8.3 osh-native
33 no-host bin-true 783 292 508 7.6 osh-native-souffle
2 no-host configure.cpython 14,472 6,583 8,295 29.3 bash
10 no-host configure.cpython 14,535 6,474 8,494 29.3 dash
18 no-host configure.cpython 28,236 13,959 16,159 29.1 osh-cpython
26 no-host configure.cpython 14,689 6,429 8,547 29.1 osh-native
34 no-host configure.cpython 14,634 6,447 8,461 29.2 osh-native-souffle
4 no-host configure.ocaml 3,733 1,295 1,470 22.6 bash
12 no-host configure.ocaml 3,653 1,243 1,433 22.6 dash
20 no-host configure.ocaml 4,572 1,822 1,966 22.6 osh-cpython
28 no-host configure.ocaml 3,726 1,262 1,504 22.6 osh-native
36 no-host configure.ocaml 3,723 1,308 1,454 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 27 19.7 bash
13 no-host configure.tcc 40 18 22 19.6 dash
21 no-host configure.tcc 201 142 63 19.7 osh-cpython
29 no-host configure.tcc 47 23 25 19.6 osh-native
37 no-host configure.tcc 47 25 22 19.7 osh-native-souffle
3 no-host configure.util-linux 13,473 5,699 8,268 30.4 bash
11 no-host configure.util-linux 14,325 5,855 9,002 30.3 dash
19 no-host configure.util-linux 30,690 17,461 14,304 30.3 osh-cpython
27 no-host configure.util-linux 13,853 5,572 8,500 30.3 osh-native
35 no-host configure.util-linux 13,773 5,488 8,507 30.3 osh-native-souffle
6 no-host configure.yash 1,767 889 888 26.5 bash
14 no-host configure.yash 1,715 878 841 26.3 dash
22 no-host configure.yash 2,416 1,374 1,084 26.5 osh-cpython
30 no-host configure.yash 1,770 903 872 26.4 osh-native
38 no-host configure.yash 1,774 878 900 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 39 18 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 1 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 1 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,920 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,215 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,113 0 0 0 16 0 40 1 osh-native-souffle
1 no-host bin-true 104,326 0 0 0 8 0 1,988 316 bash
9 no-host bin-true 66,504 0 0 0 8 0 1,981 72 dash
17 no-host bin-true 781,956 0 0 0 8 0 1,989 432 osh-cpython
25 no-host bin-true 127,200 0 0 0 16 0 1,988 139 osh-native
33 no-host bin-true 124,172 0 0 0 16 0 1,985 79 osh-native-souffle
2 no-host configure.cpython 1,995,095 0 0 0 32,928 0 14,274 1,299 bash
10 no-host configure.cpython 2,017,310 0 0 0 32,992 0 14,338 1,232 dash
18 no-host configure.cpython 6,055,714 0 0 0 27,512 0 13,018 1,283 osh-cpython
26 no-host configure.cpython 2,005,617 0 0 0 27,520 0 13,162 1,227 osh-native
34 no-host configure.cpython 1,988,588 0 0 0 27,520 0 13,015 1,272 osh-native-souffle
4 no-host configure.ocaml 374,051 0 0 0 5,120 0 1,954 180 bash
12 no-host configure.ocaml 353,607 0 0 0 5,112 0 1,937 193 dash
20 no-host configure.ocaml 611,281 0 0 0 5,112 0 1,857 196 osh-cpython
28 no-host configure.ocaml 375,876 0 0 0 5,120 0 1,927 181 osh-native
36 no-host configure.ocaml 375,356 0 0 0 5,120 0 1,927 203 osh-native-souffle
5 no-host configure.tcc 6,093 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,997 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,767 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,475 0 0 0 104 0 46 3 osh-native
37 no-host configure.tcc 6,426 0 0 0 104 0 47 6 osh-native-souffle
3 no-host configure.util-linux 1,907,871 0 0 0 42,400 0 18,441 1,222 bash
11 no-host configure.util-linux 2,069,501 0 0 0 42,584 0 17,399 1,333 dash
19 no-host configure.util-linux 5,223,960 13 0 0 39,112 0 17,023 1,257 osh-cpython
27 no-host configure.util-linux 1,801,811 0 0 0 39,120 0 16,991 1,158 osh-native
35 no-host configure.util-linux 1,793,625 1 0 0 39,128 0 17,025 1,262 osh-native-souffle
6 no-host configure.yash 234,060 0 0 0 4,120 0 868 91 bash
14 no-host configure.yash 222,248 0 0 0 3,720 0 867 89 dash
22 no-host configure.yash 365,459 0 0 0 3,728 0 856 115 osh-cpython
30 no-host configure.yash 235,227 0 0 0 3,736 0 846 90 osh-native
38 no-host configure.yash 234,810 0 0 0 3,736 0 851 107 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,997 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e12c0b2f
dash dash-0ebcf347
osh-cpython osh-8a9df1c8
osh-native osh-bd4d1a7a
osh-native-souffle osh-aa6394c7
host label host id
no-host no-host-e4839999