Git Product home page Git Product logo

advent-of-code-2019's Introduction

Advent of Code 2019

HitCount license

Problem Solution Time execution Finished
Day 1 Problem 1 day1.rs 2.7 ms ± 0.5 ms
Day 2 Problem 2 day2.rs 5.2 ms ± 0.5 ms
Day 3 Problem 3 day3.rs 4.5 ms ± 0.6 ms
Day 4 Problem 4 day4.rs 2.7 ms ± 0.4 ms
Day 5 Problem 5 day5.rs 2.9 ms ± 0.6 ms
Day 6 Problem 6 day6.rs 5.8 ms ± 0.4 ms
Day 7 Problem 7 day7.rs 13.2 ms ± 0.6 ms
Day 8 Problem 8 day8.rs 2.8 ms ± 0.5 ms
Day 9 Problem 9 day9.rs 216.0 ms ± 3.8 ms

Install Rust

If you don't have Rust installed (how dare you) just run this:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

If you are not using a Unix-like OS, check the instructions here

Usage

Clone

git clone https://github.com/MrRobb/advent-of-code-2019.git
cd advent-of-code-2019

Build

cargo build

Run

Run all

cargo run

Run a specific day

cargo run --bin day1

Benchmarks

Benchmark #1: target/release/day1
  Time (mean ± σ):       2.7 ms ±   0.5 ms    [User: 0.9 ms, System: 0.7 ms]
  Range (min … max):     2.2 ms …   6.6 ms    450 runs

Benchmark #2: target/release/day2
  Time (mean ± σ):       5.2 ms ±   0.5 ms    [User: 3.2 ms, System: 0.8 ms]
  Range (min … max):     4.4 ms …   7.0 ms    322 runs

Benchmark #3: target/release/day3
  Time (mean ± σ):       4.5 ms ±   0.6 ms    [User: 2.5 ms, System: 0.8 ms]
  Range (min … max):     3.9 ms …   7.5 ms    305 runs

Benchmark #4: target/release/day4
  Time (mean ± σ):       2.7 ms ±   0.4 ms    [User: 0.8 ms, System: 0.7 ms]
  Range (min … max):     2.2 ms …   4.7 ms    447 runs

Benchmark #5: target/release/day5
  Time (mean ± σ):       2.9 ms ±   0.6 ms    [User: 1.0 ms, System: 0.8 ms]
  Range (min … max):     2.3 ms …   6.3 ms    412 runs

Benchmark #6: target/release/day6
  Time (mean ± σ):       5.8 ms ±   0.4 ms    [User: 3.7 ms, System: 0.9 ms]
  Range (min … max):     5.3 ms …   7.3 ms    290 runs

Benchmark #7: target/release/day7
  Time (mean ± σ):      13.2 ms ±   0.6 ms    [User: 10.9 ms, System: 1.0 ms]
  Range (min … max):    12.3 ms …  15.0 ms    180 runs

Benchmark #8: target/release/day8
  Time (mean ± σ):       2.8 ms ±   0.5 ms    [User: 1.0 ms, System: 0.7 ms]
  Range (min … max):     2.3 ms …   5.2 ms    489 runs

Benchmark #9: target/release/day9
  Time (mean ± σ):     216.0 ms ±   3.8 ms    [User: 212.0 ms, System: 1.8 ms]
  Range (min … max):   210.0 ms … 229.1 ms    100 runs

advent-of-code-2019's People

Contributors

mrrobb avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.