Skip to content

Instantly share code, notes, and snippets.

View tallysmartins's full-sized avatar

Tallys Martins tallysmartins

  • São Paulo, Brazil
View GitHub Profile
<html>
<head>
<style>
.square {
border-radius: 6px;
padding: 10px;
background: #A2A6A6;
width: 80px;
height: 80px;
@tallysmartins
tallysmartins / elixir-bench-report.md
Last active August 18, 2021 14:30
ElixirBench final report - GSOC 2018

Google Summer of Code 2018 - ElixirBench

Organization
Project Long Running Elixir Benchmarks
@tallysmartins
tallysmartins / elixir-bench-roadmap.md
Last active August 2, 2018 12:42
ElixirBench Roadmap

ElixirBench Development Roadmap

Features

  • Retry Job (today is a completely new job and is not linked to retried one)
  • Track job status pending/running/finished/failed
  • Save/Download docker-compose file from job
  • Be able to search repository
  • Add max retries to job claiming to avoid the runner to always claim a job that fails
  • Detect performance regressions and notify repositories
@tallysmartins
tallysmartins / runner.ex
Last active August 13, 2018 20:46
Runner refactoring
# Elixir Bench Runner API
defmodule ElixirBench.Runner.Api do
@api_client Application.fetch_env(:runner, api_client)
#notify caller about submission status
def submit_results(caller, credentials, job, results) do
case @api_client.submit_results(credentials, results) do
:ok -> send(caller, :ok)
_ -> send(caller, :error)
end
@tallysmartins
tallysmartins / insert_bench_output.exs
Created July 3, 2018 22:34
Repo.insert!/1 benchmark
Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Number of Available Cores: 4
Available memory: 15.49 GB
Elixir 1.6.4
Erlang 20.3
Benchmark suite executing with the following configuration:
warmup: 2 s
time: 5 s
parallel: 1
@tallysmartins
tallysmartins / all_bench_output.exs
Created July 3, 2018 22:33
Repo.all/2 benchmark
Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Number of Available Cores: 4
Available memory: 15.49 GB
Elixir 1.6.4
Erlang 20.3
Benchmark suite executing with the following configuration:
warmup: 2 s
time: 10 s
parallel: 1
Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Number of Available Cores: 4
Available memory: 15.49 GB
Elixir 1.6.4
Erlang 20.3
Benchmark suite executing with the following configuration:
warmup: 2 s
time: 40 s
parallel: 1
@tallysmartins
tallysmartins / load_bench_output.exs
Last active July 3, 2018 19:15
Repo.load/2 benchmark
Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Number of Available Cores: 4
Available memory: 15.49 GB
Elixir 1.6.4
Erlang 20.3
Benchmark suite executing with the following configuration:
warmup: 2 s
time: 10 s
parallel: 1