Compare commits

...

2 Commits

Author SHA1 Message Date
itsjunetime 3026cbce32 switch benches over to other runtime 2026-03-05 12:05:25 -06:00
itsjunetime a4c04c71b6 Simpler tokio runtime; 3 threads and no io driver 2026-03-05 11:57:18 -06:00
3 changed files with 20 additions and 6 deletions
+2
View File
@@ -1,6 +1,8 @@
# Unreleased
- Added windows support! (thank you to [@jarjk](https://github.com/jarjk) for helping out!)
- Added keybindings (`0`/`$`) to scroll to left or right side of zoomed-in image ([#131](https://github.com/itsjunetime/tdf/pull/131), thank you [@IshDeshpa](https://github.com/IshDeshpa)!)
- (Internal) decreased runtime footprint of tokio runtime
# v0.5.0
+6 -1
View File
@@ -34,7 +34,12 @@ fn for_all_combos(
name: &'static str,
mut f: impl FnMut(&Runtime, BenchmarkId, &'static str, ProtocolType)
) {
let rt = tokio::runtime::Runtime::new().unwrap();
let rt = tokio::runtime::Builder::new_multi_thread()
.worker_threads(3)
.enable_time()
.build()
.unwrap();
for proto in PROTOS {
for file in FILES {
f(
+9 -2
View File
@@ -70,11 +70,18 @@ fn reset_term() {
);
}
#[tokio::main]
async fn main() -> Result<(), WrappedErr> {
fn main() -> Result<(), WrappedErr> {
let rt = tokio::runtime::Builder::new_multi_thread()
.worker_threads(3)
.enable_time()
.build()
.unwrap();
rt.block_on(async move {
let result = inner_main().await;
reset_term();
result
})
}
async fn inner_main() -> Result<(), WrappedErr> {