Skip to content

Commit 00661d1

Browse files
committed
add flume test compare
1 parent 1b5b334 commit 00661d1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ The performance tests were conducted on a lightweight server with 2 CPU cores an
7373

7474
| Implementation | Producers | Consumers | Completion Time |
7575
|----------------|-----------|-----------|-----------------|
76-
| **tokio-mpmc** | 4 | 4 | 318.360935ms |
77-
| **tokio::sync::mpsc** | 4 | 1 | 987.390354ms |
78-
| **tokio-mpmc IO** | 4 | 4 | 4.495057117s |
79-
| **tokio::sync::mpsc IO** | 4 | 1 | 7.671314196s |
76+
| **tokio-mpmc** | 4 | 4 | 360.375444ms |
77+
| **flume::bounded** | 4 | 4 | 681.909465ms |
78+
| **tokio::sync::mpsc** | 4 | 1 | 966.765734ms |
79+
| **tokio-mpmc IO** | 4 | 4 | 4.947700184s |
80+
| **flume::bounded IO** | 4 | 4 | 7.535781974s |
81+
| **tokio::sync::mpsc IO** | 4 | 1 | 8.144663516s |
8082

8183
These results demonstrate the efficiency of tokio-mpmc in handling multiple producers and consumers compared to tokio::sync::mpsc.
8284

0 commit comments

Comments
 (0)