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 462 22 22 23.96 1.16
bin-true no-host 679 545 2,308 812 810 3.40 1.20
configure.cpython no-host 15,253 15,299 29,714 15,291 15,645 1.95 1.00
configure.ocaml no-host 3,815 3,782 4,645 3,869 3,861 1.22 1.01
configure.tcc no-host 48 42 205 50 50 4.31 1.05
configure.util-linux no-host 13,969 15,011 31,706 14,346 14,484 2.27 1.03
configure.yash no-host 1,837 1,781 2,455 1,879 1,876 1.34 1.02
hello-world no-host 2 1 58 3 3 38.26 1.92

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,550 1,090 23,757 3,199 3,098 9.32 1.25
bin-true no-host 107,388 66,434 769,673 125,318 123,273 7.17 1.17
configure.cpython no-host 2,222,449 2,252,716 6,238,025 2,220,483 2,218,141 2.81 1.00
configure.ocaml no-host 410,524 390,957 648,701 412,889 412,493 1.58 1.01
configure.tcc no-host 6,560 5,490 24,205 6,959 6,903 3.69 1.06
configure.util-linux no-host 2,090,643 2,265,873 5,388,731 2,001,246 1,992,551 2.58 0.96
configure.yash no-host 257,019 245,071 389,189 257,821 258,140 1.51 1.00
hello-world no-host 153 80 3,961 347 338 25.89 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.5 3.4 22.3 9.2 8.5 5.01 2.06
bin-true no-host 2.9 1.4 18.4 8.1 7.7 6.37 2.82
configure.cpython no-host 27.3 27.5 27.3 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 20.6 1.01 1.00
configure.tcc no-host 19.1 19.4 19.1 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.1 30.0 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.5 24.4 1.00 1.01
hello-world no-host 2.8 1.4 18.2 6.4 6.0 6.62 2.33

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.4 3,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,291 3 64 14.9 27.3 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,346 3 60 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,869 1 2 2.6 20.4 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.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,879 1 2 2.5 24.5 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 6.0 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 810 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,645 1 64 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,484 3 61 21.2 30.0 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,861 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.4 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,876 1 2 2.5 24.4 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 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 13 7 4.5 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 462 413 52 22.3 osh-cpython
31 no-host abuild-print-help 22 12 11 9.2 osh-native
39 no-host abuild-print-help 22 17 5 8.5 osh-native-souffle
1 no-host bin-true 679 531 182 2.9 bash
9 no-host bin-true 545 418 137 1.4 dash
17 no-host bin-true 2,308 1,496 1,074 18.4 osh-cpython
25 no-host bin-true 812 573 251 8.1 osh-native
33 no-host bin-true 810 575 251 7.7 osh-native-souffle
2 no-host configure.cpython 15,253 9,225 6,441 27.3 bash
10 no-host configure.cpython 15,299 9,199 6,533 27.5 dash
18 no-host configure.cpython 29,714 17,798 13,835 27.3 osh-cpython
26 no-host configure.cpython 15,291 8,989 6,566 27.3 osh-native
34 no-host configure.cpython 15,645 8,931 6,746 27.3 osh-native-souffle
4 no-host configure.ocaml 3,815 1,587 1,267 20.4 bash
12 no-host configure.ocaml 3,782 1,570 1,230 20.6 dash
20 no-host configure.ocaml 4,645 2,206 1,649 20.6 osh-cpython
28 no-host configure.ocaml 3,869 1,678 1,227 20.4 osh-native
36 no-host configure.ocaml 3,861 1,619 1,277 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 25 19.1 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 205 169 39 19.1 osh-cpython
29 no-host configure.tcc 50 24 26 19.3 osh-native
37 no-host configure.tcc 50 26 24 19.4 osh-native-souffle
3 no-host configure.util-linux 13,969 8,793 5,645 30.1 bash
11 no-host configure.util-linux 15,011 9,203 6,278 30.3 dash
19 no-host configure.util-linux 31,706 21,170 11,608 30.1 osh-cpython
27 no-host configure.util-linux 14,346 8,700 5,843 30.0 osh-native
35 no-host configure.util-linux 14,484 8,655 6,034 30.0 osh-native-souffle
6 no-host configure.yash 1,837 1,072 774 24.2 bash
14 no-host configure.yash 1,781 1,114 670 24.4 dash
22 no-host configure.yash 2,455 1,480 1,018 24.2 osh-cpython
30 no-host configure.yash 1,879 1,054 829 24.5 osh-native
38 no-host configure.yash 1,876 1,076 804 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 45 12 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.4 osh-native
32 no-host hello-world 3 3 0 6.0 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,550 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,757 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,199 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,098 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,388 0 0 0 8 0 1,994 35 bash
9 no-host bin-true 66,434 0 0 0 8 0 1,979 35 dash
17 no-host bin-true 769,673 0 0 0 8 0 1,998 278 osh-cpython
25 no-host bin-true 125,318 0 0 0 16 0 1,992 54 osh-native
33 no-host bin-true 123,273 0 0 0 16 0 1,990 70 osh-native-souffle
2 no-host configure.cpython 2,222,449 0 0 0 32,928 0 14,496 1,108 bash
10 no-host configure.cpython 2,252,716 0 0 0 32,992 0 14,597 1,234 dash
18 no-host configure.cpython 6,238,025 0 0 0 27,512 0 13,237 1,056 osh-cpython
26 no-host configure.cpython 2,220,483 0 0 0 27,520 0 13,311 1,019 osh-native
34 no-host configure.cpython 2,218,141 0 0 0 27,520 0 13,157 961 osh-native-souffle
4 no-host configure.ocaml 410,524 0 0 0 5,120 0 1,947 165 bash
12 no-host configure.ocaml 390,957 0 0 0 5,112 0 1,915 147 dash
20 no-host configure.ocaml 648,701 0 0 0 5,112 0 1,858 183 osh-cpython
28 no-host configure.ocaml 412,889 0 0 0 5,120 0 1,926 162 osh-native
36 no-host configure.ocaml 412,493 0 0 0 5,120 0 1,928 150 osh-native-souffle
5 no-host configure.tcc 6,560 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 24,205 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,903 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,090,643 2 0 0 42,400 0 18,585 973 bash
11 no-host configure.util-linux 2,265,873 2 0 0 42,584 0 17,412 922 dash
19 no-host configure.util-linux 5,388,731 6 0 0 39,112 0 16,943 1,280 osh-cpython
27 no-host configure.util-linux 2,001,246 0 0 0 39,120 0 16,994 1,017 osh-native
35 no-host configure.util-linux 1,992,551 0 0 0 39,136 0 16,961 973 osh-native-souffle
6 no-host configure.yash 257,019 0 0 0 4,120 0 871 78 bash
14 no-host configure.yash 245,071 0 0 0 3,720 0 867 69 dash
22 no-host configure.yash 389,189 0 0 0 3,728 0 849 92 osh-cpython
30 no-host configure.yash 257,821 0 0 0 3,736 0 850 86 osh-native
38 no-host configure.yash 258,140 0 0 0 3,736 0 847 86 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,961 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 347 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-0919ac6f
dash dash-0ebcf347
osh-cpython osh-23aa46a6
osh-native osh-5dbc51d9
osh-native-souffle osh-c17ef44f
host label host id
no-host no-host-556df3ee