Closed aftabnaveed closed 6 years ago
Personally I haven't done any benchmarking with regard to that.
Yet I wouldn't want to bet on which method is faster; probably both have their advantages.
I agree that per se the HTTP connection adds some overhead, yet hypernova is a service that keeps running for a while ... and hence V8's JIT will kick in an probably yield faster code. Also you don't have to care for small startup times as V8 isn't reinitialized on each and every request.
Yet setup with in-memory VM is probably easier (once you have php-v8js running) as there are no external dependencies (which might not be available when needed). However you have to especially take care for specialized heap snapshots so that (lack of) startup performance doesn't bite you.
Today I came across this view rendering service by Airbnb https://github.com/airbnb/hypernova wherein their FAQs they say:
Since PHP V8js is in memory solution as opposed to the hypernova by Airbnb I wonder if anyone has benchmarked the results? I doubt that any HTTP connection will be faster than in-memory solution like v8js.