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 470 22 21 24.45 1.17
bin-true no-host 693 549 2,320 818 832 3.35 1.18
configure.cpython no-host 16,204 15,499 30,433 15,568 15,797 1.88 0.96
configure.ocaml no-host 3,857 3,801 4,762 4,057 3,873 1.23 1.05
configure.tcc no-host 48 42 209 51 48 4.31 1.05
configure.util-linux no-host 14,244 15,175 33,303 15,230 14,554 2.34 1.07
configure.yash no-host 1,845 1,815 2,531 1,910 1,846 1.37 1.04
hello-world no-host 2 1 58 3 3 38.29 1.89

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,516 1,090 23,697 3,191 3,124 9.42 1.27
bin-true no-host 105,403 65,364 764,595 125,246 126,270 7.25 1.19
configure.cpython no-host 2,215,085 2,239,186 6,234,693 2,216,175 2,210,462 2.81 1.00
configure.ocaml no-host 410,379 391,321 647,255 413,147 412,809 1.58 1.01
configure.tcc no-host 6,557 5,488 24,125 6,940 6,884 3.68 1.06
configure.util-linux no-host 2,095,204 2,260,549 5,400,004 1,996,410 1,991,063 2.58 0.95
configure.yash no-host 256,133 244,643 389,561 258,561 257,074 1.52 1.01
hello-world no-host 154 83 3,945 345 339 25.62 2.24

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.6 9.0 8.5 5.22 2.09
bin-true no-host 3.0 1.4 18.4 8.1 7.6 6.09 2.70
configure.cpython no-host 27.3 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.7 20.6 1.00 1.01
configure.tcc no-host 19.3 19.3 19.4 19.3 19.4 1.01 1.00
configure.util-linux no-host 30.0 30.3 30.1 30.3 30.3 1.00 1.01
configure.yash no-host 24.4 24.2 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 2.18

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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.1 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,568 2 64 14.9 27.4 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 15,230 3 62 21.2 30.3 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 4,057 1 2 2.6 20.7 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,910 1 2 2.5 24.4 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.9 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 832 1 2 2.6 7.6 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,797 2 62 14.9 27.4 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,554 3 61 21.2 30.3 2,702,514 53,694 65,650 108,693 1,290,641 1,303,180 32,239 41 131,300 1
configure.ocaml no-host 3,873 1 2 2.6 20.6 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,846 1 2 2.5 24.2 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 17 3 4.3 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 470 428 45 22.6 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 14 8 8.5 osh-native-souffle
1 no-host bin-true 693 504 213 3.0 bash
9 no-host bin-true 549 429 127 1.4 dash
17 no-host bin-true 2,320 1,460 1,117 18.4 osh-cpython
25 no-host bin-true 818 563 268 8.1 osh-native
33 no-host bin-true 832 587 258 7.6 osh-native-souffle
2 no-host configure.cpython 16,204 9,419 7,114 27.3 bash
10 no-host configure.cpython 15,499 9,250 6,668 27.5 dash
18 no-host configure.cpython 30,433 18,282 13,998 27.4 osh-cpython
26 no-host configure.cpython 15,568 9,224 6,622 27.4 osh-native
34 no-host configure.cpython 15,797 9,169 6,689 27.4 osh-native-souffle
4 no-host configure.ocaml 3,857 1,695 1,202 20.6 bash
12 no-host configure.ocaml 3,801 1,612 1,203 20.6 dash
20 no-host configure.ocaml 4,762 2,286 1,690 20.6 osh-cpython
28 no-host configure.ocaml 4,057 1,763 1,329 20.7 osh-native
36 no-host configure.ocaml 3,873 1,606 1,304 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 22 19.3 bash
13 no-host configure.tcc 42 26 17 19.3 dash
21 no-host configure.tcc 209 153 59 19.4 osh-cpython
29 no-host configure.tcc 51 29 22 19.3 osh-native
37 no-host configure.tcc 48 25 24 19.4 osh-native-souffle
3 no-host configure.util-linux 14,244 8,981 5,727 30.0 bash
11 no-host configure.util-linux 15,175 9,328 6,316 30.3 dash
19 no-host configure.util-linux 33,303 21,926 12,443 30.1 osh-cpython
27 no-host configure.util-linux 15,230 8,939 6,406 30.3 osh-native
35 no-host configure.util-linux 14,554 8,700 6,049 30.3 osh-native-souffle
6 no-host configure.yash 1,845 1,022 830 24.4 bash
14 no-host configure.yash 1,815 1,030 782 24.2 dash
22 no-host configure.yash 2,531 1,594 978 24.4 osh-cpython
30 no-host configure.yash 1,910 1,111 799 24.4 osh-native
38 no-host configure.yash 1,846 1,071 778 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 58 45 12 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,516 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 38 2 dash
23 no-host abuild-print-help 23,697 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,124 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,403 0 0 0 8 0 1,994 256 bash
9 no-host bin-true 65,364 0 0 0 8 0 1,982 34 dash
17 no-host bin-true 764,595 0 0 0 8 0 1,994 148 osh-cpython
25 no-host bin-true 125,246 0 0 0 16 0 1,994 62 osh-native
33 no-host bin-true 126,270 0 0 0 16 0 1,990 51 osh-native-souffle
2 no-host configure.cpython 2,215,085 0 0 0 32,952 0 14,509 1,019 bash
10 no-host configure.cpython 2,239,186 0 0 0 32,992 0 14,696 1,094 dash
18 no-host configure.cpython 6,234,693 0 0 0 27,512 0 13,280 1,210 osh-cpython
26 no-host configure.cpython 2,216,175 0 0 0 27,520 0 13,267 931 osh-native
34 no-host configure.cpython 2,210,462 1 0 0 27,520 0 13,278 967 osh-native-souffle
4 no-host configure.ocaml 410,379 0 0 0 5,120 0 1,945 156 bash
12 no-host configure.ocaml 391,321 0 0 0 5,112 0 1,904 147 dash
20 no-host configure.ocaml 647,255 0 0 0 5,112 0 1,855 171 osh-cpython
28 no-host configure.ocaml 413,147 0 0 0 5,120 0 1,932 157 osh-native
36 no-host configure.ocaml 412,809 0 0 0 5,120 0 1,931 153 osh-native-souffle
5 no-host configure.tcc 6,557 0 0 0 104 0 49 14 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,125 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 6,940 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,884 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,095,204 1 0 0 42,400 0 18,540 1,023 bash
11 no-host configure.util-linux 2,260,549 0 0 0 42,584 0 17,538 980 dash
19 no-host configure.util-linux 5,400,004 14 0 0 39,112 0 16,991 1,246 osh-cpython
27 no-host configure.util-linux 1,996,410 2 0 0 39,128 0 16,960 1,038 osh-native
35 no-host configure.util-linux 1,991,063 0 0 0 39,136 0 16,972 899 osh-native-souffle
6 no-host configure.yash 256,133 0 0 0 4,120 0 867 77 bash
14 no-host configure.yash 244,643 0 0 0 3,720 0 869 75 dash
22 no-host configure.yash 389,561 0 0 0 3,728 0 853 109 osh-cpython
30 no-host configure.yash 258,561 0 0 0 3,736 0 846 80 osh-native
38 no-host configure.yash 257,074 0 0 0 3,736 0 845 135 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-29699769
dash dash-0ebcf347
osh-cpython osh-868ae945
osh-native osh-ee2d8941
osh-native-souffle osh-32a04533
host label host id
no-host no-host-556df3ee