fix errors and start on a performance test

Signed-off-by: Mattias Andrée <maandree@operamail.com>