robertkrimen / otto

A JavaScript interpreter in Go (golang)
http://godoc.org/github.com/robertkrimen/otto
MIT License
8.01k stars 584 forks source link

is otto faster or goja? #525

Closed sprappcom closed 2 months ago

sprappcom commented 2 months ago

what's the major differences? i understand otto is pure golang to interpret js

i've tested otto and it seemed to be faster and uses lesser resources but goja mentioned it's at least 6-7x faster.

possible to mention what's the major difference?

stevenh commented 2 months ago

I'm not familiar with goja I'm afraid.

As each use case is different, I would recommend benchmarking your case if performance is the main criteria.