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 10 480 23 21 25.23 1.20
bin-true no-host 687 545 2,322 830 833 3.38 1.21
configure.cpython no-host 15,459 15,452 29,715 15,735 15,935 1.92 1.02
configure.ocaml no-host 3,878 3,877 4,733 3,978 3,871 1.22 1.03
configure.tcc no-host 48 43 198 51 50 4.11 1.06
configure.util-linux no-host 14,489 15,289 32,380 14,695 14,893 2.23 1.01
configure.yash no-host 1,841 1,851 2,516 1,923 1,896 1.37 1.04
hello-world no-host 2 1 53 3 3 32.76 1.86

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,538 1,133 23,361 3,139 3,091 9.20 1.24
bin-true no-host 104,346 67,470 774,778 126,866 123,886 7.43 1.22
configure.cpython no-host 2,222,259 2,237,603 6,234,232 2,226,799 2,213,016 2.81 1.00
configure.ocaml no-host 410,694 391,534 646,925 413,427 412,473 1.58 1.01
configure.tcc no-host 6,524 5,474 23,712 6,953 6,928 3.63 1.07
configure.util-linux no-host 2,100,499 2,262,417 5,339,042 1,998,008 1,996,249 2.54 0.95
configure.yash no-host 256,335 245,081 386,806 258,258 257,876 1.51 1.01
hello-world no-host 155 83 3,747 348 341 24.17 2.25

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.4 21.8 9.0 8.7 4.88 2.03
bin-true no-host 3.0 1.4 17.7 8.3 7.5 5.87 2.74
configure.cpython no-host 27.1 27.4 27.4 27.5 27.4 1.01 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.4 20.6 1.01 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.4 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.6 6.3 5.9 6.09 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,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 830 1 2 2.6 8.3 154,745 13,282 2,884 9,745 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,735 1 64 15.0 27.5 1,772,727 49,952 28,593 86,398 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 14,695 3 61 21.3 30.3 2,703,495 29,752 65,877 109,676 1,320,583 1,273,236 32,239 41 131,754 1
configure.ocaml no-host 3,978 1 2 2.6 20.4 150,101 11,129 5,223 7,532 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,586 30,586 0 1,521 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,923 1 2 2.6 24.4 139,754 8,027 6,686 6,337 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,329 64,537 42,747 4,572 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 833 1 2 2.6 7.5 154,744 13,070 2,822 9,746 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,935 1 65 15.0 27.4 1,772,726 49,112 28,531 86,399 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 14,893 3 64 21.3 30.1 2,703,495 44,712 65,815 109,678 1,320,583 1,273,234 32,239 41 131,630 1
configure.ocaml no-host 3,871 1 2 2.6 20.6 150,101 11,067 5,161 7,534 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,523 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,896 1 2 2.6 24.4 139,754 7,965 6,624 6,339 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,525 57,230 277 3 85,370 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 15 5 4.5 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 480 444 40 21.8 osh-cpython
31 no-host abuild-print-help 23 21 3 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 687 507 211 3.0 bash
9 no-host bin-true 545 418 136 1.4 dash
17 no-host bin-true 2,322 1,530 1,061 17.7 osh-cpython
25 no-host bin-true 830 575 268 8.3 osh-native
33 no-host bin-true 833 575 273 7.5 osh-native-souffle
2 no-host configure.cpython 15,459 9,216 6,649 27.1 bash
10 no-host configure.cpython 15,452 9,367 6,501 27.4 dash
18 no-host configure.cpython 29,715 17,931 13,736 27.4 osh-cpython
26 no-host configure.cpython 15,735 9,395 6,583 27.5 osh-native
34 no-host configure.cpython 15,935 9,311 6,762 27.4 osh-native-souffle
4 no-host configure.ocaml 3,878 1,641 1,264 20.4 bash
12 no-host configure.ocaml 3,877 1,739 1,159 20.6 dash
20 no-host configure.ocaml 4,733 2,396 1,552 20.6 osh-cpython
28 no-host configure.ocaml 3,978 1,766 1,253 20.4 osh-native
36 no-host configure.ocaml 3,871 1,698 1,210 20.6 osh-native-souffle
5 no-host configure.tcc 48 24 25 19.3 bash
13 no-host configure.tcc 43 37 7 19.3 dash
21 no-host configure.tcc 198 142 60 19.4 osh-cpython
29 no-host configure.tcc 51 22 29 19.4 osh-native
37 no-host configure.tcc 50 18 32 19.3 osh-native-souffle
3 no-host configure.util-linux 14,489 8,943 6,024 30.1 bash
11 no-host configure.util-linux 15,289 9,366 6,415 30.4 dash
19 no-host configure.util-linux 32,380 21,550 11,967 30.1 osh-cpython
27 no-host configure.util-linux 14,695 8,920 5,954 30.3 osh-native
35 no-host configure.util-linux 14,893 8,915 6,172 30.1 osh-native-souffle
6 no-host configure.yash 1,841 1,038 812 24.2 bash
14 no-host configure.yash 1,851 1,024 830 24.4 dash
22 no-host configure.yash 2,516 1,614 945 24.4 osh-cpython
30 no-host configure.yash 1,923 1,128 799 24.4 osh-native
38 no-host configure.yash 1,896 1,089 811 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 53 29 24 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,538 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,361 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,139 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,346 0 0 0 8 0 1,987 67 bash
9 no-host bin-true 67,470 0 0 0 8 0 1,982 33 dash
17 no-host bin-true 774,778 0 0 0 8 0 1,996 309 osh-cpython
25 no-host bin-true 126,866 0 0 0 16 0 1,991 65 osh-native
33 no-host bin-true 123,886 0 0 0 16 0 1,993 85 osh-native-souffle
2 no-host configure.cpython 2,222,259 0 0 0 32,928 0 14,438 1,002 bash
10 no-host configure.cpython 2,237,603 0 0 0 32,992 0 14,672 1,001 dash
18 no-host configure.cpython 6,234,232 0 0 0 27,512 0 13,236 1,295 osh-cpython
26 no-host configure.cpython 2,226,799 0 0 0 27,520 0 13,176 902 osh-native
34 no-host configure.cpython 2,213,016 0 0 0 27,520 0 13,279 1,115 osh-native-souffle
4 no-host configure.ocaml 410,694 0 0 0 5,120 0 1,951 144 bash
12 no-host configure.ocaml 391,534 0 0 0 5,112 0 1,938 136 dash
20 no-host configure.ocaml 646,925 0 0 0 5,112 0 1,856 165 osh-cpython
28 no-host configure.ocaml 413,427 0 0 0 5,120 0 1,929 170 osh-native
36 no-host configure.ocaml 412,473 0 0 0 5,120 0 1,935 144 osh-native-souffle
5 no-host configure.tcc 6,524 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,712 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,953 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,928 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,100,499 0 0 0 42,400 0 18,644 1,129 bash
11 no-host configure.util-linux 2,262,417 0 0 0 42,584 0 17,441 1,169 dash
19 no-host configure.util-linux 5,339,042 14 0 0 39,136 0 16,980 1,402 osh-cpython
27 no-host configure.util-linux 1,998,008 0 0 0 39,120 0 16,965 1,026 osh-native
35 no-host configure.util-linux 1,996,249 1 0 0 39,136 0 16,976 954 osh-native-souffle
6 no-host configure.yash 256,335 0 0 0 4,120 0 869 74 bash
14 no-host configure.yash 245,081 0 0 0 3,720 0 867 74 dash
22 no-host configure.yash 386,806 0 0 0 3,728 0 852 90 osh-cpython
30 no-host configure.yash 258,258 0 0 0 3,736 0 848 93 osh-native
38 no-host configure.yash 257,876 0 0 0 3,736 0 850 78 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,747 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a10165e8
dash dash-0ebcf347
osh-cpython osh-cab8546a
osh-native osh-a424cfb8
osh-native-souffle osh-c7e28b9b
host label host id
no-host no-host-556df3ee