FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour WebSocket + Harbour + FiveWin: Timing Resolution Becomes the Bottleneck
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
WebSocket + Harbour + FiveWin: Timing Resolution Becomes the Bottleneck
Posted: Thu Jan 08, 2026 01:24 AM

Hello friends,

Just a short observation from an end-to-end test:

In a setup with
MySQL โ†’ Node.js โ†’ WebSocket โ†’ Harbour โ†’ FiveWin xBrowse,
the measured RTT sometimes shows 0 ms.

This is not a bug and not a fake result.

It simply means:

The standard millisecond timer resolution is already too coarse.

The full chain (SQL โ†’ JSON โ†’ WS โ†’ Harbour โ†’ UI) is so fast that it completes within a single millisecond for typical paging sizes.

Once the payload gets larger (e.g. 500 records / 30 KB JSON), RTT becomes measurable again (โ‰ˆ10โ€“20 ms).

Conclusion:
The combination is just extremely fast โ€” fast enough that the measurement method becomes the limiting factor, not the architecture.

Best regards
Otto

The interesting part is how little Harbour code is needed.

Continue the discussion