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 21 24.62 1.16
bin-true no-host 673 548 2,368 816 806 3.52 1.21
configure.cpython no-host 15,217 15,158 29,558 15,742 15,549 1.94 1.03
configure.ocaml no-host 3,847 3,813 4,708 3,861 3,869 1.22 1.00
configure.tcc no-host 50 42 204 50 49 4.08 0.99
configure.util-linux no-host 14,199 15,215 31,792 14,596 14,482 2.24 1.03
configure.yash no-host 1,825 1,816 2,489 1,842 1,867 1.36 1.01
hello-world no-host 2 1 58 3 3 36.19 1.79

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,558 1,114 23,718 3,195 3,064 9.27 1.25
bin-true no-host 104,389 66,512 775,682 126,225 125,221 7.43 1.21
configure.cpython no-host 2,221,135 2,240,159 6,218,652 2,225,289 2,210,837 2.80 1.00
configure.ocaml no-host 410,665 391,124 647,068 413,026 412,642 1.58 1.01
configure.tcc no-host 6,601 5,460 24,030 6,987 6,927 3.64 1.06
configure.util-linux no-host 2,106,169 2,261,201 5,381,395 1,993,673 1,987,741 2.56 0.95
configure.yash no-host 256,307 243,513 387,130 257,438 257,634 1.51 1.00
hello-world no-host 152 83 3,942 344 342 25.93 2.26

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 8.9 8.5 5.22 2.06
bin-true no-host 2.9 1.4 18.4 8.0 7.5 6.37 2.77
configure.cpython no-host 27.4 27.4 27.1 27.4 27.7 0.99 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.3 19.4 19.4 19.1 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.2 1.01 1.01
hello-world no-host 2.8 1.4 18.1 6.3 5.9 6.58 2.29

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 694 1,858 1,230 2 0 50,000 0
bin-true no-host 816 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,742 1 66 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,596 3 63 21.2 30.3 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,861 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,842 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 806 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,549 1 61 14.9 27.7 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,482 3 60 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,869 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,867 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 6 4.3 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 468 422 49 22.6 osh-cpython
31 no-host abuild-print-help 22 14 8 8.9 osh-native
39 no-host abuild-print-help 21 12 9 8.5 osh-native-souffle
1 no-host bin-true 673 494 212 2.9 bash
9 no-host bin-true 548 421 135 1.4 dash
17 no-host bin-true 2,368 1,536 1,103 18.4 osh-cpython
25 no-host bin-true 816 574 256 8.0 osh-native
33 no-host bin-true 806 570 252 7.5 osh-native-souffle
2 no-host configure.cpython 15,217 9,097 6,513 27.4 bash
10 no-host configure.cpython 15,158 9,235 6,324 27.4 dash
18 no-host configure.cpython 29,558 17,897 13,567 27.1 osh-cpython
26 no-host configure.cpython 15,742 9,283 6,711 27.4 osh-native
34 no-host configure.cpython 15,549 9,056 6,533 27.7 osh-native-souffle
4 no-host configure.ocaml 3,847 1,618 1,269 20.6 bash
12 no-host configure.ocaml 3,813 1,652 1,180 20.6 dash
20 no-host configure.ocaml 4,708 2,241 1,680 20.6 osh-cpython
28 no-host configure.ocaml 3,861 1,687 1,211 20.6 osh-native
36 no-host configure.ocaml 3,869 1,604 1,300 20.6 osh-native-souffle
5 no-host configure.tcc 50 27 21 19.4 bash
13 no-host configure.tcc 42 29 13 19.3 dash
21 no-host configure.tcc 204 144 63 19.4 osh-cpython
29 no-host configure.tcc 50 32 18 19.4 osh-native
37 no-host configure.tcc 49 23 26 19.1 osh-native-souffle
3 no-host configure.util-linux 14,199 9,028 5,653 30.3 bash
11 no-host configure.util-linux 15,215 9,279 6,411 30.3 dash
19 no-host configure.util-linux 31,792 21,254 11,627 30.1 osh-cpython
27 no-host configure.util-linux 14,596 8,935 5,851 30.3 osh-native
35 no-host configure.util-linux 14,482 8,869 5,808 30.1 osh-native-souffle
6 no-host configure.yash 1,825 1,004 830 24.2 bash
14 no-host configure.yash 1,816 1,109 711 24.4 dash
22 no-host configure.yash 2,489 1,495 1,036 24.4 osh-cpython
30 no-host configure.yash 1,842 1,003 842 24.4 osh-native
38 no-host configure.yash 1,867 1,124 744 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 33 24 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,558 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,114 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,718 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 38 2 osh-native
39 no-host abuild-print-help 3,064 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,389 0 0 0 8 0 1,993 72 bash
9 no-host bin-true 66,512 0 0 0 8 0 1,988 71 dash
17 no-host bin-true 775,682 0 0 0 8 0 1,990 155 osh-cpython
25 no-host bin-true 126,225 0 0 0 16 0 1,990 58 osh-native
33 no-host bin-true 125,221 0 0 0 16 0 1,990 75 osh-native-souffle
2 no-host configure.cpython 2,221,135 2 0 0 32,928 0 14,452 1,069 bash
10 no-host configure.cpython 2,240,159 0 0 0 32,992 0 14,596 915 dash
18 no-host configure.cpython 6,218,652 0 0 0 27,512 0 13,231 1,224 osh-cpython
26 no-host configure.cpython 2,225,289 0 0 0 27,520 0 13,206 1,075 osh-native
34 no-host configure.cpython 2,210,837 0 0 0 27,520 0 13,262 942 osh-native-souffle
4 no-host configure.ocaml 410,665 0 0 0 5,120 0 1,950 232 bash
12 no-host configure.ocaml 391,124 0 0 0 5,112 0 1,888 163 dash
20 no-host configure.ocaml 647,068 0 0 0 5,112 0 1,861 179 osh-cpython
28 no-host configure.ocaml 413,026 0 0 0 5,120 0 1,918 173 osh-native
36 no-host configure.ocaml 412,642 0 0 0 5,120 0 1,939 162 osh-native-souffle
5 no-host configure.tcc 6,601 0 0 0 104 0 52 1 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,030 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,927 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,106,169 3 0 0 42,400 0 18,603 1,070 bash
11 no-host configure.util-linux 2,261,201 1 0 0 42,592 0 17,450 1,069 dash
19 no-host configure.util-linux 5,381,395 12 0 0 39,120 0 16,910 1,204 osh-cpython
27 no-host configure.util-linux 1,993,673 1 0 0 39,128 0 17,136 936 osh-native
35 no-host configure.util-linux 1,987,741 1 0 0 39,136 0 16,956 1,064 osh-native-souffle
6 no-host configure.yash 256,307 0 0 0 4,120 0 869 80 bash
14 no-host configure.yash 243,513 0 0 0 3,720 0 865 81 dash
22 no-host configure.yash 387,130 0 0 0 3,728 0 856 101 osh-cpython
30 no-host configure.yash 257,438 0 0 0 3,736 0 849 69 osh-native
38 no-host configure.yash 257,634 0 0 0 3,736 0 851 80 osh-native-souffle
0 no-host hello-world 152 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,942 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 2 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2650897e
dash dash-0ebcf347
osh-cpython osh-9ab8d1e6
osh-native osh-7e1b03fa
osh-native-souffle osh-04162954
host label host id
no-host no-host-556df3ee