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 456 23 23 24.02 1.19
bin-true no-host 679 548 2,230 823 816 3.28 1.21
configure.cpython no-host 14,973 15,037 28,442 15,234 15,228 1.90 1.02
configure.ocaml no-host 3,824 3,733 4,621 3,814 3,808 1.21 1.00
configure.tcc no-host 48 41 191 49 48 4.02 1.02
configure.util-linux no-host 13,993 14,781 30,979 14,366 14,301 2.21 1.03
configure.yash no-host 1,814 1,754 2,437 1,822 1,824 1.34 1.00
hello-world no-host 1 1 49 3 3 33.65 1.94

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,533 1,108 23,431 3,223 3,163 9.25 1.27
bin-true no-host 109,350 67,437 760,918 127,101 124,782 6.96 1.16
configure.cpython no-host 2,221,216 2,241,537 6,194,925 2,231,375 2,209,441 2.79 1.00
configure.ocaml no-host 410,754 390,905 645,899 413,360 412,596 1.57 1.01
configure.tcc no-host 6,572 5,464 23,510 6,999 6,938 3.58 1.06
configure.util-linux no-host 2,110,196 2,264,234 5,326,778 2,001,902 1,999,854 2.52 0.95
configure.yash no-host 256,884 244,483 387,350 258,741 257,894 1.51 1.01
hello-world no-host 154 82 3,738 353 342 24.27 2.29

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 21.9 9.0 8.8 5.05 2.09
bin-true no-host 2.9 1.4 17.7 8.1 7.7 6.14 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.0 30.3 30.3 0.99 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.6 17.6 6.3 5.6 6.09 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 823 1 2 2.6 8.1 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,234 1 58 15.0 27.4 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,366 3 58 21.3 30.3 2,703,490 29,146 65,890 109,675 1,320,579 1,273,236 27,391 41 131,780 1
configure.ocaml no-host 3,814 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,822 1 2 2.6 24.4 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.6 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.7 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,228 1 59 14.9 27.4 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,301 3 58 21.3 30.3 2,703,490 42,741 65,828 109,677 1,320,579 1,273,234 27,391 41 131,656 1
configure.ocaml no-host 3,808 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,824 1 2 2.6 24.4 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 12 8 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 456 403 56 21.9 osh-cpython
31 no-host abuild-print-help 23 20 3 9.0 osh-native
39 no-host abuild-print-help 23 13 10 8.8 osh-native-souffle
1 no-host bin-true 679 502 206 2.9 bash
9 no-host bin-true 548 425 134 1.4 dash
17 no-host bin-true 2,230 1,403 1,079 17.7 osh-cpython
25 no-host bin-true 823 591 247 8.1 osh-native
33 no-host bin-true 816 575 255 7.7 osh-native-souffle
2 no-host configure.cpython 14,973 9,122 6,252 27.4 bash
10 no-host configure.cpython 15,037 9,070 6,386 27.4 dash
18 no-host configure.cpython 28,442 16,863 13,423 27.4 osh-cpython
26 no-host configure.cpython 15,234 8,987 6,502 27.4 osh-native
34 no-host configure.cpython 15,228 8,966 6,445 27.4 osh-native-souffle
4 no-host configure.ocaml 3,824 1,642 1,214 20.6 bash
12 no-host configure.ocaml 3,733 1,632 1,120 20.6 dash
20 no-host configure.ocaml 4,621 2,272 1,554 20.6 osh-cpython
28 no-host configure.ocaml 3,814 1,662 1,191 20.6 osh-native
36 no-host configure.ocaml 3,808 1,621 1,223 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.4 bash
13 no-host configure.tcc 41 27 14 19.4 dash
21 no-host configure.tcc 191 137 57 19.3 osh-cpython
29 no-host configure.tcc 49 25 24 19.3 osh-native
37 no-host configure.tcc 48 31 18 19.3 osh-native-souffle
3 no-host configure.util-linux 13,993 8,884 5,586 30.3 bash
11 no-host configure.util-linux 14,781 9,038 6,234 30.1 dash
19 no-host configure.util-linux 30,979 20,772 11,269 30.0 osh-cpython
27 no-host configure.util-linux 14,366 8,567 6,000 30.3 osh-native
35 no-host configure.util-linux 14,301 8,646 5,849 30.3 osh-native-souffle
6 no-host configure.yash 1,814 1,087 735 24.2 bash
14 no-host configure.yash 1,754 1,043 713 24.2 dash
22 no-host configure.yash 2,437 1,508 970 24.4 osh-cpython
30 no-host configure.yash 1,822 1,048 778 24.4 osh-native
38 no-host configure.yash 1,824 1,035 793 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 28 20 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.6 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,533 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,431 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,223 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,163 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 109,350 0 0 0 8 0 1,994 51 bash
9 no-host bin-true 67,437 0 0 0 8 0 1,990 77 dash
17 no-host bin-true 760,918 0 0 0 8 0 1,995 228 osh-cpython
25 no-host bin-true 127,101 0 0 0 16 0 1,982 64 osh-native
33 no-host bin-true 124,782 0 0 0 16 0 1,990 123 osh-native-souffle
2 no-host configure.cpython 2,221,216 0 0 0 32,928 0 14,443 1,025 bash
10 no-host configure.cpython 2,241,537 0 0 0 32,992 0 14,519 963 dash
18 no-host configure.cpython 6,194,925 0 0 0 27,512 0 13,271 1,310 osh-cpython
26 no-host configure.cpython 2,231,375 0 0 0 27,520 0 13,268 1,145 osh-native
34 no-host configure.cpython 2,209,441 0 0 0 27,520 0 13,218 1,055 osh-native-souffle
4 no-host configure.ocaml 410,754 0 0 0 5,120 0 1,951 166 bash
12 no-host configure.ocaml 390,905 0 0 0 5,112 0 1,889 161 dash
20 no-host configure.ocaml 645,899 0 0 0 5,112 0 1,861 175 osh-cpython
28 no-host configure.ocaml 413,360 0 0 0 5,120 0 1,924 164 osh-native
36 no-host configure.ocaml 412,596 0 0 0 5,120 0 1,930 156 osh-native-souffle
5 no-host configure.tcc 6,572 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,510 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,938 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,110,196 1 0 0 42,400 0 18,557 1,081 bash
11 no-host configure.util-linux 2,264,234 1 0 0 42,592 0 17,401 1,021 dash
19 no-host configure.util-linux 5,326,778 8 0 0 39,112 0 16,997 1,212 osh-cpython
27 no-host configure.util-linux 2,001,902 2 0 0 39,120 0 17,111 964 osh-native
35 no-host configure.util-linux 1,999,854 0 0 0 39,128 0 16,980 934 osh-native-souffle
6 no-host configure.yash 256,884 0 0 0 4,120 0 867 197 bash
14 no-host configure.yash 244,483 0 0 0 3,720 0 865 79 dash
22 no-host configure.yash 387,350 0 0 0 3,728 0 851 91 osh-cpython
30 no-host configure.yash 258,741 0 0 0 3,736 0 850 100 osh-native
38 no-host configure.yash 257,894 0 0 0 3,736 0 849 63 osh-native-souffle
0 no-host hello-world 154 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,738 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 353 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-8eeb96e6
dash dash-0ebcf347
osh-cpython osh-86e10bda
osh-native osh-efbc1a0a
osh-native-souffle osh-8d8db128
host label host id
no-host no-host-556df3ee