Skip to content

Commit

Permalink
Add Test Result
Browse files Browse the repository at this point in the history
  • Loading branch information
jcf94 committed Mar 31, 2019
1 parent b7eda2b commit 6456610
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,15 @@ Continue to be improved ...

Bad ...

The memorypool is protected by std::mutex, maybe this can be improved.
The memorypool is protected by std::mutex, maybe this can be improved.

[Commit b7eda2b](https://github.com/jcf94/RDMA-wheel/commit/b7eda2bd2a1c6f229620dc7cc404355629daec1b):

|Total Bytes|Block Size|Bandwidth|
|-|-|-|
|256 MB|4 KB|130 MB/s|
|256 MB|64 KB|1570 MB/s|
|1 GB|256 KB|4129 MB/s|
|1 GB|1 MB|4413 MB/s|

Seems good.
5 changes: 2 additions & 3 deletions benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ int main(int argc, char* argv[])
RDMA_Endpoint* endpoint = session.ptp_connect(&pre_tcp);

// Prepare data
int total_data = 256 * MB;
int block_data = 4 * KB;
int total_data = 1024 * MB;
int block_data = 1024 * KB;

if (strcmp(argv[1], "s") == 0)
{
Expand All @@ -60,7 +60,6 @@ int main(int argc, char* argv[])
{
//char* test_data = (char*)malloc(total_data);
RDMA_Buffer* test_data = endpoint->bufferalloc(total_data);
printf("%p\n", test_data->buffer());

// Warm Up
// endpoint->set_sync_barrier(total_data);
Expand Down

0 comments on commit 6456610

Please sign in to comment.