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 460 22 20 24.28 1.17
bin-true no-host 652 520 2,273 801 794 3.49 1.23
configure.cpython no-host 14,609 14,738 28,328 14,929 15,029 1.94 1.02
configure.ocaml no-host 3,714 3,666 4,566 3,806 3,768 1.23 1.02
configure.tcc no-host 55 40 192 48 47 3.53 0.88
configure.util-linux no-host 13,582 14,399 31,062 14,048 14,002 2.29 1.03
configure.yash no-host 1,798 1,741 2,418 1,799 1,785 1.35 1.00
hello-world no-host 1 1 49 3 3 38.65 2.19

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,525 1,112 23,150 3,235 3,103 9.17 1.28
bin-true no-host 103,457 65,431 760,123 127,088 126,170 7.35 1.23
configure.cpython no-host 1,990,728 2,023,807 5,971,946 2,020,330 2,005,184 3.00 1.01
configure.ocaml no-host 373,330 353,897 606,860 377,177 375,744 1.63 1.01
configure.tcc no-host 6,071 5,011 22,978 6,507 6,443 3.78 1.07
configure.util-linux no-host 1,900,356 2,064,942 5,122,660 1,803,394 1,805,915 2.70 0.95
configure.yash no-host 233,377 221,638 361,971 235,401 234,685 1.55 1.01
hello-world no-host 145 78 3,716 348 342 25.63 2.40

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.0 9.2 8.7 5.09 2.12
bin-true no-host 3.0 1.6 17.7 8.0 7.9 5.87 2.65
configure.cpython no-host 28.9 29.1 29.3 29.2 29.3 1.01 1.01
configure.ocaml no-host 22.3 22.6 22.6 22.6 22.5 1.01 1.01
configure.tcc no-host 19.8 19.7 19.7 19.5 19.8 0.99 0.99
configure.util-linux no-host 30.3 30.2 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.5 26.3 26.2 26.4 1.00 1.00
hello-world no-host 2.8 1.6 17.4 6.2 5.8 6.33 2.24

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,710 3,710 0 691 1,832 1,187 2 0 50,000 0
bin-true no-host 801 1 2 2.6 8.0 154,675 12,909 2,811 9,741 78,301 66,633 3,008 3 50,000 0
configure.cpython no-host 14,929 1 65 14.9 29.2 1,772,657 49,101 28,521 86,394 908,053 778,210 22,694 60 50,000 0
configure.util-linux no-host 14,048 3 64 21.3 30.3 2,703,393 42,738 65,825 109,656 1,320,551 1,273,186 27,391 41 131,650 1
configure.ocaml no-host 3,806 1 2 2.6 22.6 150,027 10,986 5,156 7,526 71,589 70,912 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.5 30,516 30,516 0 1,517 14,756 14,243 226 0 50,000 0
configure.yash no-host 1,799 1 2 2.6 26.2 139,684 7,954 6,613 6,333 70,261 63,090 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,259 64,464 42,674 4,568 54,501 57,190 270 3 85,348 1
hello-world no-host 3 0 0 0.2 5.8 3,709 3,709 0 692 1,832 1,185 2 0 50,000 0
bin-true no-host 794 1 2 2.6 7.9 154,674 12,774 2,749 9,742 78,301 66,631 3,008 3 50,000 0
configure.cpython no-host 15,029 1 66 15.0 29.3 1,772,656 44,553 28,459 86,395 908,053 778,208 22,694 60 50,000 0
configure.util-linux no-host 14,002 3 63 21.3 30.3 2,703,393 44,639 65,762 109,658 1,320,551 1,273,184 27,391 41 131,524 1
configure.ocaml no-host 3,768 1 2 2.6 22.5 150,027 10,923 5,093 7,528 71,589 70,910 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.8 30,516 30,516 0 1,519 14,756 14,241 226 0 50,000 0
configure.yash no-host 1,785 1 2 2.6 26.4 139,684 7,892 6,551 6,335 70,261 63,088 1,803 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,258 64,402 42,612 4,569 54,501 57,188 270 3 85,224 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 11 4.3 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 460 405 58 22.0 osh-cpython
31 no-host abuild-print-help 22 13 9 9.2 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 652 310 375 3.0 bash
9 no-host bin-true 520 270 260 1.6 dash
17 no-host bin-true 2,273 814 1,728 17.7 osh-cpython
25 no-host bin-true 801 293 523 8.0 osh-native
33 no-host bin-true 794 301 509 7.9 osh-native-souffle
2 no-host configure.cpython 14,609 6,649 8,382 28.9 bash
10 no-host configure.cpython 14,738 6,590 8,593 29.1 dash
18 no-host configure.cpython 28,328 14,216 16,004 29.3 osh-cpython
26 no-host configure.cpython 14,929 6,662 8,555 29.2 osh-native
34 no-host configure.cpython 15,029 6,590 8,572 29.3 osh-native-souffle
4 no-host configure.ocaml 3,714 1,339 1,418 22.3 bash
12 no-host configure.ocaml 3,666 1,278 1,409 22.6 dash
20 no-host configure.ocaml 4,566 1,845 1,932 22.6 osh-cpython
28 no-host configure.ocaml 3,806 1,329 1,519 22.6 osh-native
36 no-host configure.ocaml 3,768 1,294 1,513 22.5 osh-native-souffle
5 no-host configure.tcc 55 29 27 19.8 bash
13 no-host configure.tcc 40 24 17 19.7 dash
21 no-host configure.tcc 192 130 66 19.7 osh-cpython
29 no-host configure.tcc 48 22 26 19.5 osh-native
37 no-host configure.tcc 47 22 25 19.8 osh-native-souffle
3 no-host configure.util-linux 13,582 5,815 8,264 30.3 bash
11 no-host configure.util-linux 14,399 5,831 9,092 30.2 dash
19 no-host configure.util-linux 31,062 17,869 14,314 30.3 osh-cpython
27 no-host configure.util-linux 14,048 5,680 8,592 30.3 osh-native
35 no-host configure.util-linux 14,002 5,580 8,646 30.3 osh-native-souffle
6 no-host configure.yash 1,798 907 900 26.3 bash
14 no-host configure.yash 1,741 880 865 26.5 dash
22 no-host configure.yash 2,418 1,351 1,111 26.3 osh-cpython
30 no-host configure.yash 1,799 884 920 26.2 osh-native
38 no-host configure.yash 1,785 875 915 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 35 14 17.4 osh-cpython
24 no-host hello-world 3 1 2 6.2 osh-native
32 no-host hello-world 3 1 2 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,525 0 0 0 16 0 40 0 bash
15 no-host abuild-print-help 1,112 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,150 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,235 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,103 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 103,457 0 0 0 8 0 1,984 236 bash
9 no-host bin-true 65,431 0 0 0 8 0 1,976 69 dash
17 no-host bin-true 760,123 0 0 0 8 0 1,982 329 osh-cpython
25 no-host bin-true 127,088 0 0 0 16 0 1,989 404 osh-native
33 no-host bin-true 126,170 0 0 0 16 0 1,973 124 osh-native-souffle
2 no-host configure.cpython 1,990,728 0 0 0 32,928 0 14,213 1,210 bash
10 no-host configure.cpython 2,023,807 0 0 0 32,992 0 14,322 1,233 dash
18 no-host configure.cpython 5,971,946 0 0 0 27,512 0 13,069 1,198 osh-cpython
26 no-host configure.cpython 2,020,330 0 0 0 27,520 0 13,127 1,194 osh-native
34 no-host configure.cpython 2,005,184 0 0 0 27,520 0 13,038 1,129 osh-native-souffle
4 no-host configure.ocaml 373,330 0 0 0 5,120 0 1,947 206 bash
12 no-host configure.ocaml 353,897 0 0 0 5,112 0 1,933 185 dash
20 no-host configure.ocaml 606,860 0 0 0 5,112 0 1,850 176 osh-cpython
28 no-host configure.ocaml 377,177 0 0 0 5,120 0 1,919 200 osh-native
36 no-host configure.ocaml 375,744 0 0 0 5,120 0 1,923 186 osh-native-souffle
5 no-host configure.tcc 6,071 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,011 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,978 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,507 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,443 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,900,356 0 0 0 42,400 0 18,395 1,356 bash
11 no-host configure.util-linux 2,064,942 0 0 0 42,584 0 17,324 1,457 dash
19 no-host configure.util-linux 5,122,660 14 0 0 39,136 0 17,044 1,290 osh-cpython
27 no-host configure.util-linux 1,803,394 1 0 0 39,120 0 16,972 1,281 osh-native
35 no-host configure.util-linux 1,805,915 1 0 0 39,128 0 17,014 1,232 osh-native-souffle
6 no-host configure.yash 233,377 0 0 0 4,120 0 871 106 bash
14 no-host configure.yash 221,638 0 0 0 3,720 0 872 82 dash
22 no-host configure.yash 361,971 0 0 0 3,728 0 855 132 osh-cpython
30 no-host configure.yash 235,401 0 0 0 3,736 0 847 80 osh-native
38 no-host configure.yash 234,685 0 0 0 3,736 0 850 85 osh-native-souffle
0 no-host hello-world 145 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,716 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8859a6e0
dash dash-0ebcf347
osh-cpython osh-f68b1148
osh-native osh-b0920f58
osh-native-souffle osh-71700a6a
host label host id
no-host no-host-e5b8d3ee