Further experiments and improvements.

Implemented quite complete benchmark framework for the engine.