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 489 22 22 25.27 1.16
bin-true no-host 694 555 2,361 823 823 3.40 1.19
configure.cpython no-host 15,435 15,526 29,892 15,412 15,912 1.94 1.00
configure.ocaml no-host 3,934 3,819 4,776 3,858 3,940 1.21 0.98
configure.tcc no-host 49 42 207 50 49 4.19 1.01
configure.util-linux no-host 14,173 15,447 32,659 14,557 14,920 2.30 1.03
configure.yash no-host 1,874 1,835 2,564 1,901 1,901 1.37 1.01
hello-world no-host 2 1 60 3 3 35.45 1.73

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,521 1,144 23,654 3,220 3,071 9.38 1.28
bin-true no-host 105,360 66,443 774,719 125,275 125,269 7.35 1.19
configure.cpython no-host 2,221,312 2,249,373 6,204,817 2,212,961 2,206,424 2.79 1.00
configure.ocaml no-host 410,708 391,303 647,013 413,192 412,299 1.58 1.01
configure.tcc no-host 6,552 5,497 24,090 6,961 6,906 3.68 1.06
configure.util-linux no-host 2,104,929 2,260,123 5,393,047 1,998,345 1,995,446 2.56 0.95
configure.yash no-host 256,248 245,245 388,881 257,570 257,606 1.52 1.01
hello-world no-host 151 82 3,947 343 339 26.14 2.27

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.4 9.2 8.5 5.18 2.12
bin-true no-host 3.0 1.4 18.4 8.1 7.9 6.09 2.70
configure.cpython no-host 27.5 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.1 19.3 19.4 19.1 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.0 30.1 30.4 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.4 18.2 6.2 5.9 6.62 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 823 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,412 1 65 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,557 3 64 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,858 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.1 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,901 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 823 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,912 2 66 14.9 27.5 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,920 3 65 21.2 30.4 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,940 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,901 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 16 4 4.3 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 489 436 57 22.4 osh-cpython
31 no-host abuild-print-help 22 20 3 9.2 osh-native
39 no-host abuild-print-help 22 14 8 8.5 osh-native-souffle
1 no-host bin-true 694 494 231 3.0 bash
9 no-host bin-true 555 425 137 1.4 dash
17 no-host bin-true 2,361 1,464 1,171 18.4 osh-cpython
25 no-host bin-true 823 595 242 8.1 osh-native
33 no-host bin-true 823 596 240 7.9 osh-native-souffle
2 no-host configure.cpython 15,435 9,340 6,502 27.5 bash
10 no-host configure.cpython 15,526 9,480 6,488 27.4 dash
18 no-host configure.cpython 29,892 18,287 13,577 27.4 osh-cpython
26 no-host configure.cpython 15,412 8,980 6,695 27.4 osh-native
34 no-host configure.cpython 15,912 9,373 6,649 27.5 osh-native-souffle
4 no-host configure.ocaml 3,934 1,732 1,234 20.6 bash
12 no-host configure.ocaml 3,819 1,604 1,235 20.6 dash
20 no-host configure.ocaml 4,776 2,227 1,768 20.6 osh-cpython
28 no-host configure.ocaml 3,858 1,684 1,214 20.6 osh-native
36 no-host configure.ocaml 3,940 1,658 1,319 20.4 osh-native-souffle
5 no-host configure.tcc 49 27 23 19.1 bash
13 no-host configure.tcc 42 22 20 19.3 dash
21 no-host configure.tcc 207 142 68 19.4 osh-cpython
29 no-host configure.tcc 50 32 18 19.1 osh-native
37 no-host configure.tcc 49 32 18 19.3 osh-native-souffle
3 no-host configure.util-linux 14,173 8,819 5,821 30.1 bash
11 no-host configure.util-linux 15,447 9,439 6,509 30.3 dash
19 no-host configure.util-linux 32,659 21,666 12,138 30.0 osh-cpython
27 no-host configure.util-linux 14,557 8,704 6,058 30.1 osh-native
35 no-host configure.util-linux 14,920 8,865 6,249 30.4 osh-native-souffle
6 no-host configure.yash 1,874 1,049 834 24.4 bash
14 no-host configure.yash 1,835 1,074 763 24.4 dash
22 no-host configure.yash 2,564 1,592 1,016 24.4 osh-cpython
30 no-host configure.yash 1,901 1,124 781 24.2 osh-native
38 no-host configure.yash 1,901 1,133 771 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 60 28 31 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 0 3 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,521 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,144 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,654 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,220 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,071 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,360 0 0 0 8 0 1,985 119 bash
9 no-host bin-true 66,443 0 0 0 8 0 1,986 44 dash
17 no-host bin-true 774,719 0 0 0 8 0 2,002 284 osh-cpython
25 no-host bin-true 125,275 0 0 0 16 0 1,998 89 osh-native
33 no-host bin-true 125,269 0 0 0 16 0 1,994 50 osh-native-souffle
2 no-host configure.cpython 2,221,312 0 0 0 32,928 0 14,527 997 bash
10 no-host configure.cpython 2,249,373 0 0 0 32,992 0 14,570 1,040 dash
18 no-host configure.cpython 6,204,817 0 0 0 27,512 0 13,199 1,238 osh-cpython
26 no-host configure.cpython 2,212,961 0 0 0 27,520 0 13,153 1,008 osh-native
34 no-host configure.cpython 2,206,424 0 0 0 27,520 0 13,239 993 osh-native-souffle
4 no-host configure.ocaml 410,708 0 0 0 5,120 0 1,960 158 bash
12 no-host configure.ocaml 391,303 0 0 0 5,112 0 1,904 144 dash
20 no-host configure.ocaml 647,013 0 0 0 5,112 0 1,853 185 osh-cpython
28 no-host configure.ocaml 413,192 0 0 0 5,120 0 1,929 201 osh-native
36 no-host configure.ocaml 412,299 0 0 0 5,120 0 1,934 156 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,497 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,090 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,961 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,906 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,104,929 0 0 0 42,400 0 18,574 1,058 bash
11 no-host configure.util-linux 2,260,123 8 0 0 42,584 0 17,545 1,050 dash
19 no-host configure.util-linux 5,393,047 4 0 0 39,112 0 16,950 1,160 osh-cpython
27 no-host configure.util-linux 1,998,345 4 0 0 39,128 0 17,009 960 osh-native
35 no-host configure.util-linux 1,995,446 0 0 0 39,136 0 16,986 1,117 osh-native-souffle
6 no-host configure.yash 256,248 0 0 0 4,120 0 864 80 bash
14 no-host configure.yash 245,245 0 0 0 3,720 0 866 86 dash
22 no-host configure.yash 388,881 0 0 0 3,728 0 851 94 osh-cpython
30 no-host configure.yash 257,570 0 0 0 3,736 0 846 89 osh-native
38 no-host configure.yash 257,606 0 0 0 3,736 0 850 74 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 0 1 dash
16 no-host hello-world 3,947 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b72e6b17
dash dash-0ebcf347
osh-cpython osh-c9ed8891
osh-native osh-3dada52f
osh-native-souffle osh-dfc36820
host label host id
no-host no-host-556df3ee