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 469 23 21 24.62 1.20
bin-true no-host 677 546 2,283 806 809 3.37 1.19
configure.cpython no-host 15,055 15,077 28,778 15,240 15,378 1.91 1.01
configure.ocaml no-host 3,796 3,742 4,663 3,828 3,816 1.23 1.01
configure.tcc no-host 48 42 200 49 48 4.22 1.03
configure.util-linux no-host 13,994 14,916 31,526 14,466 14,372 2.25 1.03
configure.yash no-host 1,821 1,783 2,466 1,855 1,820 1.35 1.02
hello-world no-host 1 1 56 3 3 38.38 1.92

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,511 1,086 23,777 3,202 3,086 9.47 1.28
bin-true no-host 107,434 66,542 768,487 125,305 124,251 7.15 1.17
configure.cpython no-host 2,224,151 2,239,725 6,241,574 2,213,833 2,210,119 2.81 1.00
configure.ocaml no-host 410,028 391,401 647,462 412,886 412,871 1.58 1.01
configure.tcc no-host 6,575 5,477 24,100 6,984 6,908 3.67 1.06
configure.util-linux no-host 2,103,650 2,263,510 5,396,596 1,995,523 1,987,970 2.57 0.95
configure.yash no-host 255,913 244,585 387,866 258,580 257,836 1.52 1.01
hello-world no-host 149 83 3,945 345 335 26.48 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.3 3.4 22.8 9.2 8.7 5.28 2.12
bin-true no-host 3.0 1.6 18.2 8.0 7.7 6.05 2.65
configure.cpython no-host 27.4 27.5 27.5 27.5 27.5 1.00 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.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.4 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.2 6.3 5.8 6.62 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 806 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,240 1 61 14.9 27.5 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,466 3 61 21.2 30.3 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,828 1 2 2.6 20.4 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,855 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 9.2 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 809 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,378 1 62 14.9 27.5 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,372 3 59 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,816 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 21 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 16 4 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 469 419 53 22.8 osh-cpython
31 no-host abuild-print-help 23 18 5 9.2 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 677 493 213 3.0 bash
9 no-host bin-true 546 411 143 1.6 dash
17 no-host bin-true 2,283 1,525 1,013 18.2 osh-cpython
25 no-host bin-true 806 565 253 8.0 osh-native
33 no-host bin-true 809 561 263 7.7 osh-native-souffle
2 no-host configure.cpython 15,055 9,156 6,301 27.4 bash
10 no-host configure.cpython 15,077 9,239 6,246 27.5 dash
18 no-host configure.cpython 28,778 17,755 12,865 27.5 osh-cpython
26 no-host configure.cpython 15,240 8,964 6,542 27.5 osh-native
34 no-host configure.cpython 15,378 9,010 6,501 27.5 osh-native-souffle
4 no-host configure.ocaml 3,796 1,607 1,225 20.6 bash
12 no-host configure.ocaml 3,742 1,547 1,216 20.6 dash
20 no-host configure.ocaml 4,663 2,219 1,657 20.6 osh-cpython
28 no-host configure.ocaml 3,828 1,610 1,258 20.4 osh-native
36 no-host configure.ocaml 3,816 1,574 1,277 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 25 19.3 bash
13 no-host configure.tcc 42 28 15 19.3 dash
21 no-host configure.tcc 200 144 60 19.4 osh-cpython
29 no-host configure.tcc 49 36 13 19.3 osh-native
37 no-host configure.tcc 48 23 25 19.3 osh-native-souffle
3 no-host configure.util-linux 13,994 8,812 5,655 30.3 bash
11 no-host configure.util-linux 14,916 9,072 6,329 30.1 dash
19 no-host configure.util-linux 31,526 21,347 11,260 30.4 osh-cpython
27 no-host configure.util-linux 14,466 8,710 5,939 30.3 osh-native
35 no-host configure.util-linux 14,372 8,637 5,929 30.1 osh-native-souffle
6 no-host configure.yash 1,821 1,086 743 24.4 bash
14 no-host configure.yash 1,783 971 815 24.4 dash
22 no-host configure.yash 2,466 1,585 922 24.2 osh-cpython
30 no-host configure.yash 1,855 1,085 774 24.4 osh-native
38 no-host configure.yash 1,820 1,050 772 24.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 36 20 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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,511 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,086 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,777 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,086 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,434 0 0 0 8 0 1,989 85 bash
9 no-host bin-true 66,542 0 0 0 8 0 1,987 36 dash
17 no-host bin-true 768,487 0 0 0 8 0 2,000 187 osh-cpython
25 no-host bin-true 125,305 0 0 0 16 0 1,987 69 osh-native
33 no-host bin-true 124,251 0 0 0 16 0 1,985 100 osh-native-souffle
2 no-host configure.cpython 2,224,151 0 0 0 32,928 0 14,503 1,259 bash
10 no-host configure.cpython 2,239,725 0 0 0 32,992 0 14,600 966 dash
18 no-host configure.cpython 6,241,574 1 0 0 27,512 0 13,262 1,167 osh-cpython
26 no-host configure.cpython 2,213,833 0 0 0 27,520 0 13,268 993 osh-native
34 no-host configure.cpython 2,210,119 0 0 0 27,520 0 13,252 1,103 osh-native-souffle
4 no-host configure.ocaml 410,028 0 0 0 5,120 0 1,952 161 bash
12 no-host configure.ocaml 391,401 0 0 0 5,112 0 1,917 192 dash
20 no-host configure.ocaml 647,462 0 0 0 5,112 0 1,858 177 osh-cpython
28 no-host configure.ocaml 412,886 0 0 0 5,120 0 1,930 171 osh-native
36 no-host configure.ocaml 412,871 0 0 0 5,120 0 1,932 166 osh-native-souffle
5 no-host configure.tcc 6,575 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,100 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,984 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,908 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,103,650 1 0 0 42,400 0 18,577 1,032 bash
11 no-host configure.util-linux 2,263,510 0 0 0 42,584 0 17,447 1,036 dash
19 no-host configure.util-linux 5,396,596 6 0 0 39,112 0 16,965 1,308 osh-cpython
27 no-host configure.util-linux 1,995,523 0 0 0 39,128 0 16,976 1,050 osh-native
35 no-host configure.util-linux 1,987,970 0 0 0 39,136 0 16,979 1,034 osh-native-souffle
6 no-host configure.yash 255,913 0 0 0 4,120 0 872 83 bash
14 no-host configure.yash 244,585 0 0 0 3,720 0 871 63 dash
22 no-host configure.yash 387,866 0 0 0 3,728 0 857 88 osh-cpython
30 no-host configure.yash 258,580 0 0 0 3,736 0 846 87 osh-native
38 no-host configure.yash 257,836 0 0 0 3,736 0 847 86 osh-native-souffle
0 no-host hello-world 149 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,945 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b02f0c75
dash dash-0ebcf347
osh-cpython osh-5f25284d
osh-native osh-5967e35c
osh-native-souffle osh-d4b42449
host label host id
no-host no-host-556df3ee