# Benchy: A benchmark tool

**URL:** <https://forum.crystal-lang.org/t/benchy-a-benchmark-tool/811>\
**Category:** Community\
**Created:** [May 31, 2019, 1:24pm UTC](https://forum.crystal-lang.org/t/benchy-a-benchmark-tool/811 "2019-05-31T13:24:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcardiff](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/bcardiff/32/3_2.png) [@bcardiff](https://forum.crystal-lang.org/u/bcardiff)\
**Post date:** [May 31, 2019, 1:24pm UTC](https://forum.crystal-lang.org/t/benchy-a-benchmark-tool/811/1 "2019-05-31T13:24:02Z")

</div>

We built a small tool that simplifies how to perform some benchmarks to measure time & memory of a process. Not only crystal programs.

In essence, it’s a wrapper to `/usr/bin/time -l` (mac) or `/usr/bin/time -v` (linux) with some handy support to integrate with load generators like `ab` while measuring the main process.

It’s a tiny app, but might be helpful for someone else as is.

Repo: [https://github.com/manastech/benchy](https://github.com/manastech/benchy)  
Docs: [https://github.com/manastech/benchy/blob/master/DOCS.md](https://github.com/manastech/benchy/blob/master/DOCS.md)  
Sample: [https://github.com/manastech/benchy/tree/master/sample](https://github.com/manastech/benchy/tree/master/sample)

---

<div class="post-metadata">

**Author:** ![bcardiff](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/bcardiff/32/3_2.png) [@bcardiff](https://forum.crystal-lang.org/u/bcardiff)\
**Post date:** [August 22, 2019, 5:09pm UTC](https://forum.crystal-lang.org/t/benchy-a-benchmark-tool/811/2 "2019-08-22T17:09:15Z")

</div>

As a follow up, the tool has evolved in the last couple of weeks a bit.

And we’ve created [https://observablehq.com/@bcardiff/benchy-viewer](https://observablehq.com/@bcardiff/benchy-viewer) to view the results as a chart easily.  
Currently some sample data shown in the notebook is about the memory, time, and binary size of a simple program across different versions.
