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 462 22 22 24.50 1.17
bin-true no-host 681 540 2,277 810 808 3.34 1.19
configure.cpython no-host 14,986 15,019 29,221 15,345 15,247 1.95 1.02
configure.ocaml no-host 3,785 3,750 4,653 3,854 3,811 1.23 1.02
configure.tcc no-host 48 42 197 49 48 4.12 1.03
configure.util-linux no-host 13,941 14,857 31,414 14,350 14,317 2.25 1.03
configure.yash no-host 1,810 1,790 2,452 1,819 1,817 1.35 1.01
hello-world no-host 1 1 50 3 3 33.44 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,520 1,109 23,471 3,138 3,142 9.31 1.25
bin-true no-host 107,413 66,416 782,532 126,853 125,912 7.29 1.18
configure.cpython no-host 2,218,660 2,246,773 6,279,799 2,232,517 2,206,801 2.83 1.01
configure.ocaml no-host 410,677 391,271 647,682 413,578 412,337 1.58 1.01
configure.tcc no-host 6,552 5,490 23,812 6,950 6,885 3.63 1.06
configure.util-linux no-host 2,099,688 2,257,999 5,392,637 2,002,756 1,995,806 2.57 0.95
configure.yash no-host 255,739 244,994 387,334 257,047 257,721 1.51 1.01
hello-world no-host 152 84 3,752 353 346 24.68 2.32

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.2 9.2 8.7 4.97 2.06
bin-true no-host 3.0 1.4 17.7 8.1 7.6 5.87 2.70
configure.cpython no-host 27.5 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 20.6 1.01 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 19.0 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.5 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.9 1.6 17.8 6.3 5.9 6.18 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,782 3,782 0 695 1,857 1,230 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.1 154,747 13,284 2,886 9,745 78,326 66,676 3,008 3 50,000 0
configure.cpython no-host 15,345 1 61 15.0 27.4 1,772,729 49,954 28,595 86,398 908,078 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,350 3 59 21.3 30.0 2,703,497 29,659 65,899 109,676 1,320,584 1,273,237 32,239 41 131,798 1
configure.ocaml no-host 3,854 1 2 2.6 20.4 150,103 11,131 5,225 7,532 71,611 70,960 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,588 30,588 0 1,521 14,781 14,286 271 0 50,000 0
configure.yash no-host 1,819 1 2 2.6 24.4 139,756 8,029 6,688 6,337 70,286 63,133 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,331 64,539 42,749 4,572 54,526 57,233 277 3 85,498 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 696 1,857 1,228 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.6 154,746 13,072 2,824 9,746 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,247 1 60 15.0 27.4 1,772,728 49,114 28,533 86,399 908,078 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,317 2 59 21.3 30.1 2,703,497 44,714 65,817 109,678 1,320,584 1,273,235 32,239 41 131,634 1
configure.ocaml no-host 3,811 0 2 2.6 20.6 150,103 11,069 5,163 7,534 71,611 70,958 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.0 30,588 30,588 0 1,523 14,781 14,284 271 0 50,000 0
configure.yash no-host 1,817 1 2 2.6 24.2 139,756 7,967 6,626 6,339 70,286 63,131 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,330 64,477 42,687 4,573 54,526 57,231 277 3 85,374 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 9 8 1 3.5 dash
23 no-host abuild-print-help 462 414 51 22.2 osh-cpython
31 no-host abuild-print-help 22 12 10 9.2 osh-native
39 no-host abuild-print-help 22 14 8 8.7 osh-native-souffle
1 no-host bin-true 681 497 213 3.0 bash
9 no-host bin-true 540 413 137 1.4 dash
17 no-host bin-true 2,277 1,478 1,054 17.7 osh-cpython
25 no-host bin-true 810 570 254 8.1 osh-native
33 no-host bin-true 808 578 246 7.6 osh-native-souffle
2 no-host configure.cpython 14,986 8,963 6,417 27.5 bash
10 no-host configure.cpython 15,019 9,152 6,284 27.4 dash
18 no-host configure.cpython 29,221 17,691 13,409 27.4 osh-cpython
26 no-host configure.cpython 15,345 9,077 6,536 27.4 osh-native
34 no-host configure.cpython 15,247 8,857 6,507 27.4 osh-native-souffle
4 no-host configure.ocaml 3,785 1,608 1,210 20.4 bash
12 no-host configure.ocaml 3,750 1,643 1,125 20.6 dash
20 no-host configure.ocaml 4,653 2,207 1,667 20.6 osh-cpython
28 no-host configure.ocaml 3,854 1,633 1,260 20.4 osh-native
36 no-host configure.ocaml 3,811 1,567 1,280 20.6 osh-native-souffle
5 no-host configure.tcc 48 31 18 19.4 bash
13 no-host configure.tcc 42 38 5 19.3 dash
21 no-host configure.tcc 197 168 32 19.3 osh-cpython
29 no-host configure.tcc 49 26 24 19.3 osh-native
37 no-host configure.tcc 48 23 26 19.0 osh-native-souffle
3 no-host configure.util-linux 13,941 8,938 5,471 30.1 bash
11 no-host configure.util-linux 14,857 9,092 6,246 30.1 dash
19 no-host configure.util-linux 31,414 21,237 11,243 30.3 osh-cpython
27 no-host configure.util-linux 14,350 8,608 5,930 30.0 osh-native
35 no-host configure.util-linux 14,317 8,649 5,852 30.1 osh-native-souffle
6 no-host configure.yash 1,810 1,019 797 24.4 bash
14 no-host configure.yash 1,790 1,009 784 24.5 dash
22 no-host configure.yash 2,452 1,533 957 24.4 osh-cpython
30 no-host configure.yash 1,819 1,058 765 24.4 osh-native
38 no-host configure.yash 1,817 1,074 747 24.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 50 29 20 17.8 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,520 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,471 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,138 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,142 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 107,413 0 0 0 8 0 1,986 59 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,991 64 dash
17 no-host bin-true 782,532 0 0 0 8 0 1,990 96 osh-cpython
25 no-host bin-true 126,853 0 0 0 16 0 1,982 48 osh-native
33 no-host bin-true 125,912 0 0 0 16 0 1,981 108 osh-native-souffle
2 no-host configure.cpython 2,218,660 0 0 0 32,928 0 14,541 1,079 bash
10 no-host configure.cpython 2,246,773 0 0 0 32,992 0 14,559 927 dash
18 no-host configure.cpython 6,279,799 0 0 0 27,512 0 13,283 1,167 osh-cpython
26 no-host configure.cpython 2,232,517 0 0 0 27,520 0 13,299 1,086 osh-native
34 no-host configure.cpython 2,206,801 0 0 0 27,520 0 13,270 1,072 osh-native-souffle
4 no-host configure.ocaml 410,677 0 0 0 5,120 0 1,950 161 bash
12 no-host configure.ocaml 391,271 0 0 0 5,112 0 1,896 142 dash
20 no-host configure.ocaml 647,682 0 0 0 5,112 0 1,875 179 osh-cpython
28 no-host configure.ocaml 413,578 0 0 0 5,120 0 1,925 187 osh-native
36 no-host configure.ocaml 412,337 0 0 0 5,120 0 1,932 150 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 11 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 10 dash
21 no-host configure.tcc 23,812 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,950 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,885 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,099,688 0 0 0 42,408 0 18,574 931 bash
11 no-host configure.util-linux 2,257,999 1 0 0 42,592 0 17,566 1,148 dash
19 no-host configure.util-linux 5,392,637 8 0 0 39,120 0 16,991 1,292 osh-cpython
27 no-host configure.util-linux 2,002,756 0 0 0 39,128 0 16,930 962 osh-native
35 no-host configure.util-linux 1,995,806 0 0 0 39,136 0 16,966 919 osh-native-souffle
6 no-host configure.yash 255,739 0 0 0 4,120 0 872 91 bash
14 no-host configure.yash 244,994 0 0 0 3,720 0 862 81 dash
22 no-host configure.yash 387,334 0 0 0 3,728 0 857 85 osh-cpython
30 no-host configure.yash 257,047 0 0 0 3,736 0 844 81 osh-native
38 no-host configure.yash 257,721 0 0 0 3,736 0 846 72 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,752 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b766afda
dash dash-0ebcf347
osh-cpython osh-8d049c35
osh-native osh-c2f81c41
osh-native-souffle osh-956e9ad6
host label host id
no-host no-host-556df3ee