Tests build the store, parser and password hash crates optimized
Browse files at this commit2b7f1c7f7ce873cf16ca1d154f6885fba0f5a61bParent: 3d78c90- perf
- tests build the store, parser and password hash crates optimized
2 changed files +16 -0
- .config/nextest.toml +5 -0
- Cargo.toml +11 -0
.config/nextest.tomladded+5 -0
| @@ -0,0 +1,5 @@ | |||
| 1 | +[profile.default] | ||
| 2 | +slow-timeout = { period = "60s" } | ||
| 3 | + | ||
| 4 | +[profile.ci.junit] | ||
| 5 | +path = "junit.xml" | ||
Cargo.tomlmodified+11 -0
| @@ -122,6 +122,17 @@ zip = { version = "9.0.3", default-features = false, features = ["deflate"] } | |||
| 122 | # self-update hashes the ~1 GB debug binary at boot; unoptimized sha2 takes ~26 s. | 122 | # self-update hashes the ~1 GB debug binary at boot; unoptimized sha2 takes ~26 s. |
| 123 | opt-level = 3 | 123 | opt-level = 3 |
| 124 | 124 | ||
| 125 | +[profile.dev.package.turso_core] | ||
| 126 | +# store migrations run through turso_core on every test's fresh store; unoptimized it is slow. | ||
| 127 | +opt-level = 3 | ||
| 128 | +[profile.dev.package.turso_parser] | ||
| 129 | +opt-level = 3 | ||
| 130 | +[profile.dev.package.argon2] | ||
| 131 | +# password hashing runs unoptimized in tests and dominates the login tests. | ||
| 132 | +opt-level = 3 | ||
| 133 | +[profile.dev.package.blake2] | ||
| 134 | +opt-level = 3 | ||
| 135 | + | ||
| 125 | [profile.release] | 136 | [profile.release] |
| 126 | lto = true | 137 | lto = true |
| 127 | codegen-units = 1 | 138 | codegen-units = 1 |