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 466 22 21 24.15 1.15
bin-true no-host 685 545 2,314 803 810 3.38 1.17
configure.cpython no-host 15,533 15,331 29,732 15,336 15,925 1.91 0.99
configure.ocaml no-host 3,826 3,772 4,689 3,873 3,925 1.23 1.01
configure.tcc no-host 48 42 204 50 49 4.27 1.04
configure.util-linux no-host 14,272 15,194 32,056 14,520 14,662 2.25 1.02
configure.yash no-host 1,867 1,779 2,496 1,853 1,853 1.34 0.99
hello-world no-host 2 1 56 3 3 37.00 1.84

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,558 1,123 23,816 3,237 3,138 9.31 1.27
bin-true no-host 105,308 65,405 773,285 126,279 126,274 7.34 1.20
configure.cpython no-host 2,224,095 2,248,926 6,248,730 2,214,320 2,222,293 2.81 1.00
configure.ocaml no-host 410,621 391,224 647,019 412,315 412,614 1.58 1.00
configure.tcc no-host 6,543 5,471 24,147 6,966 6,943 3.69 1.06
configure.util-linux no-host 2,092,882 2,265,685 5,401,168 1,999,764 1,990,671 2.58 0.96
configure.yash no-host 256,259 243,999 388,439 257,678 258,348 1.52 1.01
hello-world no-host 151 82 3,941 343 342 26.10 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.5 22.7 9.2 8.5 5.25 2.12
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.5 27.4 27.3 27.3 27.1 0.99 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.1 19.4 19.4 19.1 1.00 1.00
configure.util-linux no-host 30.1 29.9 30.0 30.0 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.1 24.4 24.2 0.98 0.99
hello-world no-host 2.8 1.4 18.2 6.3 5.9 6.62 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 803 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,336 1 63 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,520 3 62 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,873 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 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,853 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.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.9 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.6 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,925 1 64 14.9 27.1 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,662 3 63 21.2 30.3 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,925 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 49 0 0 1.3 19.1 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,853 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.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 18 2 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 466 417 52 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 9.2 osh-native
39 no-host abuild-print-help 21 17 5 8.5 osh-native-souffle
1 no-host bin-true 685 499 213 2.9 bash
9 no-host bin-true 545 420 134 1.4 dash
17 no-host bin-true 2,314 1,445 1,127 18.4 osh-cpython
25 no-host bin-true 803 590 231 8.0 osh-native
33 no-host bin-true 810 593 231 7.6 osh-native-souffle
2 no-host configure.cpython 15,533 9,429 6,512 27.5 bash
10 no-host configure.cpython 15,331 9,135 6,594 27.4 dash
18 no-host configure.cpython 29,732 17,839 13,841 27.3 osh-cpython
26 no-host configure.cpython 15,336 9,077 6,534 27.3 osh-native
34 no-host configure.cpython 15,925 9,126 6,753 27.1 osh-native-souffle
4 no-host configure.ocaml 3,826 1,640 1,226 20.4 bash
12 no-host configure.ocaml 3,772 1,608 1,181 20.6 dash
20 no-host configure.ocaml 4,689 2,331 1,571 20.6 osh-cpython
28 no-host configure.ocaml 3,873 1,691 1,221 20.6 osh-native
36 no-host configure.ocaml 3,925 1,597 1,363 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.4 bash
13 no-host configure.tcc 42 25 17 19.1 dash
21 no-host configure.tcc 204 157 51 19.4 osh-cpython
29 no-host configure.tcc 50 33 17 19.4 osh-native
37 no-host configure.tcc 49 22 28 19.1 osh-native-souffle
3 no-host configure.util-linux 14,272 8,863 5,846 30.1 bash
11 no-host configure.util-linux 15,194 9,424 6,269 29.9 dash
19 no-host configure.util-linux 32,056 21,471 11,704 30.0 osh-cpython
27 no-host configure.util-linux 14,520 8,663 6,062 30.0 osh-native
35 no-host configure.util-linux 14,662 8,701 6,158 30.3 osh-native-souffle
6 no-host configure.yash 1,867 1,069 807 24.5 bash
14 no-host configure.yash 1,779 975 807 24.4 dash
22 no-host configure.yash 2,496 1,550 989 24.1 osh-cpython
30 no-host configure.yash 1,853 1,020 837 24.4 osh-native
38 no-host configure.yash 1,853 1,095 762 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 48 8 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,558 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,123 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,816 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,237 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,138 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,308 0 0 0 8 0 1,990 47 bash
9 no-host bin-true 65,405 0 0 0 8 0 1,985 48 dash
17 no-host bin-true 773,285 0 0 0 8 0 2,002 185 osh-cpython
25 no-host bin-true 126,279 0 0 0 16 0 1,988 62 osh-native
33 no-host bin-true 126,274 0 0 0 16 0 1,987 58 osh-native-souffle
2 no-host configure.cpython 2,224,095 0 0 0 32,928 0 14,526 927 bash
10 no-host configure.cpython 2,248,926 0 0 0 32,992 0 14,570 971 dash
18 no-host configure.cpython 6,248,730 0 0 0 27,512 0 13,240 1,325 osh-cpython
26 no-host configure.cpython 2,214,320 0 0 0 27,520 0 13,296 1,034 osh-native
34 no-host configure.cpython 2,222,293 0 0 0 27,520 0 13,317 925 osh-native-souffle
4 no-host configure.ocaml 410,621 0 0 0 5,120 0 1,949 134 bash
12 no-host configure.ocaml 391,224 0 0 0 5,112 0 1,875 150 dash
20 no-host configure.ocaml 647,019 1 0 0 5,112 0 1,856 147 osh-cpython
28 no-host configure.ocaml 412,315 0 0 0 5,120 0 1,934 188 osh-native
36 no-host configure.ocaml 412,614 0 0 0 5,120 0 1,930 179 osh-native-souffle
5 no-host configure.tcc 6,543 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 11 dash
21 no-host configure.tcc 24,147 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,966 0 0 0 104 0 47 7 osh-native
37 no-host configure.tcc 6,943 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,092,882 0 0 0 42,400 0 18,546 992 bash
11 no-host configure.util-linux 2,265,685 1 0 0 42,584 0 17,411 982 dash
19 no-host configure.util-linux 5,401,168 7 0 0 39,144 0 16,934 1,219 osh-cpython
27 no-host configure.util-linux 1,999,764 0 0 0 39,128 0 16,933 984 osh-native
35 no-host configure.util-linux 1,990,671 1 0 0 39,136 0 16,942 939 osh-native-souffle
6 no-host configure.yash 256,259 0 0 0 4,120 0 869 118 bash
14 no-host configure.yash 243,999 0 0 0 3,720 0 866 85 dash
22 no-host configure.yash 388,439 0 0 0 3,728 0 851 99 osh-cpython
30 no-host configure.yash 257,678 0 0 0 3,736 0 849 76 osh-native
38 no-host configure.yash 258,348 0 0 0 3,736 0 850 77 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 1 0 dash
16 no-host hello-world 3,941 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e620befa
dash dash-0ebcf347
osh-cpython osh-1c6f4f40
osh-native osh-2bde3231
osh-native-souffle osh-d09bb87f
host label host id
no-host no-host-556df3ee