caiconghui commented on PR #11479: URL: https://github.com/apache/doris/pull/11479#issuecomment-1204104383
> Is there any performance tests? the main cost is EditLog write, I use thread.sleep(2) to Simulate editlog write and here is the example for single thread ``` MetaIdGenerator idGenerator = new MetaIdGenerator(0); int size = 50000; long[] idList = new long[size]; long startTime = System.currentTimeMillis(); // for (int i = 0; i < size; i++) { // idList[i] = idGenerator.getNextId(); // } IdGeneratorBuffer idGeneratorBuffer = idGenerator.getIdGeneratorBuffer(size); for (int i = 0; i < size; ++i) { idList[i] = idGeneratorBuffer.getNextId(); } System.out.println("cost " + (System.currentTimeMillis() - startTime)); ``` cost is 123ms vs 4ms this example is for creating table on single thread -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org