Same equal performance with manual unrolling and by template class. But with manual unrolling compile goes quickly.