Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
go
java
node
ruby
.gitignore
README.md
benchmark.sh

README.md

lang_bench

This a collection of code snippets that do the same thing: lpush a URL parameter into redis. To add a language, create a simple webapp that listens on port 3001. The app should then accept a single URL parameter, test, and then lpush its contents to the redis list titled test_list.

Dependencies

brew install go redis node maven

Starting the servers

Ruby

bundle install
ruby app.rb

Node

npm install
node app.js

Go

First, create your go workspace:

mkdir ~/go
echo 'export GOPATH=~/go' >> ~/.zshrc

Install the redigo package: go get github.com/garyburd/redigo/redis

Run the app: go run app.go

Java

cd java
mvn package jetty:run

To benchmark

./benchmark.sh

You can’t perform that action at this time.