Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 64799 invoked from network); 4 Dec 2007 21:22:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2007 21:22:05 -0000 Received: (qmail 39409 invoked by uid 500); 4 Dec 2007 21:21:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 39374 invoked by uid 500); 4 Dec 2007 21:21:53 -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 39365 invoked by uid 99); 4 Dec 2007 21:21:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 13:21:53 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-mail-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 21:21:54 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id lB4LLLq6024927 for ; Tue, 4 Dec 2007 21:21:33 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JSJ00E01N46S100@fe-emea-10.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-dev@db.apache.org; Tue, 04 Dec 2007 21:21:21 +0000 (GMT) Received: from localhost ([193.71.105.147]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JSJ00MBMNBKS5D0@fe-emea-10.sun.com> for derby-dev@db.apache.org; Tue, 04 Dec 2007 21:21:21 +0000 (GMT) Date: Tue, 04 Dec 2007 22:21:15 +0100 From: Knut Anders Hatlen Subject: Best place for stand-alone performance tests? Sender: Knut.Hatlen@Sun.COM To: derby-dev@db.apache.org Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Hi, As part of my work on a new buffer manager (DERBY-2911), I'm trying to merge (and extend) the performance test clients attached to DERBY-1961 and DERBY-2911 into a single suite of tests so that they can share code for generating load with different distributions (back-to-back transactions and Poisson-distributed transactions in the first round) and collecting/reporting results. Since these clients might be useful to others, I thought it might be a good idea to add them to the source repository, but I'm not sure what's the appropriate location for such test clients. The JUnit performance tests reside in org.apache.derbyTesting.perf.basic, so I thought perhaps org.apache.derbyTesting.perf.clients would be OK for stand-alone clients. Other suggestions? Someone may wonder why I intend to write these test clients as stand-alone applications rather than JUnit tests. The main reasons are: - I want to make it easy to write scripts which run series of tests with different parameters (like number of threads, transaction injection rate, length of the runs, page cache size, etc). In our JUnit test, we normally have a fixed setup, and need to recompile if we want to change it. - I would like to have the possibility to run the tests against other DBMSs than Derby, which wouldn't be trivial in our current JUnit framework. - They already exist as stand-alone tests on the JIRAs, so the conversion is simpler. (Yes, I'm lazy... :) It shouldn't be difficult to take a couple of fixed configurations and wiring them into a JUnit test later, though. But since I think it's easier to wrap the stand-alone clients in a JUnit test than vice versa, I'd like to do the stand-alone part first. Thanks, -- Knut Anders