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 22 21 25.04 1.20
bin-true no-host 664 527 2,369 795 815 3.57 1.20
configure.cpython no-host 15,035 14,798 28,772 15,108 15,152 1.91 1.00
configure.ocaml no-host 3,743 3,726 4,637 3,899 3,779 1.24 1.04
configure.tcc no-host 47 40 204 50 48 4.38 1.06
configure.util-linux no-host 13,797 14,557 31,332 14,575 13,984 2.27 1.06
configure.yash no-host 1,810 1,752 2,464 1,887 1,798 1.36 1.04
hello-world no-host 1 1 55 3 3 40.07 2.03

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,502 1,105 23,565 3,168 3,112 9.42 1.27
bin-true no-host 106,343 65,402 763,620 126,192 126,258 7.18 1.19
configure.cpython no-host 1,997,362 2,021,316 6,000,032 1,995,205 1,987,284 3.00 1.00
configure.ocaml no-host 373,801 353,741 607,321 376,419 375,426 1.62 1.01
configure.tcc no-host 6,088 5,015 23,431 6,506 6,462 3.85 1.07
configure.util-linux no-host 1,900,274 2,064,558 5,168,369 1,806,687 1,796,928 2.72 0.95
configure.yash no-host 233,670 221,165 365,316 235,070 235,041 1.56 1.01
hello-world no-host 146 76 3,963 344 332 27.14 2.36

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.7 9.0 8.4 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.38 2.77
configure.cpython no-host 29.2 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.5 19.8 19.8 19.5 19.7 1.02 1.00
configure.util-linux no-host 30.2 30.4 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.5 26.3 26.4 26.2 26.3 0.99 0.99
hello-world no-host 2.8 1.4 18.3 6.3 5.8 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 795 1 2 2.6 8.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,108 1 69 14.9 29.2 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,575 3 68 21.2 30.2 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,899 1 2 2.6 22.6 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.5 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,887 1 2 2.5 26.2 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.8 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 815 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,152 1 68 14.9 29.2 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 13,984 3 64 21.2 30.3 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,779 1 2 2.6 22.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,798 1 2 2.5 26.3 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.4 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 11 8 4.3 bash
15 no-host abuild-print-help 9 3 7 3.5 dash
23 no-host abuild-print-help 469 404 68 22.7 osh-cpython
31 no-host abuild-print-help 22 10 13 9.0 osh-native
39 no-host abuild-print-help 21 9 12 8.4 osh-native-souffle
1 no-host bin-true 664 299 398 2.9 bash
9 no-host bin-true 527 278 261 1.4 dash
17 no-host bin-true 2,369 819 1,825 18.4 osh-cpython
25 no-host bin-true 795 312 495 8.0 osh-native
33 no-host bin-true 815 300 530 7.6 osh-native-souffle
2 no-host configure.cpython 15,035 6,717 8,755 29.2 bash
10 no-host configure.cpython 14,798 6,592 8,656 29.2 dash
18 no-host configure.cpython 28,772 14,304 16,401 29.2 osh-cpython
26 no-host configure.cpython 15,108 6,657 8,749 29.2 osh-native
34 no-host configure.cpython 15,152 6,664 8,772 29.2 osh-native-souffle
4 no-host configure.ocaml 3,743 1,327 1,458 22.5 bash
12 no-host configure.ocaml 3,726 1,301 1,446 22.6 dash
20 no-host configure.ocaml 4,637 1,902 1,952 22.6 osh-cpython
28 no-host configure.ocaml 3,899 1,360 1,579 22.6 osh-native
36 no-host configure.ocaml 3,779 1,313 1,506 22.6 osh-native-souffle
5 no-host configure.tcc 47 21 26 19.5 bash
13 no-host configure.tcc 40 20 21 19.8 dash
21 no-host configure.tcc 204 138 70 19.8 osh-cpython
29 no-host configure.tcc 50 25 25 19.5 osh-native
37 no-host configure.tcc 48 17 32 19.7 osh-native-souffle
3 no-host configure.util-linux 13,797 5,893 8,408 30.2 bash
11 no-host configure.util-linux 14,557 5,916 9,174 30.4 dash
19 no-host configure.util-linux 31,332 17,879 14,580 30.2 osh-cpython
27 no-host configure.util-linux 14,575 5,789 9,004 30.2 osh-native
35 no-host configure.util-linux 13,984 5,548 8,661 30.3 osh-native-souffle
6 no-host configure.yash 1,810 929 889 26.5 bash
14 no-host configure.yash 1,752 899 859 26.3 dash
22 no-host configure.yash 2,464 1,353 1,156 26.4 osh-cpython
30 no-host configure.yash 1,887 947 946 26.2 osh-native
38 no-host configure.yash 1,798 891 913 26.3 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 55 38 18 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 2 1 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,502 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 5 dash
23 no-host abuild-print-help 23,565 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,168 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,112 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,343 0 0 0 8 0 1,987 190 bash
9 no-host bin-true 65,402 0 0 0 8 0 1,974 86 dash
17 no-host bin-true 763,620 0 0 0 8 0 1,982 266 osh-cpython
25 no-host bin-true 126,192 0 0 0 16 0 1,985 140 osh-native
33 no-host bin-true 126,258 0 0 0 16 0 1,987 216 osh-native-souffle
2 no-host configure.cpython 1,997,362 0 0 0 32,928 0 14,234 1,120 bash
10 no-host configure.cpython 2,021,316 0 0 0 32,992 0 14,339 1,144 dash
18 no-host configure.cpython 6,000,032 0 0 0 27,512 0 13,050 1,105 osh-cpython
26 no-host configure.cpython 1,995,205 0 0 0 27,520 0 13,062 1,044 osh-native
34 no-host configure.cpython 1,987,284 0 0 0 27,520 0 12,991 1,133 osh-native-souffle
4 no-host configure.ocaml 373,801 0 0 0 5,120 0 1,946 180 bash
12 no-host configure.ocaml 353,741 0 0 0 5,112 0 1,926 167 dash
20 no-host configure.ocaml 607,321 1 0 0 5,112 0 1,860 152 osh-cpython
28 no-host configure.ocaml 376,419 0 0 0 5,120 0 1,921 186 osh-native
36 no-host configure.ocaml 375,426 0 0 0 5,120 0 1,915 223 osh-native-souffle
5 no-host configure.tcc 6,088 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,015 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,431 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,506 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,462 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,900,274 0 0 0 42,400 0 18,402 1,150 bash
11 no-host configure.util-linux 2,064,558 0 0 0 42,592 0 17,357 1,418 dash
19 no-host configure.util-linux 5,168,369 12 0 0 39,112 0 17,124 1,347 osh-cpython
27 no-host configure.util-linux 1,806,687 2 0 0 39,120 0 17,003 1,132 osh-native
35 no-host configure.util-linux 1,796,928 0 0 0 39,128 0 16,897 1,144 osh-native-souffle
6 no-host configure.yash 233,670 0 0 0 4,120 0 874 86 bash
14 no-host configure.yash 221,165 0 0 0 3,720 0 870 88 dash
22 no-host configure.yash 365,316 0 0 0 3,728 0 854 97 osh-cpython
30 no-host configure.yash 235,070 0 0 0 3,736 0 852 86 osh-native
38 no-host configure.yash 235,041 0 0 0 3,736 0 851 91 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,963 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 332 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d58ab17f
dash dash-0ebcf347
osh-cpython osh-bfad3c22
osh-native osh-026793b1
osh-native-souffle osh-87eb38f5
host label host id
no-host no-host-e4839999