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 478 22 21 25.68 1.18
bin-true no-host 647 524 2,309 797 789 3.57 1.23
configure.cpython no-host 14,778 14,928 29,176 15,117 15,070 1.97 1.02
configure.ocaml no-host 3,802 3,745 4,683 3,826 3,814 1.23 1.01
configure.tcc no-host 47 40 208 48 48 4.40 1.02
configure.util-linux no-host 13,892 14,721 31,853 14,211 14,157 2.29 1.02
configure.yash no-host 1,829 1,772 2,492 1,821 1,816 1.36 1.00
hello-world no-host 1 1 58 3 3 43.07 2.08

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,557 1,111 23,943 3,186 3,106 9.36 1.25
bin-true no-host 102,397 66,411 777,014 125,194 125,208 7.59 1.22
configure.cpython no-host 2,000,142 2,017,491 6,056,281 2,003,868 1,992,937 3.03 1.00
configure.ocaml no-host 373,265 354,345 610,417 376,492 375,151 1.64 1.01
configure.tcc no-host 6,092 4,993 23,803 6,480 6,468 3.91 1.06
configure.util-linux no-host 1,899,957 2,063,335 5,247,614 1,805,801 1,800,832 2.76 0.95
configure.yash no-host 232,552 222,315 366,544 234,704 234,618 1.58 1.01
hello-world no-host 149 76 3,987 344 337 26.76 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 9.0 8.7 5.25 2.09
bin-true no-host 3.0 1.4 18.4 8.0 7.7 6.10 2.65
configure.cpython no-host 29.2 29.1 29.1 29.3 29.3 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.6 19.5 19.7 19.8 19.6 1.01 1.01
configure.util-linux no-host 30.2 30.3 30.2 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.5 26.2 26.4 1.01 1.00
hello-world no-host 2.8 1.4 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 797 1 2 2.6 8.0 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 15,117 1 66 14.9 29.3 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,211 3 65 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,826 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 48 0 0 1.3 19.8 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,821 1 2 2.5 26.2 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.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 789 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 15,070 1 68 14.9 29.3 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 14,157 3 66 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,814 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 48 0 0 1.3 19.6 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,816 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 19 8 11 4.3 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 478 425 57 22.7 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 647 304 376 3.0 bash
9 no-host bin-true 524 276 260 1.4 dash
17 no-host bin-true 2,309 787 1,788 18.4 osh-cpython
25 no-host bin-true 797 296 518 8.0 osh-native
33 no-host bin-true 789 298 508 7.7 osh-native-souffle
2 no-host configure.cpython 14,778 6,638 8,564 29.2 bash
10 no-host configure.cpython 14,928 6,727 8,636 29.1 dash
18 no-host configure.cpython 29,176 14,462 16,665 29.1 osh-cpython
26 no-host configure.cpython 15,117 6,672 8,728 29.3 osh-native
34 no-host configure.cpython 15,070 6,562 8,797 29.3 osh-native-souffle
4 no-host configure.ocaml 3,802 1,296 1,529 22.5 bash
12 no-host configure.ocaml 3,745 1,359 1,408 22.6 dash
20 no-host configure.ocaml 4,683 1,912 1,993 22.6 osh-cpython
28 no-host configure.ocaml 3,826 1,324 1,544 22.6 osh-native
36 no-host configure.ocaml 3,814 1,325 1,528 22.6 osh-native-souffle
5 no-host configure.tcc 47 24 24 19.6 bash
13 no-host configure.tcc 40 21 19 19.5 dash
21 no-host configure.tcc 208 139 73 19.7 osh-cpython
29 no-host configure.tcc 48 25 23 19.8 osh-native
37 no-host configure.tcc 48 23 25 19.6 osh-native-souffle
3 no-host configure.util-linux 13,892 5,930 8,465 30.2 bash
11 no-host configure.util-linux 14,721 5,951 9,311 30.3 dash
19 no-host configure.util-linux 31,853 18,202 14,777 30.2 osh-cpython
27 no-host configure.util-linux 14,211 5,671 8,759 30.3 osh-native
35 no-host configure.util-linux 14,157 5,665 8,724 30.3 osh-native-souffle
6 no-host configure.yash 1,829 941 890 26.3 bash
14 no-host configure.yash 1,772 865 911 26.3 dash
22 no-host configure.yash 2,492 1,338 1,199 26.5 osh-cpython
30 no-host configure.yash 1,821 882 943 26.2 osh-native
38 no-host configure.yash 1,816 950 871 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 43 15 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,557 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,943 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 38 3 osh-native
39 no-host abuild-print-help 3,106 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 102,397 0 0 0 8 0 1,990 148 bash
9 no-host bin-true 66,411 0 0 0 8 0 1,972 108 dash
17 no-host bin-true 777,014 0 0 0 8 0 1,984 356 osh-cpython
25 no-host bin-true 125,194 0 0 0 16 0 1,970 134 osh-native
33 no-host bin-true 125,208 0 0 0 16 0 1,982 207 osh-native-souffle
2 no-host configure.cpython 2,000,142 1 0 0 32,928 0 14,192 1,304 bash
10 no-host configure.cpython 2,017,491 0 0 0 32,992 0 14,319 1,199 dash
18 no-host configure.cpython 6,056,281 1 0 0 27,512 0 13,058 1,117 osh-cpython
26 no-host configure.cpython 2,003,868 0 0 0 27,520 0 13,133 1,157 osh-native
34 no-host configure.cpython 1,992,937 0 0 0 27,520 0 13,012 1,047 osh-native-souffle
4 no-host configure.ocaml 373,265 0 0 0 5,120 0 1,948 190 bash
12 no-host configure.ocaml 354,345 0 0 0 5,112 0 1,942 188 dash
20 no-host configure.ocaml 610,417 0 0 0 5,112 0 1,857 173 osh-cpython
28 no-host configure.ocaml 376,492 0 0 0 5,120 0 1,919 182 osh-native
36 no-host configure.ocaml 375,151 0 0 0 5,120 0 1,921 194 osh-native-souffle
5 no-host configure.tcc 6,092 0 0 0 104 0 49 8 bash
13 no-host configure.tcc 4,993 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,803 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,480 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,468 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,899,957 0 0 0 42,400 0 18,489 1,273 bash
11 no-host configure.util-linux 2,063,335 1 0 0 42,584 0 17,316 1,426 dash
19 no-host configure.util-linux 5,247,614 6 0 0 39,120 0 17,067 1,333 osh-cpython
27 no-host configure.util-linux 1,805,801 0 0 0 39,120 0 16,967 1,174 osh-native
35 no-host configure.util-linux 1,800,832 6 0 0 39,128 0 16,968 1,095 osh-native-souffle
6 no-host configure.yash 232,552 0 0 0 4,120 0 869 88 bash
14 no-host configure.yash 222,315 0 0 0 3,720 0 874 84 dash
22 no-host configure.yash 366,544 0 0 0 3,728 0 852 80 osh-cpython
30 no-host configure.yash 234,704 0 0 0 3,736 0 847 89 osh-native
38 no-host configure.yash 234,618 0 0 0 3,736 0 850 89 osh-native-souffle
0 no-host hello-world 149 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 3,987 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-03bbc581
dash dash-0ebcf347
osh-cpython osh-54d60ac2
osh-native osh-ae398b9d
osh-native-souffle osh-ad8de071
host label host id
no-host no-host-e4839999