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 470 22 21 24.56 1.17
bin-true no-host 672 550 2,314 812 805 3.45 1.21
configure.cpython no-host 14,940 15,476 29,731 15,564 15,334 1.99 1.04
configure.ocaml no-host 3,888 3,804 4,751 3,830 3,858 1.22 0.98
configure.tcc no-host 48 42 208 48 48 4.31 1.00
configure.util-linux no-host 14,051 15,165 32,210 14,356 14,335 2.29 1.02
configure.yash no-host 1,854 1,814 2,529 1,824 1,820 1.36 0.98
hello-world no-host 1 1 59 3 3 40.46 1.98

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,554 1,128 23,776 3,190 3,054 9.31 1.25
bin-true no-host 104,346 67,475 772,605 126,244 126,249 7.40 1.21
configure.cpython no-host 2,221,299 2,247,461 6,252,567 2,218,473 2,206,621 2.81 1.00
configure.ocaml no-host 410,866 390,560 647,155 413,025 412,389 1.58 1.01
configure.tcc no-host 6,577 5,468 24,146 6,958 6,886 3.67 1.06
configure.util-linux no-host 2,093,420 2,259,224 5,397,859 1,989,575 1,993,334 2.58 0.95
configure.yash no-host 256,114 245,137 388,435 258,292 257,992 1.52 1.01
hello-world no-host 155 84 3,939 346 336 25.41 2.23

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.7 9.0 8.4 5.09 2.03
bin-true no-host 3.0 1.4 18.4 8.0 7.6 6.09 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 27.3 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.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 29.9 30.3 30.1 30.0 1.00 1.00
configure.yash no-host 24.5 24.2 24.4 24.4 24.2 0.99 0.99
hello-world no-host 2.9 1.6 18.2 6.4 5.9 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 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,564 1 65 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,356 3 61 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,830 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 48 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,824 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 9.0 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 805 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,334 1 60 14.9 27.3 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,335 3 59 21.2 30.0 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,858 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 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,820 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.4 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 11 9 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 470 421 52 22.7 osh-cpython
31 no-host abuild-print-help 22 18 5 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.4 osh-native-souffle
1 no-host bin-true 672 498 205 3.0 bash
9 no-host bin-true 550 422 135 1.4 dash
17 no-host bin-true 2,314 1,530 1,043 18.4 osh-cpython
25 no-host bin-true 812 585 243 8.0 osh-native
33 no-host bin-true 805 571 249 7.6 osh-native-souffle
2 no-host configure.cpython 14,940 8,906 6,433 27.4 bash
10 no-host configure.cpython 15,476 9,313 6,533 27.4 dash
18 no-host configure.cpython 29,731 17,987 13,439 27.4 osh-cpython
26 no-host configure.cpython 15,564 9,077 6,765 27.4 osh-native
34 no-host configure.cpython 15,334 8,934 6,496 27.3 osh-native-souffle
4 no-host configure.ocaml 3,888 1,750 1,167 20.6 bash
12 no-host configure.ocaml 3,804 1,610 1,212 20.6 dash
20 no-host configure.ocaml 4,751 2,332 1,632 20.6 osh-cpython
28 no-host configure.ocaml 3,830 1,674 1,195 20.6 osh-native
36 no-host configure.ocaml 3,858 1,558 1,335 20.6 osh-native-souffle
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 42 33 9 19.3 dash
21 no-host configure.tcc 208 151 60 19.3 osh-cpython
29 no-host configure.tcc 48 30 19 19.3 osh-native
37 no-host configure.tcc 48 25 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,051 8,857 5,669 30.3 bash
11 no-host configure.util-linux 15,165 9,166 6,495 29.9 dash
19 no-host configure.util-linux 32,210 21,509 11,823 30.3 osh-cpython
27 no-host configure.util-linux 14,356 8,669 5,883 30.1 osh-native
35 no-host configure.util-linux 14,335 8,742 5,792 30.0 osh-native-souffle
6 no-host configure.yash 1,854 1,063 801 24.5 bash
14 no-host configure.yash 1,814 1,054 763 24.2 dash
22 no-host configure.yash 2,529 1,579 993 24.4 osh-cpython
30 no-host configure.yash 1,824 987 838 24.4 osh-native
38 no-host configure.yash 1,820 1,012 812 24.2 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 59 38 21 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.4 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,554 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,128 0 0 0 8 0 38 5 dash
23 no-host abuild-print-help 23,776 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,054 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,346 0 0 0 8 0 1,996 79 bash
9 no-host bin-true 67,475 0 0 0 8 0 1,993 46 dash
17 no-host bin-true 772,605 0 0 0 8 0 1,997 267 osh-cpython
25 no-host bin-true 126,244 0 0 0 16 0 1,997 59 osh-native
33 no-host bin-true 126,249 0 0 0 16 0 1,998 52 osh-native-souffle
2 no-host configure.cpython 2,221,299 0 0 0 32,928 0 14,576 1,170 bash
10 no-host configure.cpython 2,247,461 0 0 0 32,992 0 14,612 1,067 dash
18 no-host configure.cpython 6,252,567 0 0 0 27,512 0 13,228 1,126 osh-cpython
26 no-host configure.cpython 2,218,473 0 0 0 27,520 0 13,269 963 osh-native
34 no-host configure.cpython 2,206,621 0 0 0 27,520 0 13,253 1,047 osh-native-souffle
4 no-host configure.ocaml 410,866 0 0 0 5,120 0 1,954 163 bash
12 no-host configure.ocaml 390,560 0 0 0 5,112 0 1,881 145 dash
20 no-host configure.ocaml 647,155 0 0 0 5,112 0 1,865 172 osh-cpython
28 no-host configure.ocaml 413,025 0 0 0 5,120 0 1,918 188 osh-native
36 no-host configure.ocaml 412,389 0 0 0 5,120 0 1,932 170 osh-native-souffle
5 no-host configure.tcc 6,577 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,146 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,958 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,886 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,093,420 2 0 0 42,400 0 18,615 974 bash
11 no-host configure.util-linux 2,259,224 0 0 0 42,584 0 17,424 1,026 dash
19 no-host configure.util-linux 5,397,859 9 0 0 39,136 0 16,949 1,248 osh-cpython
27 no-host configure.util-linux 1,989,575 3 0 0 39,128 0 16,956 967 osh-native
35 no-host configure.util-linux 1,993,334 0 0 0 39,136 0 16,987 892 osh-native-souffle
6 no-host configure.yash 256,114 0 0 0 4,120 0 871 78 bash
14 no-host configure.yash 245,137 0 0 0 3,720 0 865 79 dash
22 no-host configure.yash 388,435 0 0 0 3,728 0 852 92 osh-cpython
30 no-host configure.yash 258,292 0 0 0 3,736 0 849 80 osh-native
38 no-host configure.yash 257,992 0 0 0 3,736 0 851 66 osh-native-souffle
0 no-host hello-world 155 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,939 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-9a0ba2c9
dash dash-0ebcf347
osh-cpython osh-f52236ca
osh-native osh-9da2cf39
osh-native-souffle osh-e83cb7d8
host label host id
no-host no-host-556df3ee