From dev-return-13082-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Aug 03 16:03:34 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 56473 invoked from network); 3 Aug 2009 16:03:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Aug 2009 16:03:34 -0000 Received: (qmail 32327 invoked by uid 500); 3 Aug 2009 16:03:39 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 32261 invoked by uid 500); 3 Aug 2009 16:03:38 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 32251 invoked by uid 99); 3 Aug 2009 16:03:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 16:03:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 16:03:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CAC53234C045 for ; Mon, 3 Aug 2009 09:03:14 -0700 (PDT) Message-ID: <925743383.1249315394818.JavaMail.jira@brutus> Date: Mon, 3 Aug 2009 09:03:14 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1194) LockManager tests call platformSpeedTest() for every test method In-Reply-To: <1356898702.1248360795394.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick updated OPENJPA-1194: ---------------------------------- Affects Version/s: (was: 2.0.0) Assignee: Michael Dick Remaining Estimate: 0h Original Estimate: 0h > LockManager tests call platformSpeedTest() for every test method > ---------------------------------------------------------------- > > Key: OPENJPA-1194 > URL: https://issues.apache.org/jira/browse/OPENJPA-1194 > Project: OpenJPA > Issue Type: Sub-task > Reporter: Michael Dick > Assignee: Michael Dick > Priority: Minor > Original Estimate: 0h > Remaining Estimate: 0h > > The platformSpeedTest method is used to get a rough estimate of how fast the system is and from that determine how long we need to wait when running lock manager tests. It seems unlikely that this will change dramatically between test methods within a single class so it'd be better to find a way to cache the value without re-running the test. > The test appears to be quick, but it's still largely wasted cycles. > Unfortunately this is one of the areas where junit3 is limited - it's very tricky to initialize once per class (junit4 and testNG appear to be better at this), but we should be able to execute it only once per class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.