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 529 23 21 32.07 1.37
bin-true no-host 620 438 2,485 816 834 4.01 1.32
configure.cpython no-host 14,050 14,111 29,706 14,911 14,974 2.11 1.06
configure.ocaml no-host 3,703 3,628 4,695 3,832 3,745 1.27 1.03
configure.tcc no-host 47 42 221 51 49 4.69 1.08
configure.util-linux no-host 12,686 13,435 32,514 13,840 13,938 2.56 1.09
configure.yash no-host 1,733 1,652 2,470 1,770 1,733 1.43 1.02
hello-world no-host 1 1 61 3 3 49.09 2.46

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,395 1,164 24,605 3,457 3,371 10.27 1.44
bin-true no-host 100,961 49,340 827,245 133,288 138,283 8.19 1.32
configure.cpython no-host 1,620,876 1,640,340 5,968,944 1,806,137 1,773,880 3.68 1.11
configure.ocaml no-host 298,582 281,103 555,917 316,218 316,165 1.86 1.06
configure.tcc no-host 5,209 4,214 23,782 5,938 5,898 4.57 1.14
configure.util-linux no-host 1,534,450 1,694,574 4,979,084 1,712,181 1,707,632 3.24 1.12
configure.yash no-host 173,675 159,507 315,789 179,504 179,028 1.82 1.03
hello-world no-host 151 88 3,889 388 375 25.75 2.57

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.8 3.9 22.8 9.8 9.3 4.70 2.03
bin-true no-host 3.3 1.6 18.2 8.7 8.3 5.55 2.64
configure.cpython no-host 34.5 34.5 34.7 34.8 34.3 1.00 1.01
configure.ocaml no-host 28.8 28.8 28.5 28.8 28.7 0.99 1.00
configure.tcc no-host 26.0 26.4 26.2 26.0 26.2 1.01 1.00
configure.util-linux no-host 39.6 39.9 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.5 33.1 33.4 1.00 0.99
hello-world no-host 3.1 1.6 18.1 6.9 6.3 5.74 2.21

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.9 3,826 3,826 0 703 1,880 1,243 2 0 50,000 0
bin-true no-host 816 1 2 2.6 8.7 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 14,911 1 70 15.2 34.8 1,782,989 46,101 25,356 91,621 885,111 806,257 25,789 62 50,000 0
configure.util-linux no-host 13,840 3 63 21.4 39.7 2,707,122 126,354 66,586 113,462 1,294,567 1,299,093 32,539 41 133,172 1
configure.ocaml no-host 3,832 1 2 2.7 28.8 149,873 12,476 6,519 7,818 70,839 71,216 1,693 3 50,000 0
configure.tcc no-host 51 0 0 1.3 26.0 30,628 30,628 0 1,581 14,645 14,402 271 0 50,000 0
configure.yash no-host 1,770 1 2 2.6 33.1 140,017 8,080 6,714 6,525 68,347 65,145 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.8 116,368 64,438 42,639 4,561 54,471 57,336 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.3 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 834 1 2 2.6 8.3 156,797 15,423 2,910 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,974 1 70 15.2 34.3 1,782,988 46,087 25,352 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,938 3 63 21.4 39.6 2,707,122 126,347 66,579 113,464 1,294,567 1,299,091 32,539 41 133,158 1
configure.ocaml no-host 3,745 1 2 2.7 28.7 149,873 12,470 6,513 7,820 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,628 30,628 0 1,583 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,733 1 2 2.6 33.4 140,017 8,069 6,703 6,527 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,367 64,433 42,634 4,562 54,471 57,334 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.8 bash
15 no-host abuild-print-help 9 7 2 3.9 dash
23 no-host abuild-print-help 529 466 66 22.8 osh-cpython
31 no-host abuild-print-help 23 13 10 9.8 osh-native
39 no-host abuild-print-help 21 12 10 9.3 osh-native-souffle
1 no-host bin-true 620 326 333 3.3 bash
9 no-host bin-true 438 278 165 1.6 dash
17 no-host bin-true 2,485 905 1,848 18.2 osh-cpython
25 no-host bin-true 816 312 520 8.7 osh-native
33 no-host bin-true 834 298 551 8.3 osh-native-souffle
2 no-host configure.cpython 14,050 7,664 6,771 34.5 bash
10 no-host configure.cpython 14,111 7,646 6,868 34.5 dash
18 no-host configure.cpython 29,706 16,457 15,235 34.7 osh-cpython
26 no-host configure.cpython 14,911 7,465 7,761 34.8 osh-native
34 no-host configure.cpython 14,974 7,533 7,576 34.3 osh-native-souffle
4 no-host configure.ocaml 3,703 1,508 1,234 28.8 bash
12 no-host configure.ocaml 3,628 1,513 1,137 28.8 dash
20 no-host configure.ocaml 4,695 2,109 1,814 28.5 osh-cpython
28 no-host configure.ocaml 3,832 1,561 1,316 28.8 osh-native
36 no-host configure.ocaml 3,745 1,491 1,293 28.7 osh-native-souffle
5 no-host configure.tcc 47 27 21 26.0 bash
13 no-host configure.tcc 42 26 16 26.4 dash
21 no-host configure.tcc 221 154 71 26.2 osh-cpython
29 no-host configure.tcc 51 29 22 26.0 osh-native
37 no-host configure.tcc 49 29 21 26.2 osh-native-souffle
3 no-host configure.util-linux 12,686 6,687 6,468 39.6 bash
11 no-host configure.util-linux 13,435 6,569 7,362 39.9 dash
19 no-host configure.util-linux 32,514 20,387 13,210 39.6 osh-cpython
27 no-host configure.util-linux 13,840 6,392 7,682 39.7 osh-native
35 no-host configure.util-linux 13,938 6,366 7,653 39.6 osh-native-souffle
6 no-host configure.yash 1,733 975 765 33.4 bash
14 no-host configure.yash 1,652 977 678 33.4 dash
22 no-host configure.yash 2,470 1,511 1,001 33.5 osh-cpython
30 no-host configure.yash 1,770 988 784 33.1 osh-native
38 no-host configure.yash 1,733 946 790 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 61 40 21 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 3 0 6.3 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,395 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,164 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,605 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,457 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,371 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,961 0 0 0 8 0 1,994 57 bash
9 no-host bin-true 49,340 0 0 0 8 0 2,982 45 dash
17 no-host bin-true 827,245 0 0 0 8 0 2,001 114 osh-cpython
25 no-host bin-true 133,288 0 0 0 16 0 1,981 103 osh-native
33 no-host bin-true 138,283 0 0 0 16 0 1,979 94 osh-native-souffle
2 no-host configure.cpython 1,620,876 0 0 0 25,272 0 14,031 1,068 bash
10 no-host configure.cpython 1,640,340 0 0 0 25,272 0 14,084 1,039 dash
18 no-host configure.cpython 5,968,944 0 0 0 25,272 0 12,886 885 osh-cpython
26 no-host configure.cpython 1,806,137 0 0 0 25,280 0 13,019 1,101 osh-native
34 no-host configure.cpython 1,773,880 0 0 0 25,280 0 12,937 1,049 osh-native-souffle
4 no-host configure.ocaml 298,582 0 0 0 4,432 0 2,010 210 bash
12 no-host configure.ocaml 281,103 0 0 0 4,432 0 2,101 206 dash
20 no-host configure.ocaml 555,917 0 0 0 4,432 0 1,920 192 osh-cpython
28 no-host configure.ocaml 316,218 0 0 0 4,440 0 2,000 192 osh-native
36 no-host configure.ocaml 316,165 0 0 0 4,440 0 1,999 227 osh-native-souffle
5 no-host configure.tcc 5,209 0 0 0 80 0 48 4 bash
13 no-host configure.tcc 4,214 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,782 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,938 0 0 0 96 0 47 4 osh-native
37 no-host configure.tcc 5,898 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,534,450 2 0 0 35,944 0 18,984 1,120 bash
11 no-host configure.util-linux 1,694,574 0 0 0 35,936 0 17,091 1,255 dash
19 no-host configure.util-linux 4,979,084 0 0 0 35,960 0 17,492 840 osh-cpython
27 no-host configure.util-linux 1,712,181 0 0 0 35,944 0 17,426 1,189 osh-native
35 no-host configure.util-linux 1,707,632 0 0 0 35,944 0 17,508 1,149 osh-native-souffle
6 no-host configure.yash 173,675 0 0 0 3,616 0 874 105 bash
14 no-host configure.yash 159,507 0 0 0 3,616 0 997 82 dash
22 no-host configure.yash 315,789 0 0 0 3,616 0 860 108 osh-cpython
30 no-host configure.yash 179,504 0 0 0 3,624 0 856 107 osh-native
38 no-host configure.yash 179,028 0 0 0 3,624 0 855 106 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,889 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 388 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 375 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3df42eb7
dash dash-cea41b3e
osh-cpython osh-52ad9df6
osh-native osh-7ec868dc
osh-native-souffle osh-bc36eb7b
host label host id
no-host no-host-2411472