Skip to content

Commit

Permalink
Create benchmark section in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
williamthome committed Aug 8, 2024
1 parent c31e683 commit 30a503a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,25 @@ iex(1)> Exneus.encode!(%{name: "Joe Armstrong", age: 68, nationality: "British"}
iex(2)> Exneus.decode!(v(1))
%{"age" => 68, "name" => "Joe Armstrong", "nationality" => "British"}
```

## Benchmark

### Encode

Run time comparison:

![Encode run time](benchmark/assets/encode_run_time.png)

Memory usage comparison:

![Encode memory usage](benchmark/assets/encode_memory_usage.png)

### Decode

Run time comparison:

![Decode run time](benchmark/assets/decode_run_time.png)

Memory usage comparison:

![Decode memory usage](benchmark/assets/decode_memory_usage.png)
Binary file added benchmark/assets/decode_memory_usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added benchmark/assets/decode_run_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added benchmark/assets/encode_memory_usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added benchmark/assets/encode_run_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30a503a

Please sign in to comment.