Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Games: Benchmarking

deprecated_games_benchmarking.livemd

Games: Benchmarking

Mix.install([
  {:jason, "~> 1.4"},
  {:kino, "~> 0.9", override: true},
  {:youtube, github: "brooklinjazz/youtube"},
  {:hidden_cell, github: "brooklinjazz/hidden_cell"}
])

Navigation

Home Report An Issue BenchmarkingCustom Enum With Recursion

Games: Benchmarking

In your existing Games project, you’re going to benchmark your Wordle application.

First, add Benchee to your existing list of dependencies.

You’re going to run benchmarks in your ExUnit test suite. Since benchmarks are usually expensive, you’ll create a custom :benchmark tag and exclude this tag from tests in test_helper.exs.

You should be able to run benchmarks using the --only=benchmark or the --include=benchmark flag.

mix test --only=benchmark

Benchmark the Games.Wordle.feedback/2 function you previously created. Refactor your solution and try to optimize its performance.

Commit Your Progress

DockYard Academy now recommends you use the latest Release rather than forking or cloning our repository.

Run git status to ensure there are no undesirable changes. Then run the following in your command line from the curriculum folder to commit your progress.

$ git add .
$ git commit -m "finish Games: Benchmarking exercise"
$ git push

We’re proud to offer our open-source curriculum free of charge for anyone to learn from at their own pace.

We also offer a paid course where you can learn from an instructor alongside a cohort of your peers. We will accept applications for the June-August 2023 cohort soon.

Navigation

Home Report An Issue BenchmarkingCustom Enum With Recursion