Author: olegk Date: Wed Dec 24 10:13:14 2008 New Revision: 729347 URL: http://svn.apache.org/viewvc?rev=729347&view=rev Log: Added a simple benchmark for parsing of a long multipart message
Added: james/mime4j/trunk/benchmarks/ james/mime4j/trunk/benchmarks/resources/ james/mime4j/trunk/benchmarks/resources/long-multipart.msg james/mime4j/trunk/benchmarks/src/ james/mime4j/trunk/benchmarks/src/org/ james/mime4j/trunk/benchmarks/src/org/apache/ james/mime4j/trunk/benchmarks/src/org/apache/james/ james/mime4j/trunk/benchmarks/src/org/apache/james/mime4j/ james/mime4j/trunk/benchmarks/src/org/apache/james/mime4j/LongMultipartReadBench.java Added: james/mime4j/trunk/benchmarks/resources/long-multipart.msg URL: http://svn.apache.org/viewvc/james/mime4j/trunk/benchmarks/resources/long-multipart.msg?rev=729347&view=auto ============================================================================== --- james/mime4j/trunk/benchmarks/resources/long-multipart.msg (added) +++ james/mime4j/trunk/benchmarks/resources/long-multipart.msg Wed Dec 24 10:13:14 2008 @@ -0,0 +1,684 @@ +Date: Fri, 27 Apr 2007 16:08:23 +0200 +From: Foo Bar <b...@example.com> +MIME-Version: 1.0 +To: f...@example.com +Subject: This is a rather long multipart message. +Content-Type: multipart/mixed; boundary="------------090404080405080108000909" + +This is a multi-part message in MIME format. +--------------090404080405080108000909 +Content-Type: text/plain; charset=ISO-8859-15 +Content-Transfer-Encoding: 7bit + +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +1111111111111111111111111111111111111111111111111111111111111111111111111111111 +--------------090404080405080108000909 +Content-Type: text/plain; charset=ISO-8859-15 +Content-Transfer-Encoding: 7bit + +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +2222222222222222222222222222222222222222222222222222222222222222222222222222222 +--------------090404080405080108000909 +Content-Type: text/plain; charset=ISO-8859-15 +Content-Transfer-Encoding: 7bit + +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +3333333333333333333333333333333333333333333333333333333333333333333333333333333 +--------------090404080405080108000909 +Content-Type: text/plain; charset=ISO-8859-15 +Content-Transfer-Encoding: 7bit + +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +4444444444444444444444444444444444444444444444444444444444444444444444444444444 +--------------090404080405080108000909 +Content-Type: text/plain; charset=ISO-8859-15 +Content-Transfer-Encoding: 7bit + +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +5555555555555555555555555555555555555555555555555555555555555555555555555555555 +--------------090404080405080108000909-- + Added: james/mime4j/trunk/benchmarks/src/org/apache/james/mime4j/LongMultipartReadBench.java URL: http://svn.apache.org/viewvc/james/mime4j/trunk/benchmarks/src/org/apache/james/mime4j/LongMultipartReadBench.java?rev=729347&view=auto ============================================================================== --- james/mime4j/trunk/benchmarks/src/org/apache/james/mime4j/LongMultipartReadBench.java (added) +++ james/mime4j/trunk/benchmarks/src/org/apache/james/mime4j/LongMultipartReadBench.java Wed Dec 24 10:13:14 2008 @@ -0,0 +1,57 @@ +package org.apache.james.mime4j; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.InputStream; + +import org.apache.james.mime4j.parser.MimeTokenStream; + +public class LongMultipartReadBench { + + public static void main(String[] args) throws Exception { + + ClassLoader cl = LongMultipartReadBench.class.getClassLoader(); + + ByteArrayOutputStream outstream = new ByteArrayOutputStream(); + InputStream instream = cl.getResourceAsStream("long-multipart.msg"); + if (instream == null) { + System.out.println("Test message not found"); + return; + } + try { + int l; + byte[] tmp = new byte[2048]; + while ((l = instream.read(tmp)) != -1) { + outstream.write(tmp, 0, l); + } + } finally { + instream.close(); + } + + byte[] content = outstream.toByteArray(); + + int reps = 25000; + if (args.length > 0) { + reps = Integer.parseInt(args[0]); + } + + System.out.println("Multipart message read."); + System.out.println("No of repetitions: " + reps); + System.out.println("Content length: " + content.length); + System.out.println("----------------------------"); + + MimeTokenStream stream = new MimeTokenStream(); + long start = System.currentTimeMillis(); + for (int i = 0; i < reps; i++) { + stream.parse(new ByteArrayInputStream(content)); + for (int state = stream.getState(); + state != MimeTokenStream.T_END_OF_STREAM; + state = stream.next()) { + } + } + long finish = System.currentTimeMillis(); + System.out.println("Execution time: " + + ((double)(finish - start) / 1000) + " ms" ); + } + +} --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org