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 460 22 21 23.65 1.11
bin-true no-host 676 540 2,290 802 800 3.39 1.19
configure.cpython no-host 14,778 14,825 28,257 14,939 15,039 1.91 1.01
configure.ocaml no-host 3,765 3,692 4,615 3,767 3,779 1.23 1.00
configure.tcc no-host 47 42 201 48 48 4.24 1.02
configure.util-linux no-host 13,779 14,589 30,907 14,129 14,070 2.24 1.03
configure.yash no-host 1,795 1,732 2,413 1,793 1,786 1.34 1.00
hello-world no-host 1 1 55 4 3 38.08 2.42

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,524 1,125 23,843 3,163 3,111 9.45 1.25
bin-true no-host 108,397 66,455 772,255 125,274 125,278 7.12 1.16
configure.cpython no-host 2,223,892 2,243,995 6,242,046 2,217,629 2,204,356 2.81 1.00
configure.ocaml no-host 410,080 391,322 647,244 412,722 412,578 1.58 1.01
configure.tcc no-host 6,590 5,473 24,114 6,947 6,886 3.66 1.05
configure.util-linux no-host 2,095,659 2,259,389 5,389,672 1,996,153 1,986,116 2.57 0.95
configure.yash no-host 256,828 243,474 389,386 257,977 257,773 1.52 1.00
hello-world no-host 154 83 3,934 345 338 25.55 2.24

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.0 8.5 5.25 2.09
bin-true no-host 2.9 1.6 18.2 7.9 7.7 6.32 2.73
configure.cpython no-host 27.5 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.0 30.1 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 24.5 1.00 1.01
hello-world no-host 2.9 1.4 18.2 6.4 5.9 6.32 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 4 0 0 0.2 6.4 3,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.9 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 14,939 1 57 14.9 27.4 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,129 3 57 21.2 30.0 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 3,767 1 2 2.6 20.6 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,793 1 2 2.5 24.4 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.9 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 800 1 2 2.6 7.7 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,039 1 56 14.9 27.3 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,070 2 56 21.2 30.3 2,702,514 53,694 65,650 108,693 1,290,641 1,303,180 32,239 41 131,300 1
configure.ocaml no-host 3,779 0 2 2.6 20.6 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,786 1 2 2.5 24.5 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 17 3 4.3 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 460 423 40 22.7 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 676 502 204 2.9 bash
9 no-host bin-true 540 427 121 1.6 dash
17 no-host bin-true 2,290 1,557 989 18.2 osh-cpython
25 no-host bin-true 802 564 252 7.9 osh-native
33 no-host bin-true 800 573 243 7.7 osh-native-souffle
2 no-host configure.cpython 14,778 9,035 6,136 27.5 bash
10 no-host configure.cpython 14,825 8,950 6,292 27.4 dash
18 no-host configure.cpython 28,257 17,333 12,749 27.4 osh-cpython
26 no-host configure.cpython 14,939 8,973 6,233 27.4 osh-native
34 no-host configure.cpython 15,039 8,818 6,362 27.3 osh-native-souffle
4 no-host configure.ocaml 3,765 1,661 1,133 20.6 bash
12 no-host configure.ocaml 3,692 1,543 1,167 20.4 dash
20 no-host configure.ocaml 4,615 2,218 1,604 20.6 osh-cpython
28 no-host configure.ocaml 3,767 1,669 1,137 20.6 osh-native
36 no-host configure.ocaml 3,779 1,640 1,175 20.6 osh-native-souffle
5 no-host configure.tcc 47 27 20 19.4 bash
13 no-host configure.tcc 42 28 14 19.4 dash
21 no-host configure.tcc 201 162 43 19.3 osh-cpython
29 no-host configure.tcc 48 24 25 19.3 osh-native
37 no-host configure.tcc 48 35 13 19.3 osh-native-souffle
3 no-host configure.util-linux 13,779 8,661 5,576 30.0 bash
11 no-host configure.util-linux 14,589 8,949 6,130 30.1 dash
19 no-host configure.util-linux 30,907 20,717 11,259 30.1 osh-cpython
27 no-host configure.util-linux 14,129 8,465 5,864 30.0 osh-native
35 no-host configure.util-linux 14,070 8,567 5,694 30.3 osh-native-souffle
6 no-host configure.yash 1,795 1,014 789 24.2 bash
14 no-host configure.yash 1,732 1,044 692 24.4 dash
22 no-host configure.yash 2,413 1,507 947 24.2 osh-cpython
30 no-host configure.yash 1,793 1,093 704 24.4 osh-native
38 no-host configure.yash 1,786 1,040 750 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 32 23 18.2 osh-cpython
24 no-host hello-world 4 0 4 6.4 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,524 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,125 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,843 0 0 0 8 0 44 10 osh-cpython
31 no-host abuild-print-help 3,163 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,111 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 108,397 0 0 0 8 0 1,993 42 bash
9 no-host bin-true 66,455 0 0 0 8 0 1,992 102 dash
17 no-host bin-true 772,255 0 0 0 8 0 1,997 141 osh-cpython
25 no-host bin-true 125,274 0 0 0 16 0 1,991 51 osh-native
33 no-host bin-true 125,278 0 0 0 16 0 1,992 154 osh-native-souffle
2 no-host configure.cpython 2,223,892 0 0 0 32,928 0 14,521 947 bash
10 no-host configure.cpython 2,243,995 0 0 0 32,992 0 14,530 1,034 dash
18 no-host configure.cpython 6,242,046 1 0 0 27,512 0 13,284 1,166 osh-cpython
26 no-host configure.cpython 2,217,629 0 0 0 27,520 0 13,168 846 osh-native
34 no-host configure.cpython 2,204,356 1 0 0 27,520 0 13,301 1,011 osh-native-souffle
4 no-host configure.ocaml 410,080 0 0 0 5,120 0 1,949 144 bash
12 no-host configure.ocaml 391,322 0 0 0 5,112 0 1,867 151 dash
20 no-host configure.ocaml 647,244 0 0 0 5,112 0 1,858 194 osh-cpython
28 no-host configure.ocaml 412,722 0 0 0 5,120 0 1,924 184 osh-native
36 no-host configure.ocaml 412,578 0 0 0 5,120 0 1,930 165 osh-native-souffle
5 no-host configure.tcc 6,590 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,114 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,947 0 0 0 104 0 47 9 osh-native
37 no-host configure.tcc 6,886 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,095,659 0 0 0 42,400 0 18,583 1,016 bash
11 no-host configure.util-linux 2,259,389 0 0 0 42,592 0 17,440 948 dash
19 no-host configure.util-linux 5,389,672 14 0 0 39,112 0 17,065 1,217 osh-cpython
27 no-host configure.util-linux 1,996,153 1 0 0 39,128 0 17,002 1,103 osh-native
35 no-host configure.util-linux 1,986,116 0 0 0 39,136 0 16,957 903 osh-native-souffle
6 no-host configure.yash 256,828 0 0 0 4,120 0 876 73 bash
14 no-host configure.yash 243,474 0 0 0 3,720 0 868 80 dash
22 no-host configure.yash 389,386 0 0 0 3,728 0 853 82 osh-cpython
30 no-host configure.yash 257,977 0 0 0 3,736 0 850 93 osh-native
38 no-host configure.yash 257,773 0 0 0 3,736 0 848 88 osh-native-souffle
0 no-host hello-world 154 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,934 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 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-a9514dbe
dash dash-0ebcf347
osh-cpython osh-930b7696
osh-native osh-8483408a
osh-native-souffle osh-8ade9dbf
host label host id
no-host no-host-556df3ee