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 473 22 21 24.84 1.16
bin-true no-host 671 539 2,289 808 808 3.41 1.21
configure.cpython no-host 15,143 15,250 28,925 15,399 15,744 1.91 1.02
configure.ocaml no-host 3,830 3,734 4,739 3,875 3,885 1.24 1.01
configure.tcc no-host 48 41 209 50 48 4.41 1.05
configure.util-linux no-host 14,043 14,911 32,176 14,706 14,561 2.29 1.05
configure.yash no-host 1,812 1,763 2,513 1,838 1,839 1.39 1.01
hello-world no-host 2 1 56 3 3 36.02 1.88

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,520 1,128 23,810 3,171 3,092 9.45 1.26
bin-true no-host 105,392 66,466 774,285 125,235 125,242 7.35 1.19
configure.cpython no-host 2,217,165 2,243,888 6,236,850 2,212,653 2,205,146 2.81 1.00
configure.ocaml no-host 410,293 390,703 647,332 413,256 412,449 1.58 1.01
configure.tcc no-host 6,535 5,500 24,121 6,964 6,935 3.69 1.07
configure.util-linux no-host 2,093,235 2,263,336 5,394,707 1,998,014 1,991,100 2.58 0.95
configure.yash no-host 256,622 244,475 388,987 258,448 257,448 1.52 1.01
hello-world no-host 152 83 3,939 346 340 25.91 2.28

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.6 9.0 8.5 5.22 2.09
bin-true no-host 3.0 1.4 18.4 7.9 7.9 6.09 2.61
configure.cpython no-host 27.4 27.4 27.5 27.3 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.1 19.3 19.4 19.0 19.3 1.01 0.99
configure.util-linux no-host 30.0 30.0 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.4 24.2 24.5 24.4 24.4 1.01 1.00
hello-world no-host 2.9 1.4 18.2 6.3 5.8 6.32 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 808 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,399 1 62 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,706 3 64 21.2 30.1 2,702,623 53,767 65,692 108,721 1,290,677 1,303,225 32,242 41 131,384 1
configure.ocaml no-host 3,875 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.0 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,838 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.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 808 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,744 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,561 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,885 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 48 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,839 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 6 4.3 bash
15 no-host abuild-print-help 9 6 4 3.5 dash
23 no-host abuild-print-help 473 424 52 22.6 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 21 21 0 8.5 osh-native-souffle
1 no-host bin-true 671 505 197 3.0 bash
9 no-host bin-true 539 411 138 1.4 dash
17 no-host bin-true 2,289 1,491 1,056 18.4 osh-cpython
25 no-host bin-true 808 563 259 7.9 osh-native
33 no-host bin-true 808 574 248 7.9 osh-native-souffle
2 no-host configure.cpython 15,143 9,076 6,464 27.4 bash
10 no-host configure.cpython 15,250 9,159 6,515 27.4 dash
18 no-host configure.cpython 28,925 17,624 13,175 27.5 osh-cpython
26 no-host configure.cpython 15,399 9,142 6,528 27.3 osh-native
34 no-host configure.cpython 15,744 9,144 6,728 27.4 osh-native-souffle
4 no-host configure.ocaml 3,830 1,618 1,251 20.6 bash
12 no-host configure.ocaml 3,734 1,620 1,133 20.6 dash
20 no-host configure.ocaml 4,739 2,258 1,696 20.6 osh-cpython
28 no-host configure.ocaml 3,875 1,663 1,251 20.4 osh-native
36 no-host configure.ocaml 3,885 1,680 1,239 20.6 osh-native-souffle
5 no-host configure.tcc 48 34 14 19.1 bash
13 no-host configure.tcc 41 29 12 19.3 dash
21 no-host configure.tcc 209 135 77 19.4 osh-cpython
29 no-host configure.tcc 50 30 20 19.0 osh-native
37 no-host configure.tcc 48 24 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,043 8,830 5,673 30.0 bash
11 no-host configure.util-linux 14,911 9,269 6,143 30.0 dash
19 no-host configure.util-linux 32,176 21,695 11,602 30.1 osh-cpython
27 no-host configure.util-linux 14,706 8,791 6,103 30.1 osh-native
35 no-host configure.util-linux 14,561 8,800 5,954 30.0 osh-native-souffle
6 no-host configure.yash 1,812 1,055 766 24.4 bash
14 no-host configure.yash 1,763 1,005 761 24.2 dash
22 no-host configure.yash 2,513 1,554 1,002 24.5 osh-cpython
30 no-host configure.yash 1,838 1,074 768 24.4 osh-native
38 no-host configure.yash 1,839 1,084 750 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 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 0 3 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,520 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,128 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,810 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,092 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,392 0 0 0 8 0 1,992 96 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,984 37 dash
17 no-host bin-true 774,285 0 0 0 8 0 1,997 81 osh-cpython
25 no-host bin-true 125,235 0 0 0 16 0 1,994 46 osh-native
33 no-host bin-true 125,242 0 0 0 16 0 1,988 51 osh-native-souffle
2 no-host configure.cpython 2,217,165 0 0 0 32,928 0 14,552 919 bash
10 no-host configure.cpython 2,243,888 0 0 0 32,992 0 14,643 976 dash
18 no-host configure.cpython 6,236,850 0 0 0 27,512 0 13,150 1,155 osh-cpython
26 no-host configure.cpython 2,212,653 0 0 0 27,520 0 13,278 1,035 osh-native
34 no-host configure.cpython 2,205,146 0 0 0 27,520 0 13,237 958 osh-native-souffle
4 no-host configure.ocaml 410,293 0 0 0 5,120 0 1,949 182 bash
12 no-host configure.ocaml 390,703 0 0 0 5,112 0 1,883 151 dash
20 no-host configure.ocaml 647,332 0 0 0 5,112 0 1,855 178 osh-cpython
28 no-host configure.ocaml 413,256 0 0 0 5,120 0 1,928 207 osh-native
36 no-host configure.ocaml 412,449 0 0 0 5,120 0 1,936 140 osh-native-souffle
5 no-host configure.tcc 6,535 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,500 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,121 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,964 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,935 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,093,235 0 0 0 42,400 0 18,612 961 bash
11 no-host configure.util-linux 2,263,336 0 0 0 42,584 0 17,533 1,073 dash
19 no-host configure.util-linux 5,394,707 10 0 0 39,112 0 17,047 1,321 osh-cpython
27 no-host configure.util-linux 1,998,014 1 0 0 39,144 0 16,970 875 osh-native
35 no-host configure.util-linux 1,991,100 1 0 0 39,136 0 16,983 905 osh-native-souffle
6 no-host configure.yash 256,622 0 0 0 4,120 0 867 72 bash
14 no-host configure.yash 244,475 0 0 0 3,720 0 868 69 dash
22 no-host configure.yash 388,987 0 0 0 3,728 0 855 76 osh-cpython
30 no-host configure.yash 258,448 0 0 0 3,736 0 849 81 osh-native
38 no-host configure.yash 257,448 0 0 0 3,736 0 848 98 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,939 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-72aa83f0
dash dash-0ebcf347
osh-cpython osh-72b680fa
osh-native osh-e1035f8c
osh-native-souffle osh-66c7c9a6
host label host id
no-host no-host-556df3ee