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 461 23 22 24.12 1.19
bin-true no-host 678 550 2,316 811 807 3.42 1.20
configure.cpython no-host 15,193 15,037 29,052 15,431 15,347 1.91 1.02
configure.ocaml no-host 3,820 3,733 4,695 3,812 3,812 1.23 1.00
configure.tcc no-host 48 43 205 49 48 4.30 1.02
configure.util-linux no-host 14,007 14,883 31,598 14,369 14,356 2.26 1.03
configure.yash no-host 1,812 1,780 2,464 1,832 1,820 1.36 1.01
hello-world no-host 2 1 57 3 3 36.83 1.84

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,551 1,110 23,678 3,158 3,105 9.28 1.24
bin-true no-host 104,353 65,425 773,690 126,176 124,294 7.41 1.21
configure.cpython no-host 2,219,326 2,238,327 6,209,237 2,227,025 2,204,635 2.80 1.00
configure.ocaml no-host 410,141 390,776 647,710 411,879 412,886 1.58 1.00
configure.tcc no-host 6,562 5,462 24,056 6,947 6,925 3.67 1.06
configure.util-linux no-host 2,102,853 2,264,268 5,377,712 1,993,483 1,990,358 2.56 0.95
configure.yash no-host 256,631 245,206 389,714 258,076 258,204 1.52 1.01
hello-world no-host 154 80 3,938 343 334 25.57 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.5 22.7 8.9 8.7 5.09 2.00
bin-true no-host 2.9 1.4 18.2 8.1 7.6 6.32 2.82
configure.cpython no-host 27.3 27.5 27.3 27.3 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.3 19.1 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 18.1 6.2 5.9 6.28 2.14

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,431 2 63 14.9 27.3 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,369 3 60 21.2 30.0 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,812 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 49 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,832 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 23 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 807 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,347 1 62 14.9 27.4 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,356 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,812 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.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 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 14 6 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 461 406 59 22.7 osh-cpython
31 no-host abuild-print-help 23 19 4 8.9 osh-native
39 no-host abuild-print-help 22 15 7 8.7 osh-native-souffle
1 no-host bin-true 678 495 215 2.9 bash
9 no-host bin-true 550 422 137 1.4 dash
17 no-host bin-true 2,316 1,472 1,109 18.2 osh-cpython
25 no-host bin-true 811 582 247 8.1 osh-native
33 no-host bin-true 807 588 238 7.6 osh-native-souffle
2 no-host configure.cpython 15,193 8,986 6,608 27.3 bash
10 no-host configure.cpython 15,037 9,119 6,341 27.5 dash
18 no-host configure.cpython 29,052 17,730 13,220 27.3 osh-cpython
26 no-host configure.cpython 15,431 8,925 6,608 27.3 osh-native
34 no-host configure.cpython 15,347 8,962 6,522 27.4 osh-native-souffle
4 no-host configure.ocaml 3,820 1,580 1,275 20.6 bash
12 no-host configure.ocaml 3,733 1,575 1,179 20.6 dash
20 no-host configure.ocaml 4,695 2,281 1,625 20.6 osh-cpython
28 no-host configure.ocaml 3,812 1,602 1,249 20.6 osh-native
36 no-host configure.ocaml 3,812 1,615 1,232 20.6 osh-native-souffle
5 no-host configure.tcc 48 26 22 19.3 bash
13 no-host configure.tcc 43 29 15 19.1 dash
21 no-host configure.tcc 205 142 67 19.4 osh-cpython
29 no-host configure.tcc 49 32 17 19.3 osh-native
37 no-host configure.tcc 48 22 27 19.3 osh-native-souffle
3 no-host configure.util-linux 14,007 8,913 5,565 30.1 bash
11 no-host configure.util-linux 14,883 9,146 6,241 30.1 dash
19 no-host configure.util-linux 31,598 20,937 11,774 30.1 osh-cpython
27 no-host configure.util-linux 14,369 8,731 5,840 30.0 osh-native
35 no-host configure.util-linux 14,356 8,720 5,832 30.1 osh-native-souffle
6 no-host configure.yash 1,812 1,057 764 24.4 bash
14 no-host configure.yash 1,780 1,023 760 24.4 dash
22 no-host configure.yash 2,464 1,584 923 24.4 osh-cpython
30 no-host configure.yash 1,832 1,024 813 24.4 osh-native
38 no-host configure.yash 1,820 1,082 741 24.4 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 57 40 16 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,551 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,678 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,158 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,105 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,353 0 0 0 8 0 1,993 41 bash
9 no-host bin-true 65,425 0 0 0 8 0 1,993 174 dash
17 no-host bin-true 773,690 0 0 0 8 0 1,990 226 osh-cpython
25 no-host bin-true 126,176 0 0 0 16 0 1,987 77 osh-native
33 no-host bin-true 124,294 0 0 0 16 0 1,992 69 osh-native-souffle
2 no-host configure.cpython 2,219,326 0 0 0 32,928 0 14,469 1,110 bash
10 no-host configure.cpython 2,238,327 0 0 0 32,992 0 14,560 998 dash
18 no-host configure.cpython 6,209,237 0 0 0 27,512 0 13,242 1,088 osh-cpython
26 no-host configure.cpython 2,227,025 2 0 0 27,520 0 13,172 1,108 osh-native
34 no-host configure.cpython 2,204,635 0 0 0 27,520 0 13,287 986 osh-native-souffle
4 no-host configure.ocaml 410,141 0 0 0 5,120 0 1,958 155 bash
12 no-host configure.ocaml 390,776 0 0 0 5,112 0 1,934 174 dash
20 no-host configure.ocaml 647,710 0 0 0 5,112 0 1,853 162 osh-cpython
28 no-host configure.ocaml 411,879 0 0 0 5,120 0 1,920 174 osh-native
36 no-host configure.ocaml 412,886 0 0 0 5,120 0 1,932 157 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,462 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,056 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,947 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,925 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,102,853 0 0 0 42,400 0 18,541 1,087 bash
11 no-host configure.util-linux 2,264,268 0 0 0 42,584 0 17,475 1,021 dash
19 no-host configure.util-linux 5,377,712 15 0 0 39,112 0 16,965 1,155 osh-cpython
27 no-host configure.util-linux 1,993,483 1 0 0 39,120 0 16,985 912 osh-native
35 no-host configure.util-linux 1,990,358 1 0 0 39,128 0 16,876 1,009 osh-native-souffle
6 no-host configure.yash 256,631 0 0 0 4,120 0 869 67 bash
14 no-host configure.yash 245,206 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 389,714 0 0 0 3,728 0 852 87 osh-cpython
30 no-host configure.yash 258,076 0 0 0 3,736 0 847 68 osh-native
38 no-host configure.yash 258,204 0 0 0 3,736 0 850 92 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,938 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 334 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-18b9b95e
dash dash-0ebcf347
osh-cpython osh-4c784d92
osh-native osh-a6191cd2
osh-native-souffle osh-4cba9a85
host label host id
no-host no-host-556df3ee