Open kalpanathakur08 opened 4 years ago
100 Get, loop 10 times
----0-----
Single connection time :: 374.310403ms
Pool connection time 5.801515553s
----1-----
Single connection time :: 372.129675ms
Pool connection time 659.972796ms
----2-----
Single connection time :: 375.152791ms
Pool connection time 666.440753ms
----3-----
Single connection time :: 380.741529ms
Pool connection time 684.330146ms
----4-----
Single connection time :: 379.017799ms
Pool connection time 662.868172ms
----5-----
Single connection time :: 379.667604ms
Pool connection time 666.33727ms
----6-----
Single connection time :: 379.812183ms
Pool connection time 664.622033ms
----7-----
Single connection time :: 382.743076ms
Pool connection time 664.403443ms
----8-----
Single connection time :: 382.961919ms
Pool connection time 665.193827ms
----9-----
Single connection time :: 377.379946ms
Pool connection time 662.831724ms
1000 Get, loop 10 times
----0-----
Single connection time :: 1.34967213s
Pool connection time 18.247864785s
----1-----
Single connection time :: 1.292962257s
Pool connection time 13.080666451s
----2-----
Single connection time :: 1.291708217s
Pool connection time 13.080030813s
----3-----
Single connection time :: 1.287039897s
Pool connection time 13.099999333s
----4-----
Single connection time :: 1.254268393s
Pool connection time 13.092294845s
----5-----
Single connection time :: 1.287178614s
Pool connection time 13.103195055s
----6-----
Single connection time :: 1.300647412s
Pool connection time 13.07716571s
----7-----
Single connection time :: 1.26925581s
Pool connection time 13.071782297s
----8-----
Single connection time :: 1.319527638s
Pool connection time 13.072152108s
----9-----
Single connection time :: 1.311900871s
Pool connection time 13.058643805s
I am trying to use the gremtune pool. I did POC using single client connection vs pool. My understanding was pool must perform better given there's pool of connections but seen single client connection is operating better than pool.
here's my code, please suggest if I am missing anything