docs: fix install instructions and qualify ARM64 performance claims#58
docs: fix install instructions and qualify ARM64 performance claims#58membphis wants to merge 3 commits into
Conversation
- Replace luarocks install with luarocks make (package not yet published) - Add note about future luarocks.org publication - Qualify ARM64 NEON/PMULL as correctness-tested, benchmarks x86_64 only - Add platform scope note to docs/benchmarks.md Closes #57
|
Warning Review limit reached
Your plan includes 1 review of capacity. Refill in 11 minutes and 10 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughDocumentation corrected to fix broken installation instructions and clarify ARM64 NEON support status. Installation now uses ChangesDocumentation accuracy updates
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Updates documentation to ensure installation instructions are accurate before luarocks.org publication, and to scope ARM64 performance claims to correctness-only (with benchmarks explicitly x86_64-only).
Changes:
- Replace
luarocks install lua-qjsonwith a local-install workflow and add a note about future luarocks.org availability. - Qualify ARM64 NEON/PMULL as correctness-tested (no published perf data) and clarify that published benchmark results are x86_64 only.
- Add an explicit platform-scope note to the benchmarks documentation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Updates install command and qualifies ARM64 performance claim / benchmark scope. |
| docs/benchmarks.md | Adds an explicit x86_64-only scope note for published benchmark data. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
luarocks.org/modules/membphis/lua-qjson is live with 1,657 downloads. Keep the original install instruction; only the ARM64 qualification is needed.
- Add ARM64 parse+access throughput table (cjson comparison) to docs/benchmarks.md - Add arm_bench.lua reproduction script for macOS ARM64 - Label existing sections as x86_64 for clarity - Update platform scope note: ARM now has performance data - Add observation #9 contrasting ARM64 vs x86_64 speedup ratios - 1.8-13.8x over cjson on Apple M4; absolute qjson.parse throughput competitive with x86_64 Zen 2
| ## Status | ||
|
|
||
| Initial implementation complete: scalar + AVX2/PCLMUL + ARM64 NEON/PMULL structural scanner (runtime-dispatched), root-path and cursor APIs, escape-decoded strings, integer/float/bool/typeof/len, FFI panic barrier, and a LuaJIT wrapper. Rust unit/integration tests and Lua busted tests run in CI. The benchmark harness compares against lua-cjson and lua-resty-simdjson. | ||
| Initial implementation complete: scalar, AVX2/PCLMUL, and ARM64 NEON/PMULL structural scanners (runtime-dispatched); root-path and cursor APIs; escape-decoded strings; integer/float/bool/typeof/len accessors; FFI panic barrier; and a LuaJIT wrapper. Rust unit/integration tests and Lua busted tests run in CI. The benchmark harness compares against lua-cjson and lua-resty-simdjson. ARM64 NEON/PMULL is correctness-tested via the scanner cross-check suite; published benchmarks are x86_64 only. |
| ## Status | ||
|
|
||
| Initial implementation complete: scalar + AVX2/PCLMUL + ARM64 NEON/PMULL structural scanner (runtime-dispatched), root-path and cursor APIs, escape-decoded strings, integer/float/bool/typeof/len, FFI panic barrier, and a LuaJIT wrapper. Rust unit/integration tests and Lua busted tests run in CI. The benchmark harness compares against lua-cjson and lua-resty-simdjson. | ||
| Initial implementation complete: scalar, AVX2/PCLMUL, and ARM64 NEON/PMULL structural scanners (runtime-dispatched); root-path and cursor APIs; escape-decoded strings; integer/float/bool/typeof/len accessors; FFI panic barrier; and a LuaJIT wrapper. Rust unit/integration tests and Lua busted tests run in CI. The benchmark harness compares against lua-cjson and lua-resty-simdjson. ARM64 NEON/PMULL is correctness-tested via the scanner cross-check suite; published benchmarks are x86_64 only. |
| > ```sh | ||
| > cargo build --release | ||
| > LUA_PATH='./lua/?.lua;;' DYLD_LIBRARY_PATH=./target/release \ | ||
| > luajit arm_bench.lua |
| -- luajit arm_bench.lua | ||
|
|
| B64_BLOCK = make_b64_block() | ||
| B64_BLOCK_LEN = #B64_BLOCK |
| -- DYLD_LIBRARY_PATH=./target/release LUA_CPATH='./vendor/lua-cjson/?.so;./target/release/lib?.so' \ | ||
| -- luajit arm_bench.lua | ||
|
|
||
| package.cpath = "./vendor/lua-cjson/?.so;./target/release/lib?.so;" .. package.cpath |
关联 Issue
Closes #57
做了什么
luarocks install lua-qjsonwithluarocks make(package not yet published to luarocks.org)docs/benchmarks.mdEnvironment sectionResolved Checklist Items
docs/benchmarks.mdEnvironment table — note x86_64 onlyluarocks lint)如何验证
luarocks lint rockspec/lua-qjson-0.1.0-1.rockspec— rockspec valid, no errorsBreaking Changes
无
Summary by CodeRabbit
Release Notes
luarocks makeas the primary installation method and clarifying the timeline for luarocks.org availability