slv check geyserbench เป็นคำสั่งเบนช์มาร์กของ Solana สำหรับเปรียบเทียบประสิทธิภาพของ Shredstream, gRPC และ RPC เพียงเลือกประเภทการเชื่อมต่อและใส่ endpoint ที่ต้องการเปรียบเทียบ แล้ว CLI จะแสดงอัตราชนะ, p50, p95, p99, ping, firsts และ backfill ไว้ในรายงานเดียว
ติดตั้งก่อน
curl -fsSL https://storage.slv.dev/slv/install | sh
curl -fsSL https://storage.slv.dev/slv/install | sh
คุณใช้คำสั่งนี้ได้ทันทีหลังติดตั้งเสร็จ
การใช้งานพื้นฐาน
slv check geyserbench --help
Usage: slv check geyserbench
Version: 2026.4.3.1321
Description:
Run geyserbench with generated config
Options:
-h, --help - Show this help.
--kind <kind> - Benchmark kind: shredstream | grpc | rpc
--region <region> - Benchmark region for region-aware measurement
--endpoint <endpoint> - Endpoint URL to compare
--transactions <transactions> - Transaction sample size (Default: 10000)
slv check geyserbench --help
Usage: slv check geyserbench
Version: 2026.4.3.1321
Description:
Run geyserbench with generated config
Options:
-h, --help - Show this help.
--kind <kind> - Benchmark kind: shredstream | grpc | rpc
--region <region> - Benchmark region for region-aware measurement
--endpoint <endpoint> - Endpoint URL to compare
--transactions <transactions> - Transaction sample size (Default: 10000)
โหมดโต้ตอบใช้งานง่าย:
slv check geyserbench
? Benchmark kind (shredstream / grpc / rpc): (shredstream) ›
? Region (--region) for accurate measurement: (frankfurt) ›
? First endpoint URL: ›
slv check geyserbench
? Benchmark kind (shredstream / grpc / rpc): (shredstream) ›
? Region (--region) for accurate measurement: (frankfurt) ›
? First endpoint URL: ›
เลือกประเภทการเชื่อมต่อก่อน แล้วระบุภูมิภาค จากนั้นใส่ endpoint ที่ต้องการเปรียบเทียบ
ทำไมการวัดโดยคำนึงถึงภูมิภาคจึงสำคัญ
Solana เป็นเครือข่ายระดับโลก และ validator จะผลัดกันทำหน้าที่ leader ขณะผลิตบล็อก เนื่องจากความเร็วในการกระจายข้อมูลขึ้นอยู่กับว่าคุณอยู่ใกล้ leader ปัจจุบันแค่ไหน ภูมิภาคที่อยู่ใกล้ leader slot จึงสามารถรับข้อมูลได้เร็วกว่า นั่นหมายความว่าการเปรียบเทียบแยกตามภูมิภาคจะให้ภาพที่แม่นยำกว่าการดูเพียงค่าเฉลี่ยทั่วโลก
วิธีนี้มีประโยชน์อย่างยิ่งสำหรับแอปที่ให้บริการทั่วโลก และงานที่ต้องการ latency ต่ำมาก เช่น การซื้อขายความถี่สูง ซึ่งการลดเวลาลงได้แม้เพียง 1 ms ก็มีความหมาย