NewsCrawler.org

moejs, a pure Go JavaScript engine, claims to beat C-based QuickJS in benchmarks

moejs is a JavaScript runtime written in pure Go. Version 0.1.0 was released on 9 November 2026 by Calcium-Ion, a maintainer of new-api. It solves a narrow problem: running many JavaScript plugins inside a Go program, with a separate sandbox[1] for each request. The host, new-api, is an AI gateway, and one request passes through several plugin hooks.

The author reports that on the V8 benchmark suite v7, moejs scored 1429 points across eight programs, against 1058 for the C-based QuickJS[2] on the same machine, which is 1.35 times higher. In a plugin test with ten new-api tasks and 8 concurrent requests, moejs handled 2.9 times as many requests per second as QuickJS for a 100,000-token Agent request, and 8.6 times as many for a request with an 8 MiB image. For small requests, QuickJS was 7% faster.

Plugins see only the JavaScript standard library and the globals the host installs, and imports go through host-provided Go functions. Built-in objects are frozen, so one plugin cannot change another's arrays. The project is alpha, and its conformance run passed 80,971 test262[3] cases with no failures, while 14,268 cases were skipped because features such as Temporal and decorators are not implemented.

Read the original juejin.cn

Sources

  • CNJuejin ZH

    纯 Go 写的 JS 引擎,跑分超过了 C 语言的 QuickJS

    15 likes774 views0 comments7 saves

Published: First seen: Читать по-русски

Open as a page