Title: docs: Complex library-level benchmarks (post int64 fast path) by tannevaled · Pull Request #2 · go-ruby-complex/docs · GitHub
Open Graph Title: docs: Complex library-level benchmarks (post int64 fast path) by tannevaled · Pull Request #2 · go-ruby-complex/docs
X Title: docs: Complex library-level benchmarks (post int64 fast path) by tannevaled · Pull Request #2 · go-ruby-complex/docs
Description: Summary Adds the dated library-level benchmark section to performance.md and records the numbers after the go-ruby-complex/complex int64 fast path (complex#1). The same workload runs through the pure-Go library (via its Go API) and each reference runtime's own Complex; run.sh verifies every runtime byte-identical to MRI before any timing. What changed Integer add and mul — the only real gaps in the first run (6.46× / 9.84× vs MRI) — now run faster than MRI (0.47× / 0.65×) thanks to the inline-int64 fast path. abs also drops to 0.25× because the inline integer value feeds Float64 directly. The analysis section is rewritten to describe the fast path (int64 arithmetic + math/bits overflow detection with exact big.Int promotion) and to record that the former gap is closed with no loss of exactness or MRI fidelity. Measured on Apple M4 Max, best-of-25, ns/op; every runtime passed the byte-identical-to-MRI gate. Note for the maintainer benchmarks/go/go.mod still pins the pre-fast-path lib pseudo-version (v0.0.0-20260629153304-ebcd523ce6cf). After complex#1 merges, bump it to the new pseudo-version so the committed harness builds the optimized code. (The numbers in this PR were measured against the fast-path lib via a local replace, not committed.) 🤖 Generated with Claude Code
Open Graph Description: Summary Adds the dated library-level benchmark section to performance.md and records the numbers after the go-ruby-complex/complex int64 fast path (complex#1). The same workload runs through the pu...
X Description: Summary Adds the dated library-level benchmark section to performance.md and records the numbers after the go-ruby-complex/complex int64 fast path (complex#1). The same workload runs through the pu...
Opengraph URL: https://github.com/go-ruby-complex/docs/pull/2
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:280a6602-8de8-420b-c9d3-0208a270b04a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A532:339D75:1C1DB9:27B09A:6B040646 |
| html-safe-nonce | d174192d569ee0650f6b0e146560281bc505835129a6836321cf529a60b3d3e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTMyOjMzOUQ3NToxQzFEQjk6MjdCMDlBOjZCMDQwNjQ2IiwidmlzaXRvcl9pZCI6IjIyNTMwNzE0MDQ5NzMxNjQxMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 464c7984bf690baf0bc06b63a46312d9747a3a69c0ac685556d0b10b928ed9de |
| hovercard-subject-tag | pull_request:3986909351 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/go-ruby-complex/docs/pull/2/files |
| twitter:image | https://avatars.githubusercontent.com/u/11405852?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11405852?s=400&v=4 |
| og:image:alt | Summary Adds the dated library-level benchmark section to performance.md and records the numbers after the go-ruby-complex/complex int64 fast path (complex#1). The same workload runs through the pu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/go-ruby-complex/docs git https://github.com/go-ruby-complex/docs.git |
| octolytics-dimension-user_id | 297925697 |
| octolytics-dimension-user_login | go-ruby-complex |
| octolytics-dimension-repository_id | 1284764747 |
| octolytics-dimension-repository_nwo | go-ruby-complex/docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1284764747 |
| octolytics-dimension-repository_network_root_nwo | go-ruby-complex/docs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width