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 16 9 538 22 21 34.25 1.39
bin-true no-host 637 458 2,472 842 816 3.88 1.32
configure.cpython no-host 13,844 13,895 29,653 14,753 14,753 2.14 1.07
configure.ocaml no-host 3,688 3,646 4,645 3,741 3,736 1.26 1.01
configure.tcc no-host 46 43 221 50 49 4.78 1.07
configure.util-linux no-host 12,652 13,420 32,171 13,716 13,803 2.54 1.08
configure.yash no-host 1,696 1,674 2,438 1,738 1,734 1.44 1.02
hello-world no-host 1 1 60 3 3 47.43 2.31

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,391 1,162 24,752 3,462 3,390 10.35 1.45
bin-true no-host 101,956 49,387 828,600 138,339 133,236 8.13 1.36
configure.cpython no-host 1,621,196 1,645,115 5,952,849 1,805,124 1,801,542 3.67 1.11
configure.ocaml no-host 298,648 280,496 555,534 316,362 315,895 1.86 1.06
configure.tcc no-host 5,198 4,219 23,728 5,932 5,847 4.56 1.14
configure.util-linux no-host 1,533,815 1,698,554 4,963,167 1,720,639 1,704,305 3.24 1.12
configure.yash no-host 173,567 159,525 315,149 179,238 178,911 1.82 1.03
hello-world no-host 154 86 3,873 383 374 25.15 2.49

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.7 3.8 22.8 9.8 9.2 4.83 2.08
bin-true no-host 3.3 1.7 18.2 8.8 8.3 5.55 2.68
configure.cpython no-host 34.7 34.4 34.7 34.7 34.6 1.00 1.00
configure.ocaml no-host 28.6 28.8 28.7 28.6 28.5 1.00 1.00
configure.tcc no-host 26.1 26.0 26.2 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.2 33.3 33.1 33.2 33.2 1.00 1.00
hello-world no-host 3.1 1.6 18.1 6.8 6.4 5.74 2.17

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.3 6.8 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 842 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,753 1 68 15.2 34.7 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,716 3 61 21.4 39.6 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,741 1 2 2.7 28.6 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.1 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.6 33.2 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 816 1 2 2.6 8.3 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,753 2 64 15.2 34.6 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,803 3 58 21.4 39.7 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,736 1 2 2.7 28.5 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,734 1 2 2.6 33.2 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,366 64,433 42,634 4,563 54,471 57,332 277 3 85,268 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 16 9 8 4.7 bash
15 no-host abuild-print-help 9 6 4 3.8 dash
23 no-host abuild-print-help 538 480 61 22.8 osh-cpython
31 no-host abuild-print-help 22 15 7 9.8 osh-native
39 no-host abuild-print-help 21 10 12 9.2 osh-native-souffle
1 no-host bin-true 637 325 351 3.3 bash
9 no-host bin-true 458 278 187 1.7 dash
17 no-host bin-true 2,472 869 1,869 18.2 osh-cpython
25 no-host bin-true 842 309 552 8.8 osh-native
33 no-host bin-true 816 310 524 8.3 osh-native-souffle
2 no-host configure.cpython 13,844 7,427 6,804 34.7 bash
10 no-host configure.cpython 13,895 7,511 6,790 34.4 dash
18 no-host configure.cpython 29,653 16,164 15,464 34.7 osh-cpython
26 no-host configure.cpython 14,753 7,330 7,736 34.7 osh-native
34 no-host configure.cpython 14,753 7,287 7,646 34.6 osh-native-souffle
4 no-host configure.ocaml 3,688 1,481 1,243 28.6 bash
12 no-host configure.ocaml 3,646 1,456 1,213 28.8 dash
20 no-host configure.ocaml 4,645 2,026 1,842 28.7 osh-cpython
28 no-host configure.ocaml 3,741 1,450 1,335 28.6 osh-native
36 no-host configure.ocaml 3,736 1,463 1,314 28.5 osh-native-souffle
5 no-host configure.tcc 46 31 16 26.1 bash
13 no-host configure.tcc 43 26 17 26.0 dash
21 no-host configure.tcc 221 155 69 26.2 osh-cpython
29 no-host configure.tcc 50 23 27 26.1 osh-native
37 no-host configure.tcc 49 24 26 26.2 osh-native-souffle
3 no-host configure.util-linux 12,652 6,435 6,695 39.7 bash
11 no-host configure.util-linux 13,420 6,324 7,600 39.7 dash
19 no-host configure.util-linux 32,171 20,022 13,222 39.7 osh-cpython
27 no-host configure.util-linux 13,716 6,274 7,685 39.6 osh-native
35 no-host configure.util-linux 13,803 6,214 7,673 39.7 osh-native-souffle
6 no-host configure.yash 1,696 939 765 33.2 bash
14 no-host configure.yash 1,674 897 780 33.3 dash
22 no-host configure.yash 2,438 1,421 1,061 33.1 osh-cpython
30 no-host configure.yash 1,738 931 810 33.2 osh-native
38 no-host configure.yash 1,734 914 822 33.2 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 60 38 22 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.8 osh-native
32 no-host hello-world 3 1 2 6.4 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,391 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,162 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,752 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,462 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,390 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 101,956 0 0 0 8 0 1,976 71 bash
9 no-host bin-true 49,387 0 0 0 8 0 2,963 74 dash
17 no-host bin-true 828,600 0 0 0 8 0 1,978 221 osh-cpython
25 no-host bin-true 138,339 0 0 0 16 0 1,963 92 osh-native
33 no-host bin-true 133,236 0 0 0 16 0 1,977 145 osh-native-souffle
2 no-host configure.cpython 1,621,196 0 0 0 25,272 0 14,025 1,174 bash
10 no-host configure.cpython 1,645,115 0 0 0 25,272 0 14,051 1,205 dash
18 no-host configure.cpython 5,952,849 0 0 0 25,272 0 12,863 1,069 osh-cpython
26 no-host configure.cpython 1,805,124 0 0 0 25,280 0 12,899 1,273 osh-native
34 no-host configure.cpython 1,801,542 0 0 0 25,280 0 12,847 1,110 osh-native-souffle
4 no-host configure.ocaml 298,648 0 0 0 4,432 0 2,019 207 bash
12 no-host configure.ocaml 280,496 0 0 0 4,432 0 2,107 186 dash
20 no-host configure.ocaml 555,534 0 0 0 4,432 0 1,912 192 osh-cpython
28 no-host configure.ocaml 316,362 0 0 0 4,440 0 1,996 223 osh-native
36 no-host configure.ocaml 315,895 0 0 0 4,440 0 2,001 198 osh-native-souffle
5 no-host configure.tcc 5,198 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 51 13 dash
21 no-host configure.tcc 23,728 0 0 0 88 0 53 10 osh-cpython
29 no-host configure.tcc 5,932 0 0 0 96 0 47 13 osh-native
37 no-host configure.tcc 5,847 0 0 0 96 0 47 12 osh-native-souffle
3 no-host configure.util-linux 1,533,815 0 0 0 35,944 0 18,914 1,105 bash
11 no-host configure.util-linux 1,698,554 0 0 0 35,936 0 17,041 1,396 dash
19 no-host configure.util-linux 4,963,167 2 0 0 35,944 0 17,528 1,050 osh-cpython
27 no-host configure.util-linux 1,720,639 0 0 0 35,944 0 17,532 1,004 osh-native
35 no-host configure.util-linux 1,704,305 1 0 0 35,952 0 17,441 1,057 osh-native-souffle
6 no-host configure.yash 173,567 0 0 0 3,616 0 875 134 bash
14 no-host configure.yash 159,525 0 0 0 3,616 0 1,001 128 dash
22 no-host configure.yash 315,149 0 0 0 3,616 0 860 139 osh-cpython
30 no-host configure.yash 179,238 0 0 0 3,624 0 860 131 osh-native
38 no-host configure.yash 178,911 0 0 0 3,624 0 855 129 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,873 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 383 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 374 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0090beeb
dash dash-cea41b3e
osh-cpython osh-1557aef8
osh-native osh-a2fba1a1
osh-native-souffle osh-b3004b28
host label host id
no-host no-host-2411472