Skip to content

Commit

Permalink
Merge branch 'master' of github.com:holyxiaoxin/async-tasks-benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
holyxiaoxin committed Feb 12, 2016
2 parents ccb7dc3 + 3a5852d commit b558599
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Tasks

Simple Benchmark script to test `Task.async` and `Task.await` in elixir.

## Installation

## Installation (single benchmark)
1. clone repo
2. `mix deps.get`
3. cd `lib/tasks.ex` and add non-caching urls to the list of urls
3. cd `lib`
4. `mix escript.build && ./tasks -u http:<some non-caching>.url -m 10 -l 10`

### Options
Expand All @@ -20,5 +18,14 @@ Simple Benchmark script to test `Task.async` and `Task.await` in elixir.

<br>

## TODO:
Write a script to run a batch of scripts.

## Batch Benchmark
1. cd `lib`
2. `mix benchmark -u http:<some non-caching>.url`
<br>

Load is set to:
```
muls = [50, 100, 150, 200, 250, 300]
loop_nums = [1, 10, 50]
```
1 change: 0 additions & 1 deletion lib/benchmark.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ defmodule Mix.Tasks.Benchmark do
IO.write(f, CSVLixir.write_row([]))
File.close(f)
end)
# File.read!("test.csv") |> IO.inspect
end

defp parse_args(args) do
Expand Down

0 comments on commit b558599

Please sign in to comment.