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 477 22 22 24.60 1.16
bin-true no-host 678 550 2,317 819 838 3.42 1.21
configure.cpython no-host 15,421 15,509 29,856 15,693 15,741 1.94 1.02
configure.ocaml no-host 3,834 3,848 4,794 3,901 3,987 1.25 1.02
configure.tcc no-host 48 42 208 49 50 4.35 1.03
configure.util-linux no-host 14,463 15,404 32,755 14,693 15,187 2.26 1.02
configure.yash no-host 1,851 1,824 2,552 1,872 1,927 1.38 1.01
hello-world no-host 1 1 59 3 3 39.71 1.97

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,543 1,108 23,772 3,183 3,130 9.35 1.25
bin-true no-host 105,391 66,348 767,459 127,300 123,264 7.28 1.21
configure.cpython no-host 2,224,031 2,242,500 6,210,479 2,212,606 2,205,160 2.79 0.99
configure.ocaml no-host 411,397 391,457 647,757 413,258 412,268 1.57 1.00
configure.tcc no-host 6,577 5,498 24,070 6,956 6,881 3.66 1.06
configure.util-linux no-host 2,096,371 2,261,304 5,409,158 1,993,643 1,993,317 2.58 0.95
configure.yash no-host 255,809 244,440 388,538 257,801 258,012 1.52 1.01
hello-world no-host 154 81 3,948 346 336 25.64 2.25

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.4 22.6 9.2 8.5 5.21 2.12
bin-true no-host 3.0 1.4 18.2 8.3 7.2 6.05 2.74
configure.cpython no-host 27.5 27.1 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.1 19.4 19.4 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 24.0 1.01 1.00
hello-world no-host 2.9 1.4 18.2 6.4 5.8 6.32 2.23

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 819 1 2 2.6 8.3 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,693 1 66 14.9 27.4 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,693 3 64 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,901 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,872 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.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.8 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 838 1 2 2.6 7.2 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,741 1 63 14.9 27.5 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 15,187 3 66 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,987 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.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,927 1 2 2.5 24.0 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 16 4 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 477 432 48 22.6 osh-cpython
31 no-host abuild-print-help 22 20 3 9.2 osh-native
39 no-host abuild-print-help 22 15 7 8.5 osh-native-souffle
1 no-host bin-true 678 503 205 3.0 bash
9 no-host bin-true 550 435 122 1.4 dash
17 no-host bin-true 2,317 1,435 1,147 18.2 osh-cpython
25 no-host bin-true 819 570 265 8.3 osh-native
33 no-host bin-true 838 603 248 7.2 osh-native-souffle
2 no-host configure.cpython 15,421 9,303 6,527 27.5 bash
10 no-host configure.cpython 15,509 9,234 6,704 27.1 dash
18 no-host configure.cpython 29,856 18,168 13,626 27.5 osh-cpython
26 no-host configure.cpython 15,693 9,098 6,867 27.4 osh-native
34 no-host configure.cpython 15,741 9,101 6,781 27.5 osh-native-souffle
4 no-host configure.ocaml 3,834 1,662 1,213 20.6 bash
12 no-host configure.ocaml 3,848 1,652 1,218 20.6 dash
20 no-host configure.ocaml 4,794 2,353 1,654 20.4 osh-cpython
28 no-host configure.ocaml 3,901 1,700 1,239 20.6 osh-native
36 no-host configure.ocaml 3,987 1,614 1,407 20.6 osh-native-souffle
5 no-host configure.tcc 48 20 28 19.1 bash
13 no-host configure.tcc 42 17 26 19.4 dash
21 no-host configure.tcc 208 151 60 19.4 osh-cpython
29 no-host configure.tcc 49 31 19 19.3 osh-native
37 no-host configure.tcc 50 25 26 19.3 osh-native-souffle
3 no-host configure.util-linux 14,463 9,119 5,818 30.1 bash
11 no-host configure.util-linux 15,404 9,149 6,751 30.1 dash
19 no-host configure.util-linux 32,755 21,821 12,089 30.0 osh-cpython
27 no-host configure.util-linux 14,693 8,920 5,969 30.1 osh-native
35 no-host configure.util-linux 15,187 9,101 6,253 30.0 osh-native-souffle
6 no-host configure.yash 1,851 1,128 730 24.2 bash
14 no-host configure.yash 1,824 1,093 733 24.4 dash
22 no-host configure.yash 2,552 1,559 1,037 24.4 osh-cpython
30 no-host configure.yash 1,872 1,081 793 24.2 osh-native
38 no-host configure.yash 1,927 1,070 861 24.0 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 59 29 30 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.4 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,543 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,772 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,183 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,130 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 105,391 0 0 0 8 0 1,995 48 bash
9 no-host bin-true 66,348 0 0 0 8 0 1,987 60 dash
17 no-host bin-true 767,459 0 0 0 8 0 1,996 218 osh-cpython
25 no-host bin-true 127,300 0 0 0 16 0 1,989 47 osh-native
33 no-host bin-true 123,264 0 0 0 16 0 1,988 74 osh-native-souffle
2 no-host configure.cpython 2,224,031 1 0 0 32,928 0 14,481 988 bash
10 no-host configure.cpython 2,242,500 0 0 0 32,992 0 14,592 942 dash
18 no-host configure.cpython 6,210,479 1 0 0 27,512 0 13,244 1,113 osh-cpython
26 no-host configure.cpython 2,212,606 0 0 0 27,520 0 13,267 933 osh-native
34 no-host configure.cpython 2,205,160 1 0 0 27,520 0 13,165 932 osh-native-souffle
4 no-host configure.ocaml 411,397 0 0 0 5,120 0 1,948 139 bash
12 no-host configure.ocaml 391,457 0 0 0 5,112 0 1,943 145 dash
20 no-host configure.ocaml 647,757 0 0 0 5,112 0 1,852 171 osh-cpython
28 no-host configure.ocaml 413,258 0 0 0 5,120 0 1,921 151 osh-native
36 no-host configure.ocaml 412,268 0 0 0 5,120 0 1,929 154 osh-native-souffle
5 no-host configure.tcc 6,577 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,498 0 0 0 96 0 46 1 dash
21 no-host configure.tcc 24,070 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,881 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,096,371 1 0 0 42,400 0 18,892 1,292 bash
11 no-host configure.util-linux 2,261,304 0 0 0 42,592 0 17,569 1,027 dash
19 no-host configure.util-linux 5,409,158 10 0 0 39,144 0 16,955 1,152 osh-cpython
27 no-host configure.util-linux 1,993,643 0 0 0 39,128 0 17,132 969 osh-native
35 no-host configure.util-linux 1,993,317 1 0 0 39,136 0 16,951 947 osh-native-souffle
6 no-host configure.yash 255,809 0 0 0 4,120 0 873 69 bash
14 no-host configure.yash 244,440 0 0 0 3,720 0 871 72 dash
22 no-host configure.yash 388,538 0 0 0 3,728 0 850 91 osh-cpython
30 no-host configure.yash 257,801 0 0 0 3,736 0 846 71 osh-native
38 no-host configure.yash 258,012 0 0 0 3,736 0 848 86 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,948 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-9db63643
dash dash-0ebcf347
osh-cpython osh-0d6a6728
osh-native osh-60686193
osh-native-souffle osh-7e0b67a5
host label host id
no-host no-host-556df3ee