(profile: str)
| 91 | |
| 92 | |
| 93 | def cargo_build(profile: str) -> float: |
| 94 | if profile == "dev": |
| 95 | command = [ |
| 96 | "cargo", |
| 97 | "build", |
| 98 | "--package", |
| 99 | BENCHMARK_PACKAGE, |
| 100 | "--bin", |
| 101 | "dfbench", |
| 102 | ] |
| 103 | else: |
| 104 | command = [ |
| 105 | "cargo", |
| 106 | "build", |
| 107 | "--profile", |
| 108 | profile, |
| 109 | "--package", |
| 110 | BENCHMARK_PACKAGE, |
| 111 | "--bin", |
| 112 | "dfbench", |
| 113 | ] |
| 114 | return timed_run(command) |
| 115 | |
| 116 | |
| 117 | def cargo_clean(profile: str) -> None: |