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 456 22 21 24.16 1.18
bin-true no-host 676 541 2,257 814 812 3.34 1.20
configure.cpython no-host 14,949 15,007 28,748 15,254 15,311 1.92 1.02
configure.ocaml no-host 3,797 3,732 4,623 3,824 3,810 1.22 1.01
configure.tcc no-host 47 41 197 49 48 4.15 1.03
configure.util-linux no-host 13,994 14,849 31,227 14,400 14,318 2.23 1.03
configure.yash no-host 1,814 1,757 2,457 1,829 1,823 1.36 1.01
hello-world no-host 1 1 50 3 3 33.69 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,533 1,136 23,388 3,171 3,057 9.23 1.25
bin-true no-host 105,359 65,436 772,059 125,811 125,867 7.33 1.19
configure.cpython no-host 2,224,066 2,245,259 6,227,556 2,223,172 2,215,826 2.80 1.00
configure.ocaml no-host 410,650 391,377 645,481 412,725 412,603 1.57 1.01
configure.tcc no-host 6,553 5,474 23,753 6,977 6,906 3.62 1.06
configure.util-linux no-host 2,103,214 2,258,781 5,375,376 2,007,963 1,992,598 2.56 0.95
configure.yash no-host 256,605 244,495 386,612 258,087 257,796 1.51 1.01
hello-world no-host 150 80 3,744 352 345 24.96 2.35

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 21.9 9.0 8.7 5.06 2.09
bin-true no-host 3.0 1.4 17.8 8.0 7.7 5.91 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 27.5 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.4 19.1 19.3 19.3 19.4 0.99 0.99
configure.util-linux no-host 30.1 30.0 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.5 24.4 24.4 1.01 1.00
hello-world no-host 2.8 1.4 17.6 6.3 5.8 6.38 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,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.0 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,254 1 62 15.0 27.4 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,400 3 61 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,584 1,273,235 27,391 41 131,794 1
configure.ocaml no-host 3,824 1 2 2.6 20.4 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,829 1 2 2.6 24.4 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.8 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,311 1 63 14.9 27.5 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,318 3 61 21.3 30.3 2,703,495 42,748 65,835 109,678 1,320,584 1,273,233 27,391 41 131,670 1
configure.ocaml no-host 3,810 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,823 1 2 2.6 24.4 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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 18 2 4.3 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 456 429 31 21.9 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 12 9 8.7 osh-native-souffle
1 no-host bin-true 676 536 174 3.0 bash
9 no-host bin-true 541 414 136 1.4 dash
17 no-host bin-true 2,257 1,477 1,038 17.8 osh-cpython
25 no-host bin-true 814 575 254 8.0 osh-native
33 no-host bin-true 812 583 243 7.7 osh-native-souffle
2 no-host configure.cpython 14,949 8,980 6,370 27.4 bash
10 no-host configure.cpython 15,007 9,070 6,357 27.4 dash
18 no-host configure.cpython 28,748 17,537 13,079 27.4 osh-cpython
26 no-host configure.cpython 15,254 9,172 6,343 27.4 osh-native
34 no-host configure.cpython 15,311 8,966 6,529 27.5 osh-native-souffle
4 no-host configure.ocaml 3,797 1,626 1,206 20.6 bash
12 no-host configure.ocaml 3,732 1,564 1,186 20.6 dash
20 no-host configure.ocaml 4,623 2,274 1,559 20.6 osh-cpython
28 no-host configure.ocaml 3,824 1,627 1,237 20.4 osh-native
36 no-host configure.ocaml 3,810 1,599 1,247 20.6 osh-native-souffle
5 no-host configure.tcc 47 37 11 19.4 bash
13 no-host configure.tcc 41 29 12 19.1 dash
21 no-host configure.tcc 197 129 72 19.3 osh-cpython
29 no-host configure.tcc 49 29 21 19.3 osh-native
37 no-host configure.tcc 48 21 27 19.4 osh-native-souffle
3 no-host configure.util-linux 13,994 8,844 5,603 30.1 bash
11 no-host configure.util-linux 14,849 9,162 6,173 30.0 dash
19 no-host configure.util-linux 31,227 20,715 11,603 30.1 osh-cpython
27 no-host configure.util-linux 14,400 8,702 5,891 30.1 osh-native
35 no-host configure.util-linux 14,318 8,637 5,868 30.3 osh-native-souffle
6 no-host configure.yash 1,814 1,033 789 24.4 bash
14 no-host configure.yash 1,757 1,080 677 24.2 dash
22 no-host configure.yash 2,457 1,511 990 24.5 osh-cpython
30 no-host configure.yash 1,829 1,053 779 24.4 osh-native
38 no-host configure.yash 1,823 1,063 765 24.4 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 50 29 20 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,533 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,388 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,171 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,057 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,359 0 0 0 8 0 1,992 197 bash
9 no-host bin-true 65,436 0 0 0 8 0 1,987 58 dash
17 no-host bin-true 772,059 0 0 0 8 0 1,990 90 osh-cpython
25 no-host bin-true 125,811 0 0 0 16 0 1,991 74 osh-native
33 no-host bin-true 125,867 0 0 0 16 0 1,991 207 osh-native-souffle
2 no-host configure.cpython 2,224,066 0 0 0 32,928 0 14,462 982 bash
10 no-host configure.cpython 2,245,259 0 0 0 32,992 0 14,592 1,136 dash
18 no-host configure.cpython 6,227,556 0 0 0 27,512 0 13,246 1,126 osh-cpython
26 no-host configure.cpython 2,223,172 1 0 0 27,520 0 13,185 1,016 osh-native
34 no-host configure.cpython 2,215,826 0 0 0 27,520 0 13,211 998 osh-native-souffle
4 no-host configure.ocaml 410,650 0 0 0 5,120 0 1,960 215 bash
12 no-host configure.ocaml 391,377 0 0 0 5,112 0 1,880 160 dash
20 no-host configure.ocaml 645,481 0 0 0 5,112 0 1,855 187 osh-cpython
28 no-host configure.ocaml 412,725 0 0 0 5,120 0 1,927 161 osh-native
36 no-host configure.ocaml 412,603 0 0 0 5,120 0 1,929 152 osh-native-souffle
5 no-host configure.tcc 6,553 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,753 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,906 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,103,214 0 0 0 42,400 0 18,568 985 bash
11 no-host configure.util-linux 2,258,781 2 0 0 42,584 0 17,374 1,157 dash
19 no-host configure.util-linux 5,375,376 10 0 0 39,112 0 16,959 1,174 osh-cpython
27 no-host configure.util-linux 2,007,963 0 0 0 39,120 0 16,955 1,010 osh-native
35 no-host configure.util-linux 1,992,598 0 0 0 39,128 0 16,965 980 osh-native-souffle
6 no-host configure.yash 256,605 0 0 0 4,120 0 870 118 bash
14 no-host configure.yash 244,495 0 0 0 3,720 0 864 70 dash
22 no-host configure.yash 386,612 0 0 0 3,728 0 851 91 osh-cpython
30 no-host configure.yash 258,087 0 0 0 3,736 0 850 96 osh-native
38 no-host configure.yash 257,796 0 0 0 3,736 0 847 78 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,744 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-fe98aa4e
dash dash-0ebcf347
osh-cpython osh-f1f7617f
osh-native osh-815105f6
osh-native-souffle osh-f0e98a5f
host label host id
no-host no-host-556df3ee