NOTE: Laika is an archived project and there are some other alternatives you can use instead:

Using a ramdisk for mongodb data directory

You can make test run 3 times faster by using a ramdisk for your mongodb data directory. These days most of the dev boxes runs with 8 GB or more RAM. So using 1GB as a ramdisk for mongo should not be a big issue.

Create your ram disk

OSX

  • Use this guide to create a ram disk
  • It will new disk drive mounted to /Volumes/<name you given>

Linux

Start mongodb with ramdisk

mongod --smallfiles --noprealloc --nojournal --dbpath <ramdisk mounted localtion>
Fork me on GitHub