Skip to content

Commit

Permalink
README rebuilt using Weave
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisvalentiner committed Nov 28, 2018
1 parent 0e488df commit d6bebe1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 38 deletions.
4 changes: 2 additions & 2 deletions README.jl
Expand Up @@ -26,8 +26,8 @@ for puzzle in filter(x-> x≠ :AdventOfCode2017, names(AdventOfCode2017))
table = vcat(table, row)
end
end
table = vcat(table, ["**Median**" round.(median(table[2:end, 2:end], 1), digits=4)])
table = vcat(table, ["**Total**" round.(sum(table[2:end, 2:end], 1), digits=4)])
table = vcat(table, ["**Median**" round.(median(table[2:end, 2:end], dims=1), digits=4)])
table = vcat(table, ["**Total**" round.(sum(table[2:end, 2:end], dims=1), digits=4)])
performance = MD(Table(Any[map(x->Any[x], table[i, :]) for i in 1:size(table, 1)], Symbol[:l, :r, :r, :r]))

#' ## Performance
Expand Down
60 changes: 24 additions & 36 deletions README.md
Expand Up @@ -6,20 +6,6 @@

[![codecov.io](http://codecov.io/github/ellisvalentiner/AdventOfCode2017.jl/coverage.svg?branch=master)](http://codecov.io/github/ellisvalentiner/AdventOfCode2017.jl?branch=master)

<pre class="julia-error">
ERROR: MethodError: no method matching median&#40;::Array&#123;Any,2&#125;, ::Int64&#41;
Closest candidates are:
median&#40;::AbstractArray; dims&#41; at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Statistics/src/Statistics.jl:750
median&#40;::Any&#41; at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Statistics/src/Statistics.jl:736
</pre>


<pre class="julia-error">
ERROR: MethodError: objects of type Array&#123;Any,2&#125; are not callable
Use square brackets &#91;&#93; for indexing an Array.
</pre>




## Performance
Expand All @@ -29,26 +15,28 @@ print(performance)
````


| Day | Elapsed (s) | Allocated (MiB) | Garbage Collection (s) |
|:--- | -----------:| ---------------:| ----------------------:|
| 1 | 0.447 | 67.9359 | 0.0226 |
| 2 | 2.0448 | 316.2278 | 0.1145 |
| 3 | 0.5578 | 83.761 | 0.0339 |
| 4 | 0.4492 | 54.3902 | 0.0398 |
| 5 | 0.1862 | 15.4439 | 0.0 |
| 6 | 0.4323 | 56.5901 | 0.0686 |
| 7 | 1.5562 | 809.2776 | 0.0753 |
| 8 | 0.825 | 49.4892 | 0.0098 |
| 9 | 0.1595 | 6.4352 | 0.0051 |
| 10 | 0.5426 | 92.2009 | 0.0252 |
| 11 | 0.5585 | 78.2333 | 0.0154 |
| 12 | 0.8162 | 150.2785 | 0.0523 |
| 13 | 46.3753 | 133016.0169 | 4.9562 |
| 14 | 1.4285 | 754.9897 | 0.1238 |
| 15 | 11.4919 | 15110.7101 | 1.4724 |
| 16 | 1.9052 | 1918.0764 | 0.2517 |
| 17 | 0.5437 | 67.5974 | 0.0068 |
| 18 | 0.2407 | 30.6026 | 0.0033 |
| 19 | 0.3113 | 43.6193 | 0.0119 |
| 20 | 18.8032 | 9722.6337 | 0.6592 |
| Day | Elapsed (s) | Allocated (MiB) | Garbage Collection (s) |
|:---------- | -----------:| ---------------:| ----------------------:|
| 1 | 0.4222 | 67.9359 | 0.0225 |
| 2 | 2.1465 | 316.2278 | 0.1149 |
| 3 | 0.5417 | 83.761 | 0.031 |
| 4 | 0.4019 | 54.3902 | 0.0357 |
| 5 | 0.1589 | 15.4439 | 0.0 |
| 6 | 0.4453 | 56.5901 | 0.0624 |
| 7 | 1.7252 | 809.2776 | 0.0756 |
| 8 | 0.9189 | 49.4892 | 0.0108 |
| 9 | 0.167 | 6.4352 | 0.0054 |
| 10 | 0.5796 | 92.2009 | 0.0281 |
| 11 | 0.5514 | 78.2333 | 0.0161 |
| 12 | 0.5929 | 150.2785 | 0.0322 |
| 13 | 45.969 | 133016.0169 | 4.985 |
| 14 | 1.3744 | 754.9897 | 0.1232 |
| 15 | 11.6257 | 15110.7101 | 1.5627 |
| 16 | 1.8238 | 1918.0764 | 0.2547 |
| 17 | 0.5657 | 67.5974 | 0.0073 |
| 18 | 0.3615 | 30.6026 | 0.004 |
| 19 | 0.3266 | 43.6193 | 0.0148 |
| 20 | 18.831 | 9722.6337 | 0.682 |
| **Median** | 0.5726 | 80.9972 | 0.0316 |
| **Total** | 90.1018 | 162525.5069 | 8.1 |

0 comments on commit d6bebe1

Please sign in to comment.