3 ms·
If you just want to run some CPU bound code as fast as possible, virtualisation has low overhead. But if you are doing a lot of communication between the scrip
by eru 3y ago
If you just want to run some CPU bound code as fast as possible, virtualisation has low overhead.
But if you are doing a lot of communication between the script and the host system, I'm not sure virtualisation does so well?
- fwsgonzo 3y agoNo, as the author of TinyKVM, the overheads of entering and leaving KVM is not the same order of magnitude as SFI. TinyKVM requires 2-3 microseconds to enter and leave, which is the lowest I ever managed to get while it still being robust and dependable sandbox. For some, that might seem really low, but keep in mind that libriscv which is the backbone of RVScript has 3 nanoseconds overhead.
- eru 3y agoThanks!