ka-snap1 opened a new pull request, #1063:
URL: https://github.com/apache/dubbo-go-pixiu/pull/1063

   <!--  Thanks for sending a pull request! 
   -->
   
   **What this PR does**:
   优化maglev的性能
   **Which issue(s) this PR fixes**:
   <!--
   *Automatically closes linked issue when PR is merged.
   Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
   _If PR is about `failing-tests or flakes`, please post the related 
issues/tests in a comment and do not use `Fixes`_*
   -->
   Fixes #1045
   
   **Special notes for your reviewer**:
   测试环境:Go: go1.27.1 linux/amd64. CPU: Intel Core i7-14700HX, 28 logical CPUs.
   benchmark测试结果如下:
   | Hosts | Slots | Legacy ms/op | On-demand ms/op | Speedup | Legacy B/op | 
On-demand B/op | Allocation bytes reduction | Allocs/op: old → new |
   |---:|---:|---:|---:|---:|---:|---:|---:|---:|
   | 1 | 1009 | 0.035 | 0.032 | 1.10× | 20,888 | 16,776 | 19.7% | 7 → 6 |
   | 1 | 10007 | 0.320 | 0.298 | 1.07× | 205,208 | 164,232 | 20.0% | 7 → 6 |
   | 32 | 1009 | 0.379 | 0.146 | 2.60× | 157,768 | 26,184 | 83.4% | 132 → 100 |
   | 32 | 10007 | 2.414 | 0.691 | 3.49× | 1,478,587 | 167,352 | 88.7% | 72 → 40 
|
   | 256 | 1009 | 1.753 | 0.266 | 6.60× | 1,101,640 | 48,968 | 95.6% | 580 → 
324 |
   | 256 | 10007 | 10.089 | 4.178 | 2.41× | 10,685,975 | 196,112 | 98.2% | 546 
→ 290 |
   | 1024 | 1009 | 5.966 | 0.653 | 9.14× | 4,338,546 | 127,856 | 97.1% | 2118 → 
1094 |
   | 1024 | 10007 | 27.173 | 4.808 | 5.65× | 42,234,426 | 275,000 | 99.3% | 
2084 → 1060 |
   等价性测试已通过
   另外,可以把对gost中addBatch的引用(也就是issue中第一个问题)放在这个pr中吗?还是需要另开一个pr
   **Does this PR introduce a user-facing change?**:
   <!--
   If no, just write "NONE" in the release-note block below.
   If yes, a release note is required:
   Enter your extended release note in the block below. If the PR requires 
additional action from users switching to the new release, include the string 
"action required".
   -->
   ```release-note
   NONE
   ```


-- 
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