there's no general solution since each app is different, but some suggestions: 1 - make sure to test with indexes having the same size as in "production", since index sizes affect performance. 2 - consequence of 1) is you'll need similar hardware and same memory configuration, since memory affects search performance significantly. 3 - avoid testing "write only" or "search only" scenarios, but mix the two activities in a similar ratio as you'll expect by real users. 4 - avoid repeating the same query over and over: both Lucene and Hibernate will cache several things in various layers, and real users will make different queries. 5 - apply good rules of any other performance test (like give it a warmup period before measuring, tune GC first, read a book, etc..) 6 - profile it and let us know what is slowing you down the most, we love to improve :)
_________________ Sanne http://in.relation.to/
|