couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r1051325 - /couchdb/trunk/test/bench/benchbulk.sh
Date Tue, 21 Dec 2010 00:07:40 GMT
Author: jchris
Date: Tue Dec 21 00:07:40 2010
New Revision: 1051325

URL: http://svn.apache.org/viewvc?rev=1051325&view=rev
Log:
update benchbulk script for json content-type

Modified:
    couchdb/trunk/test/bench/benchbulk.sh

Modified: couchdb/trunk/test/bench/benchbulk.sh
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/bench/benchbulk.sh?rev=1051325&r1=1051324&r2=1051325&view=diff
==============================================================================
--- couchdb/trunk/test/bench/benchbulk.sh (original)
+++ couchdb/trunk/test/bench/benchbulk.sh Tue Dec 21 00:07:40 2010
@@ -57,7 +57,7 @@ while [ $RUN -lt $ROUNDS ]; do
     echo "startkey $STARTKEY bulksize $BULKSIZE"
     DOCS=$(make_bulk_docs $BULKSIZE $STARTKEY $DOCSIZE)
     # echo $DOCS
-    echo $DOCS | curl -T - -X POST $POSTURL -w%{http_code}\ %{time_total}\ sec\\n >/dev/null
2>&1 &
+    echo $DOCS | curl -T - -H Content-Type:application/json -X POST $POSTURL -w%{http_code}\
%{time_total}\ sec\\n >/dev/null 2>&1 &
     let POSTS=POSTS+1
   done
 



Mime
View raw message