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 468 22 22 24.08 1.15
bin-true no-host 680 553 2,342 835 817 3.45 1.23
configure.cpython no-host 15,388 15,502 30,231 15,827 15,860 1.96 1.03
configure.ocaml no-host 3,878 3,880 4,766 3,888 3,961 1.23 1.00
configure.tcc no-host 48 44 198 49 51 4.14 1.03
configure.util-linux no-host 14,355 15,262 32,106 14,791 14,891 2.24 1.03
configure.yash no-host 1,861 1,865 2,501 1,872 1,909 1.34 1.01
hello-world no-host 2 1 53 3 3 32.85 1.81

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,519 1,140 23,325 3,151 3,084 9.26 1.25
bin-true no-host 104,391 66,423 762,883 127,805 125,883 7.31 1.22
configure.cpython no-host 2,219,776 2,243,330 6,227,505 2,218,211 2,200,022 2.81 1.00
configure.ocaml no-host 410,436 391,041 645,912 412,653 412,310 1.57 1.01
configure.tcc no-host 6,563 5,464 23,656 6,982 6,934 3.60 1.06
configure.util-linux no-host 2,103,647 2,259,955 5,353,023 1,999,351 1,990,353 2.54 0.95
configure.yash no-host 256,527 245,120 387,799 258,293 257,767 1.51 1.01
hello-world no-host 150 83 3,738 348 346 24.92 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.4 22.0 9.0 8.7 4.94 2.03
bin-true no-host 2.9 1.6 17.7 8.1 7.6 6.14 2.82
configure.cpython no-host 27.4 27.3 27.4 27.5 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 17.7 6.3 5.9 6.14 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,773 3,773 0 695 1,850 1,228 2 0 50,000 0
bin-true no-host 835 1 2 2.6 8.1 154,738 13,220 2,877 9,745 78,319 66,674 3,008 3 50,000 0
configure.cpython no-host 15,827 2 66 15.0 27.5 1,772,720 49,854 28,587 86,398 908,071 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,791 3 63 21.3 30.1 2,703,488 29,745 65,870 109,676 1,320,577 1,273,235 27,391 41 131,740 1
configure.ocaml no-host 3,888 1 2 2.6 20.6 150,094 11,051 5,221 7,532 71,604 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,579 30,579 0 1,521 14,774 14,284 226 0 50,000 0
configure.yash no-host 1,872 1 2 2.6 24.2 139,747 8,020 6,679 6,337 70,279 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,322 64,530 42,740 4,572 54,519 57,231 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,772 3,772 0 696 1,850 1,226 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.6 154,737 13,063 2,815 9,746 78,319 66,672 3,008 3 50,000 0
configure.cpython no-host 15,860 2 66 14.9 27.3 1,772,719 49,105 28,525 86,399 908,071 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,891 3 66 21.3 30.3 2,703,488 42,741 65,808 109,678 1,320,577 1,273,233 27,391 41 131,616 1
configure.ocaml no-host 3,961 1 2 2.6 20.6 150,094 10,989 5,159 7,534 71,604 70,956 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,579 30,579 0 1,523 14,774 14,282 226 0 50,000 0
configure.yash no-host 1,909 1 2 2.6 24.2 139,747 7,958 6,617 6,339 70,279 63,129 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,321 64,468 42,678 4,573 54,519 57,229 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 18 2 4.5 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 468 410 62 22.0 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
39 no-host abuild-print-help 22 14 9 8.7 osh-native-souffle
1 no-host bin-true 680 495 215 2.9 bash
9 no-host bin-true 553 418 144 1.6 dash
17 no-host bin-true 2,342 1,507 1,120 17.7 osh-cpython
25 no-host bin-true 835 574 275 8.1 osh-native
33 no-host bin-true 817 563 267 7.6 osh-native-souffle
2 no-host configure.cpython 15,388 9,231 6,560 27.4 bash
10 no-host configure.cpython 15,502 9,239 6,695 27.3 dash
18 no-host configure.cpython 30,231 18,046 14,197 27.4 osh-cpython
26 no-host configure.cpython 15,827 9,376 6,723 27.5 osh-native
34 no-host configure.cpython 15,860 8,993 6,944 27.3 osh-native-souffle
4 no-host configure.ocaml 3,878 1,591 1,326 20.6 bash
12 no-host configure.ocaml 3,880 1,625 1,271 20.4 dash
20 no-host configure.ocaml 4,766 2,242 1,741 20.4 osh-cpython
28 no-host configure.ocaml 3,888 1,707 1,222 20.6 osh-native
36 no-host configure.ocaml 3,961 1,664 1,331 20.6 osh-native-souffle
5 no-host configure.tcc 48 28 20 19.3 bash
13 no-host configure.tcc 44 18 26 19.4 dash
21 no-host configure.tcc 198 150 51 19.3 osh-cpython
29 no-host configure.tcc 49 30 20 19.4 osh-native
37 no-host configure.tcc 51 35 17 19.3 osh-native-souffle
3 no-host configure.util-linux 14,355 9,050 5,785 30.3 bash
11 no-host configure.util-linux 15,262 9,379 6,374 30.1 dash
19 no-host configure.util-linux 32,106 21,402 11,839 30.1 osh-cpython
27 no-host configure.util-linux 14,791 8,903 6,076 30.1 osh-native
35 no-host configure.util-linux 14,891 8,906 6,165 30.3 osh-native-souffle
6 no-host configure.yash 1,861 1,084 787 24.4 bash
14 no-host configure.yash 1,865 1,070 798 24.4 dash
22 no-host configure.yash 2,501 1,497 1,049 24.2 osh-cpython
30 no-host configure.yash 1,872 1,052 823 24.2 osh-native
38 no-host configure.yash 1,909 1,097 816 24.2 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 53 29 24 17.7 osh-cpython
24 no-host hello-world 3 3 0 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,519 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,140 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,325 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,151 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,084 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 104,391 0 0 0 8 0 1,990 59 bash
9 no-host bin-true 66,423 0 0 0 8 0 1,986 52 dash
17 no-host bin-true 762,883 0 0 0 8 0 1,999 168 osh-cpython
25 no-host bin-true 127,805 0 0 0 16 0 1,988 72 osh-native
33 no-host bin-true 125,883 0 0 0 16 0 1,986 56 osh-native-souffle
2 no-host configure.cpython 2,219,776 0 0 0 32,928 0 14,430 1,257 bash
10 no-host configure.cpython 2,243,330 1 0 0 32,992 0 14,651 968 dash
18 no-host configure.cpython 6,227,505 0 0 0 27,512 0 13,219 1,223 osh-cpython
26 no-host configure.cpython 2,218,211 0 0 0 27,520 0 13,203 1,107 osh-native
34 no-host configure.cpython 2,200,022 0 0 0 27,520 0 13,274 1,148 osh-native-souffle
4 no-host configure.ocaml 410,436 0 0 0 5,120 0 1,947 162 bash
12 no-host configure.ocaml 391,041 0 0 0 5,112 0 1,881 155 dash
20 no-host configure.ocaml 645,912 0 0 0 5,112 0 1,858 159 osh-cpython
28 no-host configure.ocaml 412,653 0 0 0 5,120 0 1,935 137 osh-native
36 no-host configure.ocaml 412,310 0 0 0 5,120 0 1,929 147 osh-native-souffle
5 no-host configure.tcc 6,563 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,656 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,982 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,934 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,103,647 1 0 0 42,408 0 18,729 1,074 bash
11 no-host configure.util-linux 2,259,955 0 0 0 42,592 0 17,418 1,129 dash
19 no-host configure.util-linux 5,353,023 8 0 0 39,136 0 17,013 1,344 osh-cpython
27 no-host configure.util-linux 1,999,351 0 0 0 39,128 0 17,003 1,079 osh-native
35 no-host configure.util-linux 1,990,353 0 0 0 39,136 0 16,974 1,102 osh-native-souffle
6 no-host configure.yash 256,527 0 0 0 4,120 0 870 87 bash
14 no-host configure.yash 245,120 0 0 0 3,720 0 865 77 dash
22 no-host configure.yash 387,799 0 0 0 3,728 0 852 96 osh-cpython
30 no-host configure.yash 258,293 0 0 0 3,736 0 848 77 osh-native
38 no-host configure.yash 257,767 0 0 0 3,736 0 851 82 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 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 348 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-3a80b6fb
dash dash-0ebcf347
osh-cpython osh-45eff604
osh-native osh-87c2dcd9
osh-native-souffle osh-1be40662
host label host id
no-host no-host-556df3ee