Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tubone24/elixir_performance_tool

Checking TAT benchmark test tools for Parallel HTTP requests by Elixir.
https://github.com/tubone24/elixir_performance_tool

elixir perfomance-testing

Last synced: 1 day ago
JSON representation

Checking TAT benchmark test tools for Parallel HTTP requests by Elixir.

Awesome Lists containing this project

README

        

# Ebook Homebrew: ElixirPerformanceTool

![logo](./elixir_perfomance_logo.png)

[![license](https://img.shields.io/github/license/tubone24/elixir_performance_tool.svg)](LICENSE)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

Checking TAT benchmark test tools for Parallel HTTP requests by Elixir.

## Table of Contents

- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## Background

One day, I needed to test the performance of Ebook Homebrew, and decided to solve it by creating a load testing tool that could send a lot of requests in parallel.

## Install

### Preconditions

#### Dependencies

Install dependencies by Mix.

```bash
mix deps.get
```

### Installation for another modules

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `elixir_performance_tool` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:elixir_performance_tool, "~> 0.1.0"}
]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/elixir_performance_tool](https://hexdocs.pm/elixir_performance_tool).

## Usage

### Run the test by IEx.

Run the test by IEx.

```
iex -S mix

iex(1)> ElixirPerformanceTool.run(10, 10)
```

Function `ElixirPerformanceTool.run` set 2 args, first one is parallel task number, second one is repeating times.

### test

Run test by mix test.

```bash
mix test
```

## Contributing

See [the contributing file](CONTRIBUTING.md)!

PRs accepted.

Small note: If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

[MIT © tubone.](LICENSE)