db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Matrangolo <ma...@santippe.dyndns.org>
Subject Why my test runs so slow on Ubuntu ?
Date Tue, 27 Mar 2007 22:18:59 GMT
Dear derby-dev,

during the process of resolving DERBY-2467 (converting updateCursor to JUnit) I noticed that
the setUp() code of
the translated test runs much slower on Ubuntu than on WinXP.

The fragment of code that runs much slower is :

	largeString = new String(sb);
	for (int i = 246; i > 0; i = i - 5) {
	    assertUpdateCount(stmt, 5, 
		    "insert into t1 values ("
			+ (i+4) + ", '" + i + "', " + i + ", '" + i + "', " + i + ", '" + largeString + "'), ("
			+ (i+3) + ", '" + i + "', " + (i+1) + ", '" + i + "', " + i + ", '" + largeString + "'),
("
			+ (i+2) + ", '" + i + "', " + (i+2) + ", '" + i + "', " + i + ", '" + largeString + "'),
("
			+ (i+1) + ", '" + i + "', " + (i+3) + ", '" + i + "', " + i + ", '" + largeString + "'),
("
			+ i + ", '" + i + "', " + (i+4) + ", '" + i + "', " + i + ", '" + largeString + "')");
	}

located in the setUp() method.

On winxp it takes about 4-5 secs while on my Ubuntu laptop takes 3-4 mins! Thw two laptops
are different (winxp runs on
a centrino duo 1.6Ghz with 1.5Gb while my Ubuntu runs on a Centrino 1.8Ghz with 2gb) but I
hardly think that they justify this 
large gap.

Regards,
Ugo.

Mime
View raw message