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 469 22 21 24.14 1.14
bin-true no-host 683 543 2,286 806 811 3.35 1.18
configure.cpython no-host 15,201 15,320 29,720 15,266 15,452 1.96 1.00
configure.ocaml no-host 3,847 3,935 4,731 3,874 3,826 1.23 1.01
configure.tcc no-host 48 43 203 49 49 4.21 1.01
configure.util-linux no-host 14,137 15,236 32,573 14,384 14,374 2.30 1.02
configure.yash no-host 1,826 1,844 2,499 1,848 1,825 1.37 1.01
hello-world no-host 2 1 59 3 3 35.91 1.72

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,563 1,135 23,694 3,209 3,118 9.24 1.25
bin-true no-host 109,259 66,469 765,643 125,219 126,254 7.01 1.15
configure.cpython no-host 2,230,543 2,242,085 6,246,492 2,219,693 2,204,538 2.80 1.00
configure.ocaml no-host 410,675 391,345 647,006 413,305 412,409 1.58 1.01
configure.tcc no-host 6,544 5,489 24,115 6,969 6,867 3.69 1.06
configure.util-linux no-host 2,092,388 2,258,034 5,407,873 1,996,302 1,995,993 2.58 0.95
configure.yash no-host 256,542 245,136 388,709 258,405 258,168 1.52 1.01
hello-world no-host 154 79 3,945 344 342 25.62 2.23

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.8 8.9 8.7 5.12 2.00
bin-true no-host 3.0 1.6 18.2 8.1 7.9 6.05 2.70
configure.cpython no-host 27.3 27.4 27.4 27.1 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.4 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.0 30.3 1.00 0.99
configure.yash no-host 24.5 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.3 18.1 6.3 5.9 6.28 2.18

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 806 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,266 1 64 14.9 27.1 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,384 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,874 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 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,848 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 811 1 2 2.6 7.9 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,452 2 62 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,374 3 60 21.2 30.3 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,826 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,825 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 10 9 4.5 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 469 420 52 22.8 osh-cpython
31 no-host abuild-print-help 22 13 10 8.9 osh-native
39 no-host abuild-print-help 21 19 3 8.7 osh-native-souffle
1 no-host bin-true 683 518 199 3.0 bash
9 no-host bin-true 543 415 139 1.6 dash
17 no-host bin-true 2,286 1,503 1,050 18.2 osh-cpython
25 no-host bin-true 806 599 222 8.1 osh-native
33 no-host bin-true 811 589 235 7.9 osh-native-souffle
2 no-host configure.cpython 15,201 8,913 6,685 27.3 bash
10 no-host configure.cpython 15,320 9,286 6,418 27.4 dash
18 no-host configure.cpython 29,720 18,111 13,544 27.4 osh-cpython
26 no-host configure.cpython 15,266 9,102 6,426 27.1 osh-native
34 no-host configure.cpython 15,452 8,944 6,552 27.4 osh-native-souffle
4 no-host configure.ocaml 3,847 1,603 1,282 20.4 bash
12 no-host configure.ocaml 3,935 1,630 1,320 20.6 dash
20 no-host configure.ocaml 4,731 2,247 1,693 20.6 osh-cpython
28 no-host configure.ocaml 3,874 1,567 1,343 20.6 osh-native
36 no-host configure.ocaml 3,826 1,599 1,265 20.6 osh-native-souffle
5 no-host configure.tcc 48 32 17 19.3 bash
13 no-host configure.tcc 43 28 15 19.4 dash
21 no-host configure.tcc 203 154 52 19.3 osh-cpython
29 no-host configure.tcc 49 29 20 19.3 osh-native
37 no-host configure.tcc 49 27 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,137 8,863 5,742 30.3 bash
11 no-host configure.util-linux 15,236 9,399 6,331 30.3 dash
19 no-host configure.util-linux 32,573 21,621 12,060 30.3 osh-cpython
27 no-host configure.util-linux 14,384 8,662 5,917 30.0 osh-native
35 no-host configure.util-linux 14,374 8,834 5,736 30.3 osh-native-souffle
6 no-host configure.yash 1,826 1,034 801 24.5 bash
14 no-host configure.yash 1,844 1,046 799 24.4 dash
22 no-host configure.yash 2,499 1,490 1,051 24.4 osh-cpython
30 no-host configure.yash 1,848 1,026 826 24.2 osh-native
38 no-host configure.yash 1,825 1,039 790 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.3 dash
16 no-host hello-world 59 32 27 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,563 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,135 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,694 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,118 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 109,259 0 0 0 8 0 1,993 161 bash
9 no-host bin-true 66,469 0 0 0 8 0 1,988 57 dash
17 no-host bin-true 765,643 0 0 0 8 0 1,998 95 osh-cpython
25 no-host bin-true 125,219 0 0 0 16 0 1,995 42 osh-native
33 no-host bin-true 126,254 0 0 0 16 0 1,991 100 osh-native-souffle
2 no-host configure.cpython 2,230,543 0 0 0 32,928 0 14,508 992 bash
10 no-host configure.cpython 2,242,085 0 0 0 32,992 0 14,639 1,063 dash
18 no-host configure.cpython 6,246,492 1 0 0 27,512 0 13,233 1,064 osh-cpython
26 no-host configure.cpython 2,219,693 0 0 0 27,520 0 13,284 955 osh-native
34 no-host configure.cpython 2,204,538 0 0 0 27,520 0 13,337 927 osh-native-souffle
4 no-host configure.ocaml 410,675 0 0 0 5,120 0 1,950 158 bash
12 no-host configure.ocaml 391,345 0 0 0 5,112 0 1,931 138 dash
20 no-host configure.ocaml 647,006 0 0 0 5,112 0 1,855 193 osh-cpython
28 no-host configure.ocaml 413,305 0 0 0 5,120 0 1,929 162 osh-native
36 no-host configure.ocaml 412,409 0 0 0 5,120 0 1,928 171 osh-native-souffle
5 no-host configure.tcc 6,544 0 0 0 104 0 47 3 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,115 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,867 0 0 0 104 0 47 11 osh-native-souffle
3 no-host configure.util-linux 2,092,388 0 0 0 42,400 0 18,767 1,070 bash
11 no-host configure.util-linux 2,258,034 1 0 0 42,592 0 17,467 1,200 dash
19 no-host configure.util-linux 5,407,873 10 0 0 39,120 0 16,973 1,278 osh-cpython
27 no-host configure.util-linux 1,996,302 0 0 0 39,128 0 16,995 1,074 osh-native
35 no-host configure.util-linux 1,995,993 0 0 0 39,136 0 17,019 888 osh-native-souffle
6 no-host configure.yash 256,542 0 0 0 4,120 0 871 81 bash
14 no-host configure.yash 245,136 0 0 0 3,720 0 872 59 dash
22 no-host configure.yash 388,709 0 0 0 3,728 0 849 93 osh-cpython
30 no-host configure.yash 258,405 0 0 0 3,736 0 852 80 osh-native
38 no-host configure.yash 258,168 0 0 0 3,736 0 849 98 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 0 1 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 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-9fd0fb0e
dash dash-0ebcf347
osh-cpython osh-4378d086
osh-native osh-a6664457
osh-native-souffle osh-3330f307
host label host id
no-host no-host-556df3ee