Instead of profiling manually, use (time ... ) function.