You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logging to console significantly affect the QPS of the framework. With the logging middleware, the QPS of the simple hello-world example drops from
Running 10s test @ http://localhost:8000
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.06ms 1.69ms 32.84ms 92.69%
Req/Sec 2.63k 472.73 4.72k 81.59%
105226 requests in 10.10s, 13.05MB read
Requests/sec: 10416.80
Transfer/sec: 1.29MB
to
Running 10s test @ http://localhost:8000
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.93ms 2.38ms 33.97ms 88.50%
Req/Sec 1.36k 287.61 2.21k 74.75%
54088 requests in 10.02s, 6.71MB read
Requests/sec: 5399.07
Transfer/sec: 685.43KB
I think we should give user the choice to choose whether or not use logging middleware.
To solve this, I think we can offer the choice by add a new constructor for app.
like
Furthermore, I think it's better to separate the Logging middleware from the core framework, for example, we could move the tide to the tide-core crate to tide workspace, add a tide-logging crate for tide crate. Like the tree graph below:
The current state of logging is just a starting point to integrate logging into tide, there's a lot of discussion regarding this over at #8 and nothing is concrete yet. I like the idea of separating logging out into it's own crate in the workspace though. Please add your thoughts over at the other discussion as well :)
Logging to console significantly affect the QPS of the framework. With the logging middleware, the QPS of the simple
hello-world
example drops fromto
I think we should give user the choice to choose whether or not use logging middleware.
To solve this, I think we can offer the choice by add a new constructor for app.
like
Furthermore, I think it's better to separate the Logging middleware from the core framework, for example, we could move the
tide
to thetide-core
crate totide
workspace, add atide-logging
crate fortide
crate. Like the tree graph below:The text was updated successfully, but these errors were encountered: