Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 80264 invoked from network); 17 Feb 2010 13:31:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2010 13:31:38 -0000 Received: (qmail 65372 invoked by uid 500); 17 Feb 2010 13:31:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 65344 invoked by uid 500); 17 Feb 2010 13:31:38 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 65336 invoked by uid 99); 17 Feb 2010 13:31:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 13:31:38 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 13:31:28 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o1HDV7EB004573 for ; Wed, 17 Feb 2010 13:31:07 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KXZ00F00LZK0U00@fe-emea-09.sun.com> for derby-dev@db.apache.org; Wed, 17 Feb 2010 13:30:56 +0000 (GMT) Received: from [129.159.139.223] ([unknown] [129.159.139.223]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KXZ00GQMMV5Y3E0@fe-emea-09.sun.com> for derby-dev@db.apache.org; Wed, 17 Feb 2010 13:30:43 +0000 (GMT) Date: Wed, 17 Feb 2010 14:30:21 +0100 From: Kristian Waagan Subject: Re: JUnit-based concurrency tests In-reply-to: <4B7AD4E6.1020703@sun.com> Sender: Kristian.Waagan@Sun.COM To: derby-dev@db.apache.org Message-id: <4B7BEF6D.7050202@Sun.COM> References: <4B7AD4E6.1020703@sun.com> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.5) Gecko/20100117 Lightning/1.0b1 Thunderbird/3.0 X-Virus-Checked: Checked by ClamAV on apache.org On 16.02.10 18:24, Rick Hillegas wrote: > I would like to write a JUnit test which creates N threads > (connections) and has all of them run the same test case > simultaneously. I see that there is related machinery > (JDBCPerfTestCase) which runs M iterations of the same test case. > Before I re-invent the wheel, I wanted to see whether there is already > a base class for what I want to do. > Hi Rick, I don't think JDBCPerfTestCase does what you want right now, it only gives you the ability to run for a specified number of iterations / series and then give you basic timing information. You might want to check out JUnitPerf and GroboUtils to see if they can easily be folded into our test framework. Especially the former looks slim and easy enough to use, but I don't have any practical experience with it. I'm not aware of any relevant existing base class in the Derby test framework for running multi-threaded tests. Regards, -- Kristian > Thanks, > -Rick