perf tests, some optimizations