Fix implicit cast of branch condition
Add benchmark suite