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.27 1.17
bin-true no-host 681 545 2,327 816 819 3.42 1.20
configure.cpython no-host 15,309 15,338 29,456 15,478 15,799 1.92 1.01
configure.ocaml no-host 3,869 3,804 4,726 3,892 3,884 1.22 1.01
configure.tcc no-host 48 42 215 49 49 4.47 1.02
configure.util-linux no-host 14,255 15,151 32,123 14,614 14,651 2.25 1.03
configure.yash no-host 1,853 1,808 2,516 1,858 1,857 1.36 1.00
hello-world no-host 2 1 58 3 3 36.95 1.82

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,564 1,114 23,689 3,193 3,115 9.24 1.25
bin-true no-host 107,412 66,423 773,043 126,256 128,254 7.20 1.18
configure.cpython no-host 2,220,260 2,246,604 6,249,383 2,209,644 2,208,360 2.81 1.00
configure.ocaml no-host 411,044 391,185 647,467 412,875 413,063 1.58 1.00
configure.tcc no-host 6,579 5,496 24,124 6,958 6,873 3.67 1.06
configure.util-linux no-host 2,091,652 2,258,146 5,402,079 1,996,660 1,988,162 2.58 0.95
configure.yash no-host 256,708 244,645 388,967 258,289 256,725 1.52 1.01
hello-world no-host 152 83 3,956 340 338 26.03 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.5 3.5 22.6 9.0 8.5 5.07 2.03
bin-true no-host 2.9 1.6 18.4 7.9 7.6 6.37 2.73
configure.cpython no-host 27.4 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.4 30.1 29.9 1.01 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.4 1.00 0.99
hello-world no-host 2.9 1.4 18.2 6.2 5.8 6.32 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 816 1 2 2.6 7.9 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,478 2 64 14.9 27.5 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,614 3 62 21.2 30.1 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,892 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 49 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,858 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.0 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 819 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,799 1 63 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,651 3 62 21.2 29.9 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,884 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.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,857 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 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 13 7 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 466 415 54 22.6 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 681 514 199 2.9 bash
9 no-host bin-true 545 425 131 1.6 dash
17 no-host bin-true 2,327 1,465 1,124 18.4 osh-cpython
25 no-host bin-true 816 577 254 7.9 osh-native
33 no-host bin-true 819 593 240 7.6 osh-native-souffle
2 no-host configure.cpython 15,309 9,218 6,484 27.4 bash
10 no-host configure.cpython 15,338 9,128 6,632 27.4 dash
18 no-host configure.cpython 29,456 17,829 13,550 27.4 osh-cpython
26 no-host configure.cpython 15,478 9,025 6,716 27.5 osh-native
34 no-host configure.cpython 15,799 9,200 6,666 27.4 osh-native-souffle
4 no-host configure.ocaml 3,869 1,631 1,272 20.6 bash
12 no-host configure.ocaml 3,804 1,582 1,236 20.6 dash
20 no-host configure.ocaml 4,726 2,380 1,568 20.6 osh-cpython
28 no-host configure.ocaml 3,892 1,710 1,214 20.4 osh-native
36 no-host configure.ocaml 3,884 1,725 1,192 20.6 osh-native-souffle
5 no-host configure.tcc 48 30 19 19.3 bash
13 no-host configure.tcc 42 32 11 19.3 dash
21 no-host configure.tcc 215 155 63 19.4 osh-cpython
29 no-host configure.tcc 49 33 16 19.3 osh-native
37 no-host configure.tcc 49 42 7 19.3 osh-native-souffle
3 no-host configure.util-linux 14,255 8,962 5,759 30.1 bash
11 no-host configure.util-linux 15,151 9,224 6,418 30.3 dash
19 no-host configure.util-linux 32,123 21,379 11,863 30.4 osh-cpython
27 no-host configure.util-linux 14,614 8,790 6,019 30.1 osh-native
35 no-host configure.util-linux 14,651 8,828 6,012 29.9 osh-native-souffle
6 no-host configure.yash 1,853 1,100 758 24.4 bash
14 no-host configure.yash 1,808 1,055 755 24.4 dash
22 no-host configure.yash 2,516 1,529 1,031 24.4 osh-cpython
30 no-host configure.yash 1,858 1,083 780 24.2 osh-native
38 no-host configure.yash 1,857 1,077 784 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 35 23 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,564 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,114 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,689 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 38 2 osh-native
39 no-host abuild-print-help 3,115 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,412 0 0 0 8 0 1,990 77 bash
9 no-host bin-true 66,423 0 0 0 8 0 1,983 30 dash
17 no-host bin-true 773,043 0 0 0 8 0 1,997 231 osh-cpython
25 no-host bin-true 126,256 0 0 0 16 0 1,991 130 osh-native
33 no-host bin-true 128,254 0 0 0 16 0 1,984 52 osh-native-souffle
2 no-host configure.cpython 2,220,260 0 0 0 32,928 0 14,426 983 bash
10 no-host configure.cpython 2,246,604 0 0 0 32,992 0 14,531 1,153 dash
18 no-host configure.cpython 6,249,383 0 0 0 27,512 0 13,254 1,204 osh-cpython
26 no-host configure.cpython 2,209,644 0 0 0 27,520 0 13,317 923 osh-native
34 no-host configure.cpython 2,208,360 0 0 0 27,520 0 13,163 924 osh-native-souffle
4 no-host configure.ocaml 411,044 0 0 0 5,120 0 1,968 145 bash
12 no-host configure.ocaml 391,185 0 0 0 5,112 0 1,939 153 dash
20 no-host configure.ocaml 647,467 0 0 0 5,112 0 1,856 173 osh-cpython
28 no-host configure.ocaml 412,875 0 0 0 5,120 0 1,932 175 osh-native
36 no-host configure.ocaml 413,063 0 0 0 5,120 0 1,926 147 osh-native-souffle
5 no-host configure.tcc 6,579 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,496 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,124 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,958 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,873 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,091,652 0 0 0 42,400 0 18,621 981 bash
11 no-host configure.util-linux 2,258,146 0 0 0 42,584 0 17,490 1,067 dash
19 no-host configure.util-linux 5,402,079 2 0 0 39,136 0 16,943 1,157 osh-cpython
27 no-host configure.util-linux 1,996,660 1 0 0 39,128 0 16,921 1,049 osh-native
35 no-host configure.util-linux 1,988,162 0 0 0 39,136 0 16,983 949 osh-native-souffle
6 no-host configure.yash 256,708 0 0 0 4,120 0 871 93 bash
14 no-host configure.yash 244,645 0 0 0 3,720 0 869 76 dash
22 no-host configure.yash 388,967 0 0 0 3,728 0 851 91 osh-cpython
30 no-host configure.yash 258,289 0 0 0 3,736 0 851 77 osh-native
38 no-host configure.yash 256,725 0 0 0 3,736 0 848 78 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,956 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 340 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-fb3c8f68
dash dash-0ebcf347
osh-cpython osh-8baede1a
osh-native osh-ab5d5dd3
osh-native-souffle osh-22afb1f4
host label host id
no-host no-host-556df3ee