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 477 22 21 24.94 1.16
bin-true no-host 675 544 2,337 815 812 3.46 1.21
configure.cpython no-host 15,406 15,386 29,352 15,703 15,937 1.91 1.02
configure.ocaml no-host 3,874 3,849 4,853 3,893 3,901 1.25 1.00
configure.tcc no-host 48 43 209 50 50 4.31 1.03
configure.util-linux no-host 14,481 15,007 32,462 14,770 14,825 2.24 1.02
configure.yash no-host 1,833 1,819 2,532 1,867 1,881 1.38 1.02
hello-world no-host 2 1 57 3 3 37.86 1.94

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,132 23,815 3,203 3,113 9.44 1.27
bin-true no-host 107,378 65,466 774,287 126,287 124,299 7.21 1.18
configure.cpython no-host 2,217,114 2,246,479 6,244,707 2,213,220 2,217,004 2.82 1.00
configure.ocaml no-host 411,014 390,572 647,438 413,058 412,631 1.58 1.00
configure.tcc no-host 6,556 5,495 24,126 6,993 6,928 3.68 1.07
configure.util-linux no-host 2,095,725 2,260,367 5,402,833 1,996,574 1,990,917 2.58 0.95
configure.yash no-host 256,587 244,563 388,862 258,481 258,275 1.52 1.01
hello-world no-host 153 80 3,931 342 333 25.69 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.8 9.2 8.7 5.28 2.12
bin-true no-host 3.0 1.4 18.2 8.3 7.6 6.05 2.74
configure.cpython no-host 27.3 27.5 27.3 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.7 20.6 1.00 1.01
configure.tcc no-host 19.3 19.4 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.0 30.1 30.3 30.3 30.1 1.01 1.01
configure.yash no-host 24.4 24.2 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.4 18.1 6.3 5.8 6.58 2.29

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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.3 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,703 1 65 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,770 3 63 21.2 30.3 2,702,514 53,767 65,692 108,691 1,290,641 1,303,182 32,239 41 131,384 1
configure.ocaml no-host 3,893 1 2 2.6 20.7 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,867 1 2 2.5 24.2 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.2 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.8 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.6 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,937 1 65 14.9 27.5 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,825 3 62 21.2 30.1 2,702,514 53,694 65,630 108,693 1,290,641 1,303,180 32,239 41 131,260 1
configure.ocaml no-host 3,901 1 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 50 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,881 1 2 2.5 24.2 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.7 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 19 0 4.3 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 477 422 58 22.8 osh-cpython
31 no-host abuild-print-help 22 13 9 9.2 osh-native
39 no-host abuild-print-help 21 17 5 8.7 osh-native-souffle
1 no-host bin-true 675 490 215 3.0 bash
9 no-host bin-true 544 415 136 1.4 dash
17 no-host bin-true 2,337 1,525 1,075 18.2 osh-cpython
25 no-host bin-true 815 584 245 8.3 osh-native
33 no-host bin-true 812 574 252 7.6 osh-native-souffle
2 no-host configure.cpython 15,406 9,301 6,484 27.3 bash
10 no-host configure.cpython 15,386 9,181 6,633 27.5 dash
18 no-host configure.cpython 29,352 17,859 13,405 27.3 osh-cpython
26 no-host configure.cpython 15,703 9,221 6,753 27.4 osh-native
34 no-host configure.cpython 15,937 9,280 6,797 27.5 osh-native-souffle
4 no-host configure.ocaml 3,874 1,682 1,233 20.6 bash
12 no-host configure.ocaml 3,849 1,599 1,269 20.6 dash
20 no-host configure.ocaml 4,853 2,347 1,725 20.6 osh-cpython
28 no-host configure.ocaml 3,893 1,699 1,234 20.7 osh-native
36 no-host configure.ocaml 3,901 1,619 1,318 20.6 osh-native-souffle
5 no-host configure.tcc 48 36 13 19.3 bash
13 no-host configure.tcc 43 28 15 19.4 dash
21 no-host configure.tcc 209 167 46 19.3 osh-cpython
29 no-host configure.tcc 50 29 21 19.4 osh-native
37 no-host configure.tcc 50 30 21 19.3 osh-native-souffle
3 no-host configure.util-linux 14,481 9,075 5,888 30.0 bash
11 no-host configure.util-linux 15,007 9,156 6,348 30.1 dash
19 no-host configure.util-linux 32,462 21,333 12,250 30.3 osh-cpython
27 no-host configure.util-linux 14,770 8,760 6,193 30.3 osh-native
35 no-host configure.util-linux 14,825 8,811 6,209 30.1 osh-native-souffle
6 no-host configure.yash 1,833 1,089 752 24.4 bash
14 no-host configure.yash 1,819 1,100 722 24.2 dash
22 no-host configure.yash 2,532 1,472 1,105 24.4 osh-cpython
30 no-host configure.yash 1,867 1,123 748 24.2 osh-native
38 no-host configure.yash 1,881 1,050 834 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 57 40 17 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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 41 4 bash
15 no-host abuild-print-help 1,132 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,815 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,113 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,378 0 0 0 8 0 1,987 46 bash
9 no-host bin-true 65,466 0 0 0 8 0 1,991 44 dash
17 no-host bin-true 774,287 0 0 0 8 0 1,997 246 osh-cpython
25 no-host bin-true 126,287 0 0 0 16 0 1,986 54 osh-native
33 no-host bin-true 124,299 0 0 0 16 0 1,994 145 osh-native-souffle
2 no-host configure.cpython 2,217,114 1 0 0 32,928 0 14,510 1,106 bash
10 no-host configure.cpython 2,246,479 0 0 0 32,992 0 14,619 899 dash
18 no-host configure.cpython 6,244,707 0 0 0 27,512 0 13,264 1,168 osh-cpython
26 no-host configure.cpython 2,213,220 0 0 0 27,520 0 13,271 955 osh-native
34 no-host configure.cpython 2,217,004 1 0 0 27,520 0 13,213 939 osh-native-souffle
4 no-host configure.ocaml 411,014 0 0 0 5,120 0 1,952 144 bash
12 no-host configure.ocaml 390,572 0 0 0 5,112 0 1,887 144 dash
20 no-host configure.ocaml 647,438 0 0 0 5,112 0 1,858 171 osh-cpython
28 no-host configure.ocaml 413,058 0 0 0 5,120 0 1,926 172 osh-native
36 no-host configure.ocaml 412,631 0 0 0 5,120 0 1,927 150 osh-native-souffle
5 no-host configure.tcc 6,556 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,126 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,993 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,928 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,095,725 0 0 0 42,400 0 18,711 1,250 bash
11 no-host configure.util-linux 2,260,367 1 0 0 42,584 0 17,490 973 dash
19 no-host configure.util-linux 5,402,833 15 0 0 39,144 0 16,984 1,137 osh-cpython
27 no-host configure.util-linux 1,996,574 0 0 0 39,128 0 16,984 944 osh-native
35 no-host configure.util-linux 1,990,917 0 0 0 39,136 0 16,937 933 osh-native-souffle
6 no-host configure.yash 256,587 0 0 0 4,120 0 868 81 bash
14 no-host configure.yash 244,563 0 0 0 3,720 0 865 74 dash
22 no-host configure.yash 388,862 0 0 0 3,728 0 848 98 osh-cpython
30 no-host configure.yash 258,481 0 0 0 3,736 0 844 82 osh-native
38 no-host configure.yash 258,275 0 0 0 3,736 0 849 89 osh-native-souffle
0 no-host hello-world 153 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,931 0 0 0 8 0 7 8 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 333 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-1ad18f8f
dash dash-0ebcf347
osh-cpython osh-13afa70b
osh-native osh-de8522bc
osh-native-souffle osh-734d9086
host label host id
no-host no-host-556df3ee