Skip to content
Browse files

added httperf to test

  • Loading branch information...
1 parent 7b2fefa commit f18e560345d4e0be88d898c7843be306e0ccad81 Vincent Landgraf committed Apr 26, 2011
Showing with 10 additions and 6 deletions.
  1. +10 −6 Makefile
View
16 Makefile
@@ -1,7 +1,8 @@
-COUNT = 10
-URL = "http://localhost/~vincentlandgraf/test.json"
-DATE = `date +%Y-%m-%d.%H-%M`
-RESULT = "result-$(DATE).txt"
+COUNT = 10000
+HOST = 169.254.41.121
+URI = ~vincentlandgraf/test.json
+URL = "http://$(HOST)/$(URI)"
+RESULT = "result.txt"
all: clean install test csv
@@ -24,7 +25,7 @@ install-java:
# Do the test
#
-test: test-ruby test-java test-apache
+test: test-ruby test-java test-apache test-httperf
test-ruby:
rvm 1.9.2,1.8.7 exec ruby test.rb $(COUNT) $(URL) >> $(RESULT)
@@ -35,7 +36,10 @@ test-java:
java -jar java/target/http-test-0.0.1-SNAPSHOT.jar $(COUNT) $(URL) >> $(RESULT)
test-apache:
- ab -n $(COUNT) $(URL) >> $(RESULT)
+ time ab -n $(COUNT) $(URL) >> $(RESULT)
+
+test-httperf:
+ time httperf --num-conns=$(COUNT) --num-calls=1 --server=$(HOST) --uri=/$(URI) >> $(RESULT)
#
# Extract the results

0 comments on commit f18e560

Please sign in to comment.
Something went wrong with that request. Please try again.