Hi all,
I'm currently developing a VPN extension for Chromebook and I'm observing some slow vpn performances.
I'm using the Pixelbook. Without vpn, speed test results are around 100Mbps down. But with vpn, it fluctuates between 15-25 Mbps.
The extension code basically passes the network packets through a websocket to the server and back. There are no packet data modification on js side, just simply passing packets from onPacketReceived API to WS send and WS received to sendPacket API. Both functions are one liners.
I ran a performance test with chrome devtool during vpn session and it shows "system" taking up way more time than scripting calls. I assume this is because the vpnProvider API is working to pass packets to the OS network stack. I sometimes get dbus limit exceeded errors from lastError on sendPacket as well.
Am I reaching the limit of JavaScript based vpnProvider or am I missing something?