This is only for educational purposes.
Check out this post to install the required libcouchbase for Ubuntu 10.04.
bundle install
ruby goliath_couchbase.rb -sv -e prod
I used JMeter to load test this thingy and worked out quite well even with the plain stupidity of the code. :)