ITADN

the benchmark is incorrect

#6ClosedWaqar144 创建于 2024-08-25
W
Waqar144commented
The benchmark between char* and Qstring [here](https://github.com/igormironchik/md4qt/blob/main/tests/md_benchmark/README.md) is not measuring the same thing. char* preallocates the memory while Qstring doesn't. And no, even after using 'reserve', it won't be measuring the same thing. char* doesn't append anything while the other two are appending which involves at least 1 branch per function call
关闭于 2024-08-26 4 条评论