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 468 22 21 24.34 1.15
bin-true no-host 677 543 2,283 818 818 3.37 1.21
configure.cpython no-host 15,151 15,109 28,886 15,312 15,410 1.91 1.01
configure.ocaml no-host 3,799 3,758 4,674 3,817 3,853 1.23 1.00
configure.tcc no-host 48 42 205 47 48 4.28 0.99
configure.util-linux no-host 13,980 14,864 31,595 14,461 14,493 2.26 1.03
configure.yash no-host 1,823 1,787 2,516 1,825 1,833 1.38 1.00
hello-world no-host 2 1 57 3 3 36.06 1.77

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,516 1,100 23,806 3,173 3,113 9.46 1.26
bin-true no-host 105,308 66,477 769,568 126,234 126,224 7.31 1.20
configure.cpython no-host 2,224,872 2,239,217 6,244,094 2,217,994 2,206,461 2.81 1.00
configure.ocaml no-host 410,735 390,825 647,939 413,004 412,581 1.58 1.01
configure.tcc no-host 6,542 5,477 24,140 6,971 6,922 3.69 1.07
configure.util-linux no-host 2,090,763 2,262,271 5,391,249 1,996,940 1,991,526 2.58 0.96
configure.yash no-host 256,829 244,703 388,350 257,749 257,983 1.51 1.00
hello-world no-host 154 78 3,962 346 341 25.73 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.3 3.4 22.7 8.9 8.7 5.25 2.06
bin-true no-host 3.0 1.4 18.2 8.0 7.5 6.05 2.65
configure.cpython no-host 27.4 27.4 27.1 27.4 27.4 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.3 19.1 19.4 19.3 19.4 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.4 29.9 30.0 1.01 0.99
configure.yash no-host 24.4 24.4 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.9 1.3 18.4 6.2 5.9 6.37 2.14

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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,312 1 64 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,461 3 61 21.2 29.9 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,817 0 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 47 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,825 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 8.9 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 818 1 2 2.6 7.5 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,410 1 61 14.9 27.4 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,493 3 62 21.2 30.0 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,853 1 2 2.6 20.4 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.4 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,833 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 18 2 4.3 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 468 415 57 22.7 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 21 18 4 8.7 osh-native-souffle
1 no-host bin-true 677 514 197 3.0 bash
9 no-host bin-true 543 420 133 1.4 dash
17 no-host bin-true 2,283 1,518 1,019 18.2 osh-cpython
25 no-host bin-true 818 571 262 8.0 osh-native
33 no-host bin-true 818 588 245 7.5 osh-native-souffle
2 no-host configure.cpython 15,151 9,086 6,480 27.4 bash
10 no-host configure.cpython 15,109 9,144 6,393 27.4 dash
18 no-host configure.cpython 28,886 17,862 12,893 27.1 osh-cpython
26 no-host configure.cpython 15,312 9,174 6,419 27.4 osh-native
34 no-host configure.cpython 15,410 9,152 6,395 27.4 osh-native-souffle
4 no-host configure.ocaml 3,799 1,659 1,180 20.6 bash
12 no-host configure.ocaml 3,758 1,642 1,136 20.6 dash
20 no-host configure.ocaml 4,674 2,268 1,619 20.4 osh-cpython
28 no-host configure.ocaml 3,817 1,633 1,220 20.6 osh-native
36 no-host configure.ocaml 3,853 1,690 1,199 20.4 osh-native-souffle
5 no-host configure.tcc 48 33 15 19.3 bash
13 no-host configure.tcc 42 28 15 19.1 dash
21 no-host configure.tcc 205 158 50 19.4 osh-cpython
29 no-host configure.tcc 47 30 18 19.3 osh-native
37 no-host configure.tcc 48 30 19 19.4 osh-native-souffle
3 no-host configure.util-linux 13,980 8,890 5,557 30.1 bash
11 no-host configure.util-linux 14,864 9,123 6,237 30.1 dash
19 no-host configure.util-linux 31,595 20,880 11,812 30.4 osh-cpython
27 no-host configure.util-linux 14,461 8,578 6,087 29.9 osh-native
35 no-host configure.util-linux 14,493 8,797 5,897 30.0 osh-native-souffle
6 no-host configure.yash 1,823 1,053 779 24.4 bash
14 no-host configure.yash 1,787 998 793 24.4 dash
22 no-host configure.yash 2,516 1,589 968 24.4 osh-cpython
30 no-host configure.yash 1,825 1,036 792 24.2 osh-native
38 no-host configure.yash 1,833 1,055 782 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 57 33 24 18.4 osh-cpython
24 no-host hello-world 3 3 0 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,516 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,806 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,113 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,308 0 0 0 8 0 1,993 50 bash
9 no-host bin-true 66,477 0 0 0 8 0 1,986 28 dash
17 no-host bin-true 769,568 0 0 0 8 0 1,990 238 osh-cpython
25 no-host bin-true 126,234 0 0 0 16 0 1,992 52 osh-native
33 no-host bin-true 126,224 0 0 0 16 0 1,986 84 osh-native-souffle
2 no-host configure.cpython 2,224,872 1 0 0 32,928 0 14,505 1,049 bash
10 no-host configure.cpython 2,239,217 0 0 0 32,992 0 14,655 1,001 dash
18 no-host configure.cpython 6,244,094 0 0 0 27,512 0 13,201 1,311 osh-cpython
26 no-host configure.cpython 2,217,994 0 0 0 27,520 0 13,220 976 osh-native
34 no-host configure.cpython 2,206,461 0 0 0 27,520 0 13,228 928 osh-native-souffle
4 no-host configure.ocaml 410,735 0 0 0 5,120 0 1,945 158 bash
12 no-host configure.ocaml 390,825 0 0 0 5,112 0 1,868 141 dash
20 no-host configure.ocaml 647,939 1 0 0 5,112 0 1,855 170 osh-cpython
28 no-host configure.ocaml 413,004 0 0 0 5,120 0 1,920 168 osh-native
36 no-host configure.ocaml 412,581 0 0 0 5,120 0 1,931 150 osh-native-souffle
5 no-host configure.tcc 6,542 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,140 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,922 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,090,763 0 0 0 42,400 0 18,557 1,043 bash
11 no-host configure.util-linux 2,262,271 1 0 0 42,584 0 17,377 1,007 dash
19 no-host configure.util-linux 5,391,249 13 0 0 39,112 0 17,000 1,166 osh-cpython
27 no-host configure.util-linux 1,996,940 1 0 0 39,120 0 16,997 986 osh-native
35 no-host configure.util-linux 1,991,526 0 0 0 39,128 0 16,981 1,067 osh-native-souffle
6 no-host configure.yash 256,829 0 0 0 4,120 0 869 73 bash
14 no-host configure.yash 244,703 0 0 0 3,720 0 868 78 dash
22 no-host configure.yash 388,350 0 0 0 3,728 0 852 243 osh-cpython
30 no-host configure.yash 257,749 0 0 0 3,736 0 848 65 osh-native
38 no-host configure.yash 257,983 0 0 0 3,736 0 848 91 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,962 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-dc2dfc95
dash dash-0ebcf347
osh-cpython osh-7e3447fe
osh-native osh-a2cdd0d2
osh-native-souffle osh-462da9d1
host label host id
no-host no-host-556df3ee