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 461 22 21 24.13 1.15
bin-true no-host 667 549 2,260 821 805 3.39 1.23
configure.cpython no-host 15,257 15,193 29,053 15,377 15,407 1.90 1.01
configure.ocaml no-host 3,847 3,767 4,680 3,836 3,862 1.22 1.00
configure.tcc no-host 48 41 195 49 48 4.01 1.01
configure.util-linux no-host 14,229 14,953 31,406 14,423 14,462 2.21 1.01
configure.yash no-host 1,836 1,783 2,486 1,850 1,848 1.35 1.01
hello-world no-host 2 1 50 3 3 32.93 1.94

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,527 1,129 23,367 3,128 3,136 9.25 1.24
bin-true no-host 105,363 66,406 771,097 124,849 123,834 7.32 1.18
configure.cpython no-host 2,228,604 2,238,802 6,234,869 2,231,972 2,214,978 2.80 1.00
configure.ocaml no-host 410,668 390,939 645,883 412,920 412,310 1.57 1.01
configure.tcc no-host 6,534 5,490 23,773 6,966 6,903 3.64 1.07
configure.util-linux no-host 2,104,174 2,262,060 5,366,637 2,001,032 1,990,842 2.55 0.95
configure.yash no-host 256,105 244,658 386,797 258,419 258,169 1.51 1.01
hello-world no-host 149 79 3,737 350 343 25.08 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.4 22.0 9.0 8.7 5.09 2.09
bin-true no-host 2.8 1.4 17.7 8.1 7.6 6.43 2.95
configure.cpython no-host 27.1 27.1 27.4 27.4 27.5 1.01 1.01
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.4 19.1 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.3 30.3 30.0 30.0 1.00 1.00
configure.yash no-host 24.5 24.4 24.4 24.4 24.4 0.99 0.99
hello-world no-host 2.8 1.4 17.7 6.3 5.8 6.43 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 821 1 2 2.6 8.1 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,377 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,423 3 61 21.3 30.0 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,836 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.1 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,850 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 805 1 2 2.6 7.6 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,407 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,462 3 63 21.3 30.0 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,862 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.3 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,848 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 10 6 4 3.4 dash
23 no-host abuild-print-help 461 429 35 22.0 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 14 7 8.7 osh-native-souffle
1 no-host bin-true 667 498 201 2.8 bash
9 no-host bin-true 549 413 142 1.4 dash
17 no-host bin-true 2,260 1,498 1,026 17.7 osh-cpython
25 no-host bin-true 821 579 258 8.1 osh-native
33 no-host bin-true 805 554 267 7.6 osh-native-souffle
2 no-host configure.cpython 15,257 9,263 6,387 27.1 bash
10 no-host configure.cpython 15,193 9,252 6,351 27.1 dash
18 no-host configure.cpython 29,053 17,550 13,403 27.4 osh-cpython
26 no-host configure.cpython 15,377 9,124 6,520 27.4 osh-native
34 no-host configure.cpython 15,407 9,029 6,558 27.5 osh-native-souffle
4 no-host configure.ocaml 3,847 1,678 1,204 20.6 bash
12 no-host configure.ocaml 3,767 1,637 1,149 20.6 dash
20 no-host configure.ocaml 4,680 2,251 1,641 20.6 osh-cpython
28 no-host configure.ocaml 3,836 1,595 1,278 20.4 osh-native
36 no-host configure.ocaml 3,862 1,662 1,235 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 22 19.4 bash
13 no-host configure.tcc 41 28 13 19.1 dash
21 no-host configure.tcc 195 127 71 19.4 osh-cpython
29 no-host configure.tcc 49 33 17 19.1 osh-native
37 no-host configure.tcc 48 29 20 19.3 osh-native-souffle
3 no-host configure.util-linux 14,229 8,877 5,832 30.1 bash
11 no-host configure.util-linux 14,953 9,232 6,203 30.3 dash
19 no-host configure.util-linux 31,406 21,103 11,401 30.3 osh-cpython
27 no-host configure.util-linux 14,423 8,469 6,148 30.0 osh-native
35 no-host configure.util-linux 14,462 8,688 5,957 30.0 osh-native-souffle
6 no-host configure.yash 1,836 1,067 775 24.5 bash
14 no-host configure.yash 1,783 1,040 746 24.4 dash
22 no-host configure.yash 2,486 1,576 953 24.4 osh-cpython
30 no-host configure.yash 1,850 1,067 784 24.4 osh-native
38 no-host configure.yash 1,848 1,029 823 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 29 20 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,527 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,129 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,367 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,128 0 0 0 16 0 38 3 osh-native
39 no-host abuild-print-help 3,136 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,363 0 0 0 8 0 1,994 53 bash
9 no-host bin-true 66,406 0 0 0 8 0 1,992 63 dash
17 no-host bin-true 771,097 0 0 0 8 0 1,990 93 osh-cpython
25 no-host bin-true 124,849 0 0 0 16 0 1,991 122 osh-native
33 no-host bin-true 123,834 0 0 0 16 0 1,991 127 osh-native-souffle
2 no-host configure.cpython 2,228,604 0 0 0 32,928 0 14,485 1,166 bash
10 no-host configure.cpython 2,238,802 1 0 0 32,992 0 14,547 1,059 dash
18 no-host configure.cpython 6,234,869 0 0 0 27,512 0 13,216 1,207 osh-cpython
26 no-host configure.cpython 2,231,972 1 0 0 27,520 0 13,283 1,086 osh-native
34 no-host configure.cpython 2,214,978 0 0 0 27,520 0 13,185 1,039 osh-native-souffle
4 no-host configure.ocaml 410,668 0 0 0 5,120 0 1,943 180 bash
12 no-host configure.ocaml 390,939 0 0 0 5,112 0 1,879 163 dash
20 no-host configure.ocaml 645,883 0 0 0 5,112 0 1,857 185 osh-cpython
28 no-host configure.ocaml 412,920 0 0 0 5,120 0 1,929 170 osh-native
36 no-host configure.ocaml 412,310 0 0 0 5,120 0 1,937 162 osh-native-souffle
5 no-host configure.tcc 6,534 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,773 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,966 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,903 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,104,174 0 0 0 42,400 0 18,577 1,171 bash
11 no-host configure.util-linux 2,262,060 0 0 0 42,584 0 17,466 1,106 dash
19 no-host configure.util-linux 5,366,637 5 0 0 39,120 0 16,929 1,205 osh-cpython
27 no-host configure.util-linux 2,001,032 1 0 0 39,128 0 17,059 1,036 osh-native
35 no-host configure.util-linux 1,990,842 0 0 0 39,136 0 16,938 1,168 osh-native-souffle
6 no-host configure.yash 256,105 0 0 0 4,120 0 867 91 bash
14 no-host configure.yash 244,658 0 0 0 3,720 0 868 88 dash
22 no-host configure.yash 386,797 0 0 0 3,728 0 856 92 osh-cpython
30 no-host configure.yash 258,419 0 0 0 3,736 0 845 92 osh-native
38 no-host configure.yash 258,169 0 0 0 3,736 0 849 74 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,737 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0342babf
dash dash-0ebcf347
osh-cpython osh-19a35434
osh-native osh-aed36316
osh-native-souffle osh-f7ce7f00
host label host id
no-host no-host-556df3ee