# How to run benchmarks

**URL:** <https://community.rubybench.org/t/how-to-run-benchmarks/29>\
**Category:** Uncategorized\
**Created:** [January 22, 2015, 2:53pm UTC](https://community.rubybench.org/t/how-to-run-benchmarks/29 "2015-01-22T14:53:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Jack](https://community.rubybench.org/u/Jack)\
**Post date:** [January 22, 2015, 2:53pm UTC](https://community.rubybench.org/t/how-to-run-benchmarks/29/1 "2015-01-22T14:53:34Z")

</div>

## I am trying to run ruby-bench-docker. Here are the steps I took:

a) cd into base/ folder and ran:

```
>sudo docker build --no-cache -t tgxworld/ruby_releases_base

```

b) cd into ruby\_benchmarks/ruby\_releases/ruby\_benchmarks and ran:

```
>sudo docker build --no-cache -t tgxworld/ruby_releases

```

c) try running the benchmark by:

```
>sudo docker run --rm tgxworld/ruby_releases

```

## However, I am getting the following errors:

```
/etc/profile: line 38: rbenv: command not found
/root/.bashrc: line 19: rbenv: command not found
stdin: is not a tty
Using Ruby 
./runner: line 8: rbenv: command not found

```

* * *

## Then, I tried running this manually within the container (which works):

```
hostmachine> sudo docker run --rm -t -i tgxworld/ruby_releases /bin/bash
root@container:> ./runner 

```

But this outputs a bunch of stuff on stdout and I don’t know how to interpert the results. Can you tell me how you run the benchmarks and how are the results fed into the ruby-bench-web frontend? So I can look at nice pretty graphs similiar to the one on [https://rubybench.org/](https://rubybench.org/)

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/rubybench/original/1X/4ae23b7eff9a1b039e126f05dd734ab09c8ab4b5.png) [@system](https://community.rubybench.org/u/system)\
**Post date:** [January 23, 2015, 7:16am UTC](https://community.rubybench.org/t/how-to-run-benchmarks/29/2 "2015-01-23T07:16:00Z")

</div>

Hi Jack!

The problem is due to the way you’re running the command.

`sudo docker run --rm tgxworld/ruby_releases`

should be

`sudo docker run --rm -e "RUBY_VERSION=<specify a Ruby version>" tgxworld/ruby_releases`

The `RUBY_VERSION` follows rbenv’s naming format. You’ll also have to check the Dockerfile in `ruby_releases_base` to see which Ruby versions are available.

Let me know if this fixes the problem for you.

> [@Jack](#):
>
> how are the results fed into the ruby-bench-web frontend?

If you look into `driver.rb`, you’ll see at the end that we’re actually POSTing the results to ruby-bench-web. 😄

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/rubybench/original/1X/4ae23b7eff9a1b039e126f05dd734ab09c8ab4b5.png) [@system](https://community.rubybench.org/u/system)\
**Post date:** [February 6, 2015, 10:59am UTC](https://community.rubybench.org/t/how-to-run-benchmarks/29/6 "2015-02-06T10:59:54Z")

</div>

@Jack Feel free to ask me if you have doubts 😄 I’ll be more than happy to help.

Is there anything particular you’re working on right now that I can help with?

---

<div class="post-metadata">

**Author:** ![Jack](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Jack](https://community.rubybench.org/u/Jack)\
**Post date:** [February 9, 2015, 4:06pm UTC](https://community.rubybench.org/t/how-to-run-benchmarks/29/7 "2015-02-09T16:06:03Z")

</div>

Hey @tgxworld, I ran into some trouble getting the docker to POST the results to the ruby bench web but I was able to figure it out. So everything is working now. Thanks for your help 😄
