Last night I finally got my raspberry pi up and running one of my current rails projects. This project is relatively simple, only 30 specs, and I wanted to see how it would stack up against my macbook air.
TL;DR: The pi is about 20 times slower running the actual tests (46s vs 2.2s), but loading the test environment is by far the slowest part. ~7 minutes.
This result makes me believe that I could use my pi as a nice little CI server for personal projects as long as the test suites are simple. This week I will be taking a look at some light weight CI servers and try running them on the pi.
See the full results below.
---------------- Raspberry Pi --------------
pi@raspberrypi:~/gitomic$ time rake
Finished in 46.25 seconds
30 examples, 0 failures
real 8m20.454s
user 7m43.070s
sys 0m13.400s
---------------- Macbook Air --------------
➜ gitomic git:(master) time rake
Finished in 2.23 seconds
30 examples, 0 failures
rake 18.39s user 1.59s system 96% cpu 20.648 total