非常坏

This commit is contained in:
shenjack 2024-05-25 15:15:29 +08:00
parent f6c32973ac
commit 5b416e076a
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,8 @@
- 现在可以直接使用 `--core-pick` 选项来选择核心了
- 并且单线程模式下效果和 benchmark 模式下一样了
> 然后我准备改成内置多进程模式
### 0.3.0
`--bench-core` 改成了 `--core-pick`

View File

@ -39,6 +39,9 @@ pub struct Command {
/// 单线程模式模式下的核心亲和性核心号 (从 0 开始)
#[arg(long = "core-pick", default_value_t = 0)]
pub pick_core: usize,
/// 是否是子进程
#[arg(short = 's')]
pub is_sub_process: bool,
}
impl Command {
@ -121,7 +124,6 @@ fn main() {
info!("队伍名: {}", cli_arg.team);
info!("输出文件名: {:?}", out_path);
info!("预期状态输出时间间隔: {} 秒", cli_arg.report_interval);
info!("是否启动 benchmark 模式: {}", cli_arg.bench);
cacluate::start_main(cli_arg, out_path);