servers: some refactorings in benchmark tool