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 459 22 21 24.35 1.18
bin-true no-host 670 537 2,324 803 802 3.47 1.20
configure.cpython no-host 14,822 14,873 28,456 14,986 15,102 1.92 1.01
configure.ocaml no-host 3,810 3,699 4,588 3,775 3,776 1.20 0.99
configure.tcc no-host 47 42 202 48 49 4.27 1.03
configure.util-linux no-host 13,760 14,741 31,030 14,171 14,112 2.26 1.03
configure.yash no-host 1,791 1,744 2,439 1,803 1,815 1.36 1.01
hello-world no-host 2 1 56 3 3 36.13 1.90

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,513 1,106 23,714 3,169 3,075 9.44 1.26
bin-true no-host 105,379 66,433 774,655 125,198 124,254 7.35 1.19
configure.cpython no-host 2,228,743 2,247,269 6,210,926 2,219,525 2,206,726 2.79 1.00
configure.ocaml no-host 410,565 391,191 647,963 413,259 413,194 1.58 1.01
configure.tcc no-host 6,536 5,492 24,094 6,975 6,917 3.69 1.07
configure.util-linux no-host 2,103,851 2,270,027 5,394,669 1,996,319 1,990,781 2.56 0.95
configure.yash no-host 256,687 244,687 388,789 257,749 257,738 1.51 1.00
hello-world no-host 153 82 3,946 345 337 25.79 2.25

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.6 9.0 8.7 5.06 2.03
bin-true no-host 3.0 1.4 18.4 8.0 7.7 6.09 2.65
configure.cpython no-host 27.5 27.4 27.3 27.3 27.4 0.99 0.99
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.4 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.3 30.3 30.0 30.1 1.01 1.00
configure.yash no-host 24.5 24.4 24.2 24.5 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.2 6.3 5.9 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 803 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 14,986 1 59 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,171 3 58 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,775 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.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,803 1 2 2.5 24.5 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 802 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,102 1 58 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,112 2 57 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,776 0 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.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,815 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 13 6 4.5 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 459 400 62 22.6 osh-cpython
31 no-host abuild-print-help 22 19 4 9.0 osh-native
39 no-host abuild-print-help 21 19 3 8.7 osh-native-souffle
1 no-host bin-true 670 508 193 3.0 bash
9 no-host bin-true 537 427 120 1.4 dash
17 no-host bin-true 2,324 1,501 1,082 18.4 osh-cpython
25 no-host bin-true 803 559 258 8.0 osh-native
33 no-host bin-true 802 579 237 7.7 osh-native-souffle
2 no-host configure.cpython 14,822 8,982 6,237 27.5 bash
10 no-host configure.cpython 14,873 8,943 6,350 27.4 dash
18 no-host configure.cpython 28,456 17,215 13,085 27.3 osh-cpython
26 no-host configure.cpython 14,986 8,986 6,269 27.3 osh-native
34 no-host configure.cpython 15,102 8,835 6,408 27.4 osh-native-souffle
4 no-host configure.ocaml 3,810 1,650 1,172 20.6 bash
12 no-host configure.ocaml 3,699 1,524 1,194 20.6 dash
20 no-host configure.ocaml 4,588 2,202 1,595 20.6 osh-cpython
28 no-host configure.ocaml 3,775 1,623 1,191 20.6 osh-native
36 no-host configure.ocaml 3,776 1,563 1,251 20.6 osh-native-souffle
5 no-host configure.tcc 47 31 17 19.3 bash
13 no-host configure.tcc 42 33 9 19.4 dash
21 no-host configure.tcc 202 145 60 19.3 osh-cpython
29 no-host configure.tcc 48 32 17 19.4 osh-native
37 no-host configure.tcc 49 24 25 19.4 osh-native-souffle
3 no-host configure.util-linux 13,760 8,703 5,529 30.0 bash
11 no-host configure.util-linux 14,741 9,129 6,108 30.3 dash
19 no-host configure.util-linux 31,030 20,976 11,129 30.3 osh-cpython
27 no-host configure.util-linux 14,171 8,546 5,822 30.0 osh-native
35 no-host configure.util-linux 14,112 8,569 5,741 30.1 osh-native-souffle
6 no-host configure.yash 1,791 1,018 781 24.5 bash
14 no-host configure.yash 1,744 1,022 725 24.4 dash
22 no-host configure.yash 2,439 1,538 942 24.2 osh-cpython
30 no-host configure.yash 1,803 1,003 804 24.5 osh-native
38 no-host configure.yash 1,815 1,038 779 24.4 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 56 38 17 18.2 osh-cpython
24 no-host hello-world 3 0 3 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,513 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,714 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,169 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,075 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,379 0 0 0 8 0 1,991 48 bash
9 no-host bin-true 66,433 0 0 0 8 0 1,981 34 dash
17 no-host bin-true 774,655 0 0 0 8 0 2,003 397 osh-cpython
25 no-host bin-true 125,198 0 0 0 16 0 1,989 56 osh-native
33 no-host bin-true 124,254 0 0 0 16 0 1,997 103 osh-native-souffle
2 no-host configure.cpython 2,228,743 1 0 0 32,928 0 14,551 1,214 bash
10 no-host configure.cpython 2,247,269 0 0 0 32,992 0 14,625 941 dash
18 no-host configure.cpython 6,210,926 0 0 0 27,512 0 13,257 1,158 osh-cpython
26 no-host configure.cpython 2,219,525 1 0 0 27,520 0 13,309 1,128 osh-native
34 no-host configure.cpython 2,206,726 0 0 0 27,520 0 13,298 1,086 osh-native-souffle
4 no-host configure.ocaml 410,565 0 0 0 5,120 0 1,951 217 bash
12 no-host configure.ocaml 391,191 0 0 0 5,112 0 1,891 203 dash
20 no-host configure.ocaml 647,963 0 0 0 5,112 0 1,853 153 osh-cpython
28 no-host configure.ocaml 413,259 0 0 0 5,120 0 1,927 191 osh-native
36 no-host configure.ocaml 413,194 0 0 0 5,120 0 1,930 159 osh-native-souffle
5 no-host configure.tcc 6,536 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,492 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,094 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,975 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,917 0 0 0 104 0 47 12 osh-native-souffle
3 no-host configure.util-linux 2,103,851 0 0 0 42,400 0 18,556 954 bash
11 no-host configure.util-linux 2,270,027 0 0 0 42,584 0 17,444 1,189 dash
19 no-host configure.util-linux 5,394,669 11 0 0 39,112 0 16,962 1,198 osh-cpython
27 no-host configure.util-linux 1,996,319 1 0 0 39,120 0 17,008 1,025 osh-native
35 no-host configure.util-linux 1,990,781 1 0 0 39,128 0 16,978 913 osh-native-souffle
6 no-host configure.yash 256,687 0 0 0 4,120 0 871 75 bash
14 no-host configure.yash 244,687 0 0 0 3,720 0 868 84 dash
22 no-host configure.yash 388,789 0 0 0 3,728 0 856 89 osh-cpython
30 no-host configure.yash 257,749 0 0 0 3,736 0 843 89 osh-native
38 no-host configure.yash 257,738 0 0 0 3,736 0 848 173 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,946 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8181441a
dash dash-0ebcf347
osh-cpython osh-ea7333fc
osh-native osh-c4cc56c5
osh-native-souffle osh-d5d1907c
host label host id
no-host no-host-556df3ee