-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(memory): release unused size when purging app (#79)
In addition to the change described in PR title, this also introduces the `benchmark_client` to test the correctness for the server, which is used to check whether the data is purged when the app is timeout.
- Loading branch information
Showing
7 changed files
with
296 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use anyhow::Result; | ||
use tokio::time::Instant; | ||
use uniffle_worker::proto::uniffle::shuffle_server_client::ShuffleServerClient; | ||
use uniffle_worker::write_read_for_one_time; | ||
|
||
// This is a general benchmark client for apache uniffle server, | ||
// you could use different concurrency to test the performance | ||
|
||
// todo: implement more options to control the concurrency and batch data size | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<()> { | ||
let port = 21100; | ||
let host = "0.0.0.0"; | ||
|
||
let timer = Instant::now(); | ||
let client = ShuffleServerClient::connect(format!("http://{}:{}", host, port)).await?; | ||
write_read_for_one_time(client) | ||
.await | ||
.expect("failed to test write -> read."); | ||
|
||
println!("cost [{}] ms", timer.elapsed().as_millis()); | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.