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 468 22 21 24.40 1.15
bin-true no-host 668 539 2,313 806 799 3.46 1.21
configure.cpython no-host 15,035 15,221 29,403 15,440 15,266 1.96 1.03
configure.ocaml no-host 3,821 3,769 4,797 3,837 3,826 1.26 1.00
configure.tcc no-host 47 42 205 49 49 4.34 1.04
configure.util-linux no-host 14,060 15,053 31,649 14,741 14,390 2.25 1.05
configure.yash no-host 1,813 1,780 2,491 1,829 1,834 1.37 1.01
hello-world no-host 1 1 66 3 3 44.88 1.95

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,573 1,108 23,581 3,206 3,114 9.16 1.25
bin-true no-host 103,236 65,471 760,558 126,170 123,284 7.37 1.22
configure.cpython no-host 2,230,115 2,243,597 6,219,953 2,224,178 2,216,393 2.79 1.00
configure.ocaml no-host 411,205 390,932 644,430 413,365 412,564 1.57 1.01
configure.tcc no-host 6,572 5,481 23,892 6,989 6,886 3.64 1.06
configure.util-linux no-host 2,093,750 2,262,871 5,356,749 1,997,637 1,986,925 2.56 0.95
configure.yash no-host 256,474 245,186 387,047 258,231 257,475 1.51 1.01
hello-world no-host 150 84 3,952 340 334 26.35 2.27

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.5 5.07 2.03
bin-true no-host 2.9 1.6 18.4 8.1 7.7 6.38 2.82
configure.cpython no-host 27.4 27.4 27.5 27.5 27.4 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.4 19.3 19.4 19.1 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.2 24.2 24.5 24.1 0.99 1.00
hello-world no-host 2.8 1.4 18.3 6.3 5.9 6.63 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,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 806 1 2 2.6 8.1 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,440 1 63 14.9 27.5 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 14,741 3 62 21.2 30.1 2,698,991 29,940 65,698 108,699 1,288,281 1,302,011 32,241 41 131,396 1
configure.ocaml no-host 3,837 1 2 2.6 20.4 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,829 1 2 2.5 24.5 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 799 1 2 2.6 7.7 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,266 1 63 14.9 27.4 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 14,390 3 61 21.2 30.1 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,826 1 2 2.6 20.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,834 1 2 2.5 24.1 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 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 5 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 468 429 42 22.6 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 13 8 8.5 osh-native-souffle
1 no-host bin-true 668 494 207 2.9 bash
9 no-host bin-true 539 412 136 1.6 dash
17 no-host bin-true 2,313 1,492 1,075 18.4 osh-cpython
25 no-host bin-true 806 587 235 8.1 osh-native
33 no-host bin-true 799 561 252 7.7 osh-native-souffle
2 no-host configure.cpython 15,035 9,110 6,325 27.4 bash
10 no-host configure.cpython 15,221 9,079 6,557 27.4 dash
18 no-host configure.cpython 29,403 17,705 13,592 27.5 osh-cpython
26 no-host configure.cpython 15,440 9,217 6,489 27.5 osh-native
34 no-host configure.cpython 15,266 9,126 6,397 27.4 osh-native-souffle
4 no-host configure.ocaml 3,821 1,711 1,144 20.6 bash
12 no-host configure.ocaml 3,769 1,584 1,201 20.6 dash
20 no-host configure.ocaml 4,797 2,233 1,776 20.6 osh-cpython
28 no-host configure.ocaml 3,837 1,648 1,228 20.4 osh-native
36 no-host configure.ocaml 3,826 1,679 1,183 20.6 osh-native-souffle
5 no-host configure.tcc 47 37 11 19.3 bash
13 no-host configure.tcc 42 33 9 19.4 dash
21 no-host configure.tcc 205 160 48 19.3 osh-cpython
29 no-host configure.tcc 49 31 18 19.4 osh-native
37 no-host configure.tcc 49 27 23 19.1 osh-native-souffle
3 no-host configure.util-linux 14,060 8,887 5,638 30.1 bash
11 no-host configure.util-linux 15,053 9,316 6,216 30.1 dash
19 no-host configure.util-linux 31,649 21,176 11,563 30.0 osh-cpython
27 no-host configure.util-linux 14,741 8,745 6,179 30.1 osh-native
35 no-host configure.util-linux 14,390 8,528 6,045 30.1 osh-native-souffle
6 no-host configure.yash 1,813 1,058 764 24.5 bash
14 no-host configure.yash 1,780 969 814 24.2 dash
22 no-host configure.yash 2,491 1,479 1,053 24.2 osh-cpython
30 no-host configure.yash 1,829 1,046 786 24.5 osh-native
38 no-host configure.yash 1,834 1,050 789 24.1 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 66 41 24 18.3 osh-cpython
24 no-host hello-world 3 3 0 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,573 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,581 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,114 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 103,236 0 0 0 8 0 1,991 39 bash
9 no-host bin-true 65,471 0 0 0 8 0 1,989 36 dash
17 no-host bin-true 760,558 0 0 0 8 0 1,999 292 osh-cpython
25 no-host bin-true 126,170 0 0 0 16 0 1,998 98 osh-native
33 no-host bin-true 123,284 0 0 0 16 0 1,990 73 osh-native-souffle
2 no-host configure.cpython 2,230,115 0 0 0 32,928 0 14,548 1,112 bash
10 no-host configure.cpython 2,243,597 0 0 0 32,992 0 14,603 1,008 dash
18 no-host configure.cpython 6,219,953 1 0 0 27,512 0 13,260 1,113 osh-cpython
26 no-host configure.cpython 2,224,178 0 0 0 27,520 0 13,178 925 osh-native
34 no-host configure.cpython 2,216,393 0 0 0 27,520 0 13,217 932 osh-native-souffle
4 no-host configure.ocaml 411,205 0 0 0 5,120 0 1,962 190 bash
12 no-host configure.ocaml 390,932 0 0 0 5,112 0 1,928 143 dash
20 no-host configure.ocaml 644,430 0 0 0 5,112 0 1,858 184 osh-cpython
28 no-host configure.ocaml 413,365 0 0 0 5,120 0 1,924 174 osh-native
36 no-host configure.ocaml 412,564 0 0 0 5,120 0 1,934 168 osh-native-souffle
5 no-host configure.tcc 6,572 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,892 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,989 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,886 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,093,750 1 0 0 42,400 0 18,667 1,004 bash
11 no-host configure.util-linux 2,262,871 2 0 0 42,584 0 17,632 1,339 dash
19 no-host configure.util-linux 5,356,749 6 0 0 39,112 0 16,907 1,236 osh-cpython
27 no-host configure.util-linux 1,997,637 1 0 0 39,128 0 16,998 1,024 osh-native
35 no-host configure.util-linux 1,986,925 0 0 0 39,136 0 16,969 894 osh-native-souffle
6 no-host configure.yash 256,474 0 0 0 4,120 0 866 84 bash
14 no-host configure.yash 245,186 0 0 0 3,720 0 869 94 dash
22 no-host configure.yash 387,047 0 0 0 3,728 0 855 89 osh-cpython
30 no-host configure.yash 258,231 0 0 0 3,736 0 850 76 osh-native
38 no-host configure.yash 257,475 0 0 0 3,736 0 850 69 osh-native-souffle
0 no-host hello-world 150 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,952 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 0 1 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-b8673338
dash dash-0ebcf347
osh-cpython osh-1ca2254a
osh-native osh-21b5fbf9
osh-native-souffle osh-66b49400
host label host id
no-host no-host-556df3ee