Repository navigation
Use std.time.Timer in benchmarks instead of nanoTimestamp - #145
Conversation
WalkthroughBoth benchmark files replaced manual nanoTimestamp() pairs with Timer-based elapsed time measurement. Round-trip latencies now record via timer.read() instead of explicit end-start subtraction. Control flow and measurement patterns remain unchanged. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (4)
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 |
Summary
echo_server.zigandping_pong.zigto usestd.time.Timerinstead ofstd.time.nanoTimestamp()concurrent_queue_bench.zigwas already using the Timer APIChanges
Timer.start()andtimer.read()