It sounds to me like you would benefit by working through perlfaq4 -- Data Manipulation. Theres some excellent code snippets in there for all manner of data structure issues, including this one (How do I look up a hash element by value?)
Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.