Alanxtl opened a new pull request, #777:
URL: https://github.com/apache/dubbo-go-pixiu/pull/777

   ref: https://github.com/apache/dubbo-go-pixiu/issues/699
   
   benchmark result:
   
   ```
   goos: linux
   goarch: amd64
   pkg: github.com/apache/dubbo-go-pixiu/pkg/common/router
   cpu: Intel(R) Core(TM) Ultra 5 125H
   BenchmarkRoute_ReadThroughput/old/locked-read-30k-18                     
4514            235420 ns/op           14805 B/op          7 allocs/op
   BenchmarkRoute_ReadThroughput/new/rcu-read-30k-18                       
20036             59286 ns/op             309 B/op          6 allocs/op
   BenchmarkRoute_ReadParallel/old/parallel-30k-18                         
26464             38487 ns/op           14981 B/op          7 allocs/op
   BenchmarkRoute_ReadParallel/new/parallel-30k-18                        
150295              8608 ns/op             310 B/op          6 allocs/op
   BenchmarkReload_Latency/old/reload-1percent-30k-18                       
1048           1195854 ns/op          639462 B/op       6414 allocs/op
   BenchmarkReload_Latency/new/reload-1percent-30k-18                       
2712            388260 ns/op          301038 B/op        902 allocs/op
   BenchmarkRoute_100k_ReadThroughput/old/locked-read-100k-18               
1035           1328345 ns/op           62298 B/op          8 allocs/op
   BenchmarkRoute_100k_ReadThroughput/new/rcu-read-100k-18                  
6441            195128 ns/op             310 B/op          6 allocs/op
   BenchmarkRoute_100k_ReadParallel/old/parallel-100k-18                    
6589            151978 ns/op           63812 B/op          8 allocs/op
   BenchmarkRoute_100k_ReadParallel/new/parallel-100k-18                   
52047             23143 ns/op             308 B/op          6 allocs/op
   BenchmarkReload_100k_Latency_1Percent/old/reload-1percent-100k-18            
     294           4291373 ns/op         2066465 B/op      21099 allocs/op
   BenchmarkReload_100k_Latency_1Percent/new/reload-1percent-100k-18            
     804           2293069 ns/op         1292826 B/op       7774 allocs/op
   BenchmarkRouteByPathAndName/old/RouteByPathAndName-18                        
  590556              1773 ns/op             765 B/op         14 allocs/op
   BenchmarkRouteByPathAndName/new/RouteByPathAndName-18                        
  942544              1272 ns/op             429 B/op          9 allocs/op
   PASS
   ok   github.com/apache/dubbo-go-pixiu/pkg/common/router      28.993s
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to