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 475 22 21 24.74 1.12
bin-true no-host 653 530 2,341 790 790 3.58 1.21
configure.cpython no-host 14,824 14,812 28,499 14,898 14,754 1.92 1.00
configure.ocaml no-host 3,774 3,697 4,655 3,792 3,745 1.23 1.00
configure.tcc no-host 47 41 205 47 46 4.39 1.00
configure.util-linux no-host 13,798 14,532 31,343 14,035 13,828 2.27 1.02
configure.yash no-host 1,817 1,748 2,431 1,802 1,782 1.34 0.99
hello-world no-host 1 1 60 3 3 45.77 2.14

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,528 1,091 23,960 3,170 3,118 9.48 1.25
bin-true no-host 105,373 66,351 782,654 125,178 126,224 7.43 1.19
configure.cpython no-host 1,993,777 2,018,244 6,049,848 2,008,378 1,987,609 3.03 1.01
configure.ocaml no-host 373,718 354,070 610,679 375,978 375,778 1.63 1.01
configure.tcc no-host 6,078 5,018 23,763 6,507 6,438 3.91 1.07
configure.util-linux no-host 1,903,948 2,071,075 5,236,932 1,803,174 1,797,839 2.75 0.95
configure.yash no-host 232,142 222,300 366,505 235,779 234,742 1.58 1.02
hello-world no-host 150 77 3,966 346 336 26.44 2.31

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.22 2.09
bin-true no-host 2.9 1.4 18.4 8.0 7.7 6.38 2.77
configure.cpython no-host 29.2 29.3 29.2 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.5 19.6 19.7 19.8 0.99 1.00
configure.util-linux no-host 30.3 30.5 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 26.2 26.3 26.4 26.5 26.4 1.01 1.01
hello-world no-host 2.9 1.4 18.3 6.2 5.9 6.34 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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 790 1 2 2.6 8.0 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,898 1 66 14.9 29.2 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 14,035 3 65 21.2 30.3 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,792 1 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,802 1 2 2.5 26.5 139,269 8,031 6,693 5,990 67,845 65,434 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,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 790 1 2 2.6 7.7 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,754 1 68 14.9 29.1 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,828 3 64 21.2 30.1 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,745 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 46 0 0 1.3 19.8 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,782 1 2 2.5 26.4 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,298 64,348 42,558 4,534 54,439 57,325 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 9 10 4.3 bash
15 no-host abuild-print-help 9 6 3 3.5 dash
23 no-host abuild-print-help 475 428 51 22.6 osh-cpython
31 no-host abuild-print-help 22 11 11 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 653 293 396 2.9 bash
9 no-host bin-true 530 277 265 1.4 dash
17 no-host bin-true 2,341 796 1,806 18.4 osh-cpython
25 no-host bin-true 790 307 500 8.0 osh-native
33 no-host bin-true 790 289 517 7.7 osh-native-souffle
2 no-host configure.cpython 14,824 6,720 8,522 29.2 bash
10 no-host configure.cpython 14,812 6,775 8,475 29.3 dash
18 no-host configure.cpython 28,499 14,102 16,287 29.2 osh-cpython
26 no-host configure.cpython 14,898 6,579 8,607 29.2 osh-native
34 no-host configure.cpython 14,754 6,502 8,528 29.1 osh-native-souffle
4 no-host configure.ocaml 3,774 1,320 1,497 22.6 bash
12 no-host configure.ocaml 3,697 1,287 1,433 22.6 dash
20 no-host configure.ocaml 4,655 1,860 2,010 22.6 osh-cpython
28 no-host configure.ocaml 3,792 1,312 1,521 22.6 osh-native
36 no-host configure.ocaml 3,745 1,287 1,496 22.6 osh-native-souffle
5 no-host configure.tcc 47 14 34 19.7 bash
13 no-host configure.tcc 41 20 21 19.5 dash
21 no-host configure.tcc 205 139 69 19.6 osh-cpython
29 no-host configure.tcc 47 22 26 19.7 osh-native
37 no-host configure.tcc 46 18 28 19.8 osh-native-souffle
3 no-host configure.util-linux 13,798 5,932 8,366 30.3 bash
11 no-host configure.util-linux 14,532 5,837 9,231 30.5 dash
19 no-host configure.util-linux 31,343 17,792 14,614 30.3 osh-cpython
27 no-host configure.util-linux 14,035 5,513 8,750 30.3 osh-native
35 no-host configure.util-linux 13,828 5,496 8,555 30.1 osh-native-souffle
6 no-host configure.yash 1,817 945 882 26.2 bash
14 no-host configure.yash 1,748 937 816 26.3 dash
22 no-host configure.yash 2,431 1,336 1,138 26.4 osh-cpython
30 no-host configure.yash 1,802 910 897 26.5 osh-native
38 no-host configure.yash 1,782 875 912 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 60 37 23 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 2 1 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,528 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,960 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,118 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,373 0 0 0 8 0 1,994 118 bash
9 no-host bin-true 66,351 0 0 0 8 0 1,973 119 dash
17 no-host bin-true 782,654 0 0 0 8 0 1,991 389 osh-cpython
25 no-host bin-true 125,178 0 0 0 16 0 1,972 95 osh-native
33 no-host bin-true 126,224 0 0 0 16 0 1,980 107 osh-native-souffle
2 no-host configure.cpython 1,993,777 1 0 0 32,928 0 14,216 1,228 bash
10 no-host configure.cpython 2,018,244 0 0 0 32,992 0 14,319 1,240 dash
18 no-host configure.cpython 6,049,848 1 0 0 27,512 0 13,114 1,133 osh-cpython
26 no-host configure.cpython 2,008,378 0 0 0 27,520 0 13,063 1,098 osh-native
34 no-host configure.cpython 1,987,609 0 0 0 27,520 0 13,087 1,132 osh-native-souffle
4 no-host configure.ocaml 373,718 0 0 0 5,120 0 1,946 171 bash
12 no-host configure.ocaml 354,070 0 0 0 5,112 0 1,939 175 dash
20 no-host configure.ocaml 610,679 1 0 0 5,112 0 1,846 176 osh-cpython
28 no-host configure.ocaml 375,978 0 0 0 5,120 0 1,929 206 osh-native
36 no-host configure.ocaml 375,778 0 0 0 5,120 0 1,920 186 osh-native-souffle
5 no-host configure.tcc 6,078 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,018 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,763 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,507 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,438 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,903,948 1 0 0 42,400 0 18,405 1,219 bash
11 no-host configure.util-linux 2,071,075 0 0 0 42,584 0 17,306 1,326 dash
19 no-host configure.util-linux 5,236,932 8 0 0 39,136 0 17,009 1,490 osh-cpython
27 no-host configure.util-linux 1,803,174 3 0 0 39,120 0 16,971 1,193 osh-native
35 no-host configure.util-linux 1,797,839 0 0 0 39,136 0 17,006 1,181 osh-native-souffle
6 no-host configure.yash 232,142 0 0 0 4,120 0 868 85 bash
14 no-host configure.yash 222,300 0 0 0 3,720 0 869 94 dash
22 no-host configure.yash 366,505 0 0 0 3,728 0 855 100 osh-cpython
30 no-host configure.yash 235,779 0 0 0 3,736 0 850 99 osh-native
38 no-host configure.yash 234,742 0 0 0 3,736 0 849 112 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,966 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3f0ab3b3
dash dash-0ebcf347
osh-cpython osh-c41ee4a6
osh-native osh-46aa57f3
osh-native-souffle osh-65f81adc
host label host id
no-host no-host-e4839999