You can measure input latency relatively easily, but it's not as useful without a frame of reference. Here are a couple internet posts on doing exactly that:
https://danluu.com/term-latency/
http://renderingpipeline.com/2013/09/measuring-input-latency...
If you're not wanting to go out of your way to measure it, though, there's a pretty straightforward way you can get a feel for it: Pay attention to when the glyph appears on the screen, versus when the click of the keypress happens. For example, in xedit, I press 't', and the appearance of the glyph occurs almost simultaneously with the click. The click and the appearance happen much more noticeably asynchronously with Electron applications, including this one.
We definitely haven't optimized quite as much as the VSCode team, but not being fully optimized means I can still improve perf for our users (myself included), which I'm always happy to do!