-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cohttp_lwt_unix: make benchmark more realistic This change is based on inhabitedtype/httpaf#200 in which @vouillon reasonably points out that it is unrealistic to assume that the request handler responds immediately. The benchmark is modified to yield inside the request handler in order to simulate the effect of an hypotetical db request. Signed-off-by: Marcello Seri <[email protected]> * Add yield in the handler of the lwt examples Signed-off-by: Marcello Seri <[email protected]> * Add yield in the nethttp-go example The function is documented here: https://golang.org/pkg/runtime/#Gosched Signed-off-by: Marcello Seri <[email protected]> * effects_benchmark: reindent and comment out unused code mainly to reduce a number of warnings in the build Signed-off-by: Marcello Seri <[email protected]>
- Loading branch information
Showing
5 changed files
with
25 additions
and
20 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
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