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 470 22 21 24.61 1.16
bin-true no-host 672 552 2,303 815 814 3.43 1.21
configure.cpython no-host 14,960 14,966 28,872 15,356 15,484 1.93 1.03
configure.ocaml no-host 3,791 3,724 4,694 3,843 3,840 1.24 1.01
configure.tcc no-host 48 42 203 49 49 4.27 1.03
configure.util-linux no-host 13,909 14,815 31,463 14,480 14,438 2.26 1.04
configure.yash no-host 1,843 1,771 2,508 1,850 1,839 1.36 1.00
hello-world no-host 2 1 56 3 3 37.14 1.89

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,535 1,117 23,769 3,207 3,073 9.38 1.27
bin-true no-host 105,294 66,425 771,282 126,360 126,196 7.33 1.20
configure.cpython no-host 2,217,855 2,236,991 6,235,335 2,214,874 2,205,784 2.81 1.00
configure.ocaml no-host 411,636 391,236 648,017 412,956 411,685 1.57 1.00
configure.tcc no-host 6,561 5,476 24,076 6,940 6,891 3.67 1.06
configure.util-linux no-host 2,103,778 2,259,875 5,384,867 1,997,885 1,988,251 2.56 0.95
configure.yash no-host 256,106 245,087 388,802 257,246 256,826 1.52 1.00
hello-world no-host 153 81 3,943 341 340 25.77 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.3 3.5 22.6 9.0 8.7 5.21 2.09
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.1 27.5 27.4 27.3 27.3 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.1 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.0 30.0 30.1 30.4 30.1 1.00 1.01
configure.yash no-host 24.4 24.5 24.2 24.4 24.5 0.99 1.00
hello-world no-host 2.9 1.6 18.4 6.2 5.9 6.37 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 815 1 2 2.6 8.0 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,356 1 62 14.9 27.3 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,480 3 62 21.2 30.4 2,702,513 53,766 65,691 108,691 1,320,585 1,273,237 32,239 41 131,382 1
configure.ocaml no-host 3,843 1 2 2.6 20.4 150,080 11,112 5,207 7,508 71,612 70,960 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,782 14,286 271 0 50,000 0
configure.yash no-host 1,850 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 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,527 57,233 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 814 1 2 2.6 7.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,484 1 61 14.9 27.3 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,438 3 60 21.2 30.1 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,840 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,839 1 2 2.5 24.5 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,527 57,231 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.3 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 470 424 49 22.6 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
39 no-host abuild-print-help 21 6 15 8.7 osh-native-souffle
1 no-host bin-true 672 489 212 2.9 bash
9 no-host bin-true 552 418 138 1.4 dash
17 no-host bin-true 2,303 1,449 1,109 18.4 osh-cpython
25 no-host bin-true 815 564 265 8.0 osh-native
33 no-host bin-true 814 578 252 7.6 osh-native-souffle
2 no-host configure.cpython 14,960 9,024 6,318 27.1 bash
10 no-host configure.cpython 14,966 9,092 6,287 27.5 dash
18 no-host configure.cpython 28,872 17,664 13,037 27.4 osh-cpython
26 no-host configure.cpython 15,356 9,126 6,495 27.3 osh-native
34 no-host configure.cpython 15,484 8,949 6,623 27.3 osh-native-souffle
4 no-host configure.ocaml 3,791 1,648 1,182 20.6 bash
12 no-host configure.ocaml 3,724 1,580 1,162 20.6 dash
20 no-host configure.ocaml 4,694 2,265 1,640 20.6 osh-cpython
28 no-host configure.ocaml 3,843 1,701 1,181 20.4 osh-native
36 no-host configure.ocaml 3,840 1,672 1,201 20.6 osh-native-souffle
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 42 22 20 19.1 dash
21 no-host configure.tcc 203 152 55 19.3 osh-cpython
29 no-host configure.tcc 49 26 24 19.3 osh-native
37 no-host configure.tcc 49 34 15 19.4 osh-native-souffle
3 no-host configure.util-linux 13,909 8,775 5,605 30.0 bash
11 no-host configure.util-linux 14,815 9,110 6,182 30.0 dash
19 no-host configure.util-linux 31,463 20,900 11,606 30.1 osh-cpython
27 no-host configure.util-linux 14,480 8,743 5,931 30.4 osh-native
35 no-host configure.util-linux 14,438 8,582 6,052 30.1 osh-native-souffle
6 no-host configure.yash 1,843 1,058 786 24.4 bash
14 no-host configure.yash 1,771 1,049 725 24.5 dash
22 no-host configure.yash 2,508 1,518 1,030 24.2 osh-cpython
30 no-host configure.yash 1,850 977 878 24.4 osh-native
38 no-host configure.yash 1,839 1,074 769 24.5 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 36 20 18.4 osh-cpython
24 no-host hello-world 3 0 3 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,535 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,117 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,769 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,073 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,294 0 0 0 8 0 1,989 47 bash
9 no-host bin-true 66,425 0 0 0 8 0 1,992 40 dash
17 no-host bin-true 771,282 0 0 0 8 0 2,003 359 osh-cpython
25 no-host bin-true 126,360 0 0 0 16 0 1,995 213 osh-native
33 no-host bin-true 126,196 0 0 0 16 0 1,987 52 osh-native-souffle
2 no-host configure.cpython 2,217,855 0 0 0 32,928 0 14,511 1,088 bash
10 no-host configure.cpython 2,236,991 0 0 0 32,992 0 14,645 1,006 dash
18 no-host configure.cpython 6,235,335 1 0 0 27,512 0 13,236 1,232 osh-cpython
26 no-host configure.cpython 2,214,874 1 0 0 27,520 0 13,196 1,069 osh-native
34 no-host configure.cpython 2,205,784 0 0 0 27,520 0 13,214 971 osh-native-souffle
4 no-host configure.ocaml 411,636 0 0 0 5,120 0 1,948 159 bash
12 no-host configure.ocaml 391,236 0 0 0 5,112 0 1,935 144 dash
20 no-host configure.ocaml 648,017 0 0 0 5,112 0 1,858 166 osh-cpython
28 no-host configure.ocaml 412,956 0 0 0 5,120 0 1,923 173 osh-native
36 no-host configure.ocaml 411,685 0 0 0 5,120 0 1,937 142 osh-native-souffle
5 no-host configure.tcc 6,561 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,076 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,940 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,891 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,103,778 1 0 0 42,400 0 18,670 980 bash
11 no-host configure.util-linux 2,259,875 1 0 0 42,584 0 17,423 1,073 dash
19 no-host configure.util-linux 5,384,867 9 0 0 39,112 0 16,972 1,132 osh-cpython
27 no-host configure.util-linux 1,997,885 0 0 0 39,120 0 17,008 1,039 osh-native
35 no-host configure.util-linux 1,988,251 1 0 0 39,128 0 16,959 941 osh-native-souffle
6 no-host configure.yash 256,106 0 0 0 4,120 0 879 99 bash
14 no-host configure.yash 245,087 0 0 0 3,720 0 870 87 dash
22 no-host configure.yash 388,802 0 0 0 3,728 0 852 115 osh-cpython
30 no-host configure.yash 257,246 0 0 0 3,736 0 848 75 osh-native
38 no-host configure.yash 256,826 0 0 0 3,736 0 851 83 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,943 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d0264548
dash dash-0ebcf347
osh-cpython osh-7a05fc56
osh-native osh-239a3d0f
osh-native-souffle osh-4e529775
host label host id
no-host no-host-556df3ee