-
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.
Updated README; Trained text classifier for testing purposes; Ran mor…
…e benchmarks
- Loading branch information
1 parent
a8d8a91
commit 8d2fc85
Showing
6 changed files
with
462 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
Test 1: | ||
|
||
20 clients, 10 request / client, HungryIris (1 sec burning) | ||
20 clients, 10 request / client, HungryIris (1 sec CPU burning) | ||
|
||
ML_POOL: 2 workers - 116 sec | ||
ML_POOL: 4 workers - 74 sec | ||
ML_POOL: 6 workers - 70 sec | ||
ML_POOL: 11 workers - 50 sec | ||
|
||
SYNC: 222 sec | ||
|
||
|
||
MLPool overhead | ||
|
||
------------------------------------------------------------------------------ | ||
How much latency MLPool introduces? (examples/estimate_latency_mlpool_adds.py) | ||
|
||
Scoring CPU intensive model 100 times synchronously (1 job at a time) | ||
Scoring CPU intensive model (1 sec scoring time) 100 times synchronously (1 job at a time) | ||
|
||
Direct scoring: 110 sec | ||
Scoring on the pool (1 worker): 103 sec | ||
Scoring on the pool asyncio (1 worker): 109 sec # Just making sure it matches | ||
|
||
The MLPool logic doesn't seem to introduce any overhead, it even seems to speed | ||
things up slightly (interesting) | ||
|
||
|
||
------------------------------------------------------------------------------ | ||
Scoring NOT CPU intensive model (ms scoring) 1000 times synchronously (1 job at a time) | ||
|
||
Direct scoring: 0.33 sec | ||
Scoring on the pool (1 worker): 12 sec | ||
Scoring on the pool asyncio (1 worker): 6 sec (interesting, why?) | ||
|
||
If a model takes ms to score, DO NOT use MLPool. All associated overhead will | ||
only slow things down. |
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.