Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于压力测试的疑问 #10

Open
kongxiangchx opened this issue Jan 12, 2023 · 1 comment
Open

关于压力测试的疑问 #10

kongxiangchx opened this issue Jan 12, 2023 · 1 comment

Comments

@kongxiangchx
Copy link

程序中很大一部分时间浪费在了多余的控制台输出,如果把这些注释掉,测出的结果要好上不少。

@mmfoxred
Copy link

mmfoxred commented Apr 3, 2023

实际开发中主要写日志文件,可能不会输出到屏幕。
某些调试信息在正式上线后也会调整日志等级,不会显示的。
刚刚测了一下,直接显示在控制台中和重定向到文件的是速度差异的。(均为10W条 随机插入)
$ ./stress_test
insert elapsed:2.93465
$ ./stress_test > test.log
insert elapsed:0.752208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants