Skip to content

Novis compared with the top languages for the web

This page compares Novis with PHP, Bun, Go, Node.js, .NET and Python. Each language runs the same small web programs. One command measures all seven servers on one machine, and anybody can run it.

The page compares web servers only. Novis has no REPL (an interactive prompt that runs code line by line). It also has no library for numbers or machine learning, like the ones Python has.

The page has four parts:

  • Speed and memory: how many requests each server answers, and how much memory it uses.
  • More than one CPU core: how each server uses more cores.
  • When something goes wrong: what happens to requests during a deploy, or when one request runs away.
  • Features: a table of things a web server needs, and which server has each one.

Each language runs as a web server in its own container. The same nginx server is in front of each one. nginx handles TLS, so every request is sent over HTTPS. Each server gets the same number of CPU cores, and only one server runs at a time.

  • Novis runs with nvs serve.
  • PHP runs with PHP-FPM, with opcache turned on.
  • Bun runs with Bun.serve.
  • Go runs with the net/http package.
  • Node.js runs with the node:http module. The node:cluster module starts one process for each core.
  • .NET runs an ASP.NET Core program on Kestrel, the web server that comes with .NET.
  • Python runs a program with uvicorn, a web server for Python. It uses CPython 3.15.2, the standard build of Python.

Python’s standard library has no web server for production use. So the Python programs need uvicorn, which is not part of Python. Every other server uses only what comes with its language.

Each server runs with its default settings. When a setting is needed for a test, the page says which one. When a server stops, Docker starts it again. Servers in production run the same way.

Each program is written the way the documentation of its language shows. Before a test is timed, all servers must return the same answer for the same request. A server that returns a different answer gets no number.

This is the machine and the run:

Speed tests run on
2026-11-20
Feature table run on
2026-11-21
CPU
AMD Ryzen 7 7800X3D 8-Core Processor
Cores
16
Operating system
win32-10.0.26200-x86_64
CPUs for each server
1
Requests in each test
20,000, best of 5

The feature table can have results from more than one day. A new run measures a row again only when the row’s programs or the server changed. Otherwise it keeps the earlier result. Novis changes with every new version, so its results are measured again in every run.

The absolute numbers depend on the machine. A faster machine gives bigger numbers for every server. The result is the relation between the servers.

The number in the circle before a bar is the server’s place, and place 1 is the best result. The coloured bars are the best results. The margin of error is about 3%. Two results closer than that get the same place, and the next place is skipped.

Every number is the middle result of several runs. Each speed test runs 5 times, and the runs take turns between the servers. The tests in “When something goes wrong” run 3 times each. A slow moment on the machine then affects every server in the same way.

Novis’s bars have a border, so you can find them quickly.

Each server has two bars in each test. The first bar is requests per second, and the fastest server has the full bar. The second bar is peak memory, and the server that used the most memory has the full bar. The best results are the most requests and the least memory.

Hello

Returns a short text for every request. 64 connections at once.

  • requests per second, p99 3.7 ms1Bun100%41,736
    220% more15 MiBpeak memory, less is better
  • requests per second, p99 3.8 ms2Go93%38,691
    1least13 MiBpeak memory, less is better
  • requests per second, p99 3.5 ms3Novis84%34,995
    338% more17 MiBpeak memory, less is better
  • requests per second, p99 32.2 ms4Node.js63%26,296
    55.2× more65 MiBpeak memory, less is better
  • requests per second, p99 13.4 ms5Python55%23,010
    42.5× more32 MiBpeak memory, less is better
  • requests per second, p99 76.7 ms6.NET38%15,775
    65.8× more73 MiBpeak memory, less is better
  • requests per second, p99 80.6 ms7PHP22%9,029
    78.3× more104 MiBpeak memory, less is better

JSON API

Reads an order as JSON, checks it, and returns the order with its totals as JSON. 64 connections at once.

  • requests per second, p99 6.9 ms1Bun100%31,069
    232% more19 MiBpeak memory, less is better
  • requests per second, p99 8.5 ms2Go66%20,358
    1least14 MiBpeak memory, less is better
  • requests per second, p99 6.2 ms3Novis55%17,114
    345% more21 MiBpeak memory, less is better
  • requests per second, p99 33.6 ms4Node.js52%16,118
    54.7× more67 MiBpeak memory, less is better
  • requests per second, p99 27.5 ms5Python34%10,574
    42.2× more32 MiBpeak memory, less is better
  • requests per second, p99 83.8 ms6.NET29%8,980
    65.2× more74 MiBpeak memory, less is better
  • requests per second, p99 89.1 ms7PHP18%5,579
    78.3× more119 MiBpeak memory, less is better

HTML page

Builds a page of 100 products and escapes a search term in it. 64 connections at once.

Go builds this page with html/template, the package its documentation names for HTML. html/template looks up the type of each value while it builds the page. That takes more time for each page than the other servers need.

  • requests per second, p99 7.8 ms1Bun100%19,810
    364% more25 MiBpeak memory, less is better
  • requests per second, p99 9.5 ms2Novis59%11,743
    241% more21 MiBpeak memory, less is better
  • requests per second, p99 38.2 ms3Node.js54%10,789
    65.3× more79 MiBpeak memory, less is better
  • requests per second, p99 81.9 ms4.NET42%8,229
    55.1× more76 MiBpeak memory, less is better
  • requests per second, p99 28.5 ms5Python30%5,888
    42.2× more33 MiBpeak memory, less is better
  • requests per second, p99 92.9 ms6PHP23%4,592
    78.8× more132 MiBpeak memory, less is better
  • requests per second, p99 40.1 ms7Go18%3,554
    1least15 MiBpeak memory, less is better

Waiting

Waits 50 ms on a timer for each request, with 1000 connections open. 1,000 connections at once.

  • requests per second, p99 426.6 ms1Bun100%13,881
    1least33 MiBpeak memory, less is better
  • requests per second, p99 438.4 ms2Go97%13,414
    357% more52 MiBpeak memory, less is better
  • requests per second, p99 443.3 ms2Novis96%13,270
    42.3× more77 MiBpeak memory, less is better
  • requests per second, p99 483.3 ms4Python90%12,558
    234% more44 MiBpeak memory, less is better
  • requests per second, p99 448.8 ms5Node.js82%11,396
    63.6× more118 MiBpeak memory, less is better
  • requests per second, p99 421.5 ms6.NET62%8,619
    52.9× more94 MiBpeak memory, less is better
  • requests per second, p99 1327.5 ms7PHP28%3,916
    766× more2177 MiBpeak memory, less is better

Novis runs every request in its own isolate: a separate memory area with a CPU limit and a memory limit. Bun, Go, Node.js, .NET and Python have no CPU limit and no memory limit for one request. The rows loop, memory and flood below show what that changes.

This isolation is extra work on every request, and the other servers do not do it. Its cost is part of each Novis result above.

p99 is the time within which 99 of 100 requests were answered. Peak memory is the most memory the server’s container used during the test. Memory matters as much as speed when you pay for a server, because less memory per server means more servers on one machine.

When servers in different languages reach about the same speed, the language is probably not the limit. The limit is then the rest of the setup: the nginx proxy, HTTPS and the network between the containers.

A server can use more than one CPU core in two ways. It can answer many requests at the same time, each on its own core. Or one request can split its own work into parts that run at the same time.

This test checks if a server gets faster when it has more CPU cores. Each request runs a loop that takes about one millisecond of CPU time in most languages. The test runs each server with one core and then with four cores.

Each bar shows how many times more requests per second the server answers with four cores than with one. With four cores, four times is the most possible, and that is the full bar.

The HTML page test is not used here. Some servers answer it so fast that nginx becomes the limit with four cores. The test would then measure nginx and not the server.

  • Novis4.01×
  • Bun3.97×
  • Go3.90×
  • Node.js3.90×
  • PHP3.89×
  • .NET3.86×
  • Python3.68×

All seven servers use the cores. Novis, PHP, Go, .NET and Python do it with no extra code. One Bun or Node.js process runs your code on one core. So the Bun program starts one Bun process for each core. The Node.js program uses node:cluster to start one process for each core.

Each request runs the same loop in four parts. The test times one part alone, and then all four parts on four cores. Each language has two bars: the time for one part, and the time for all four parts. A shorter bar is faster, and the coloured bar is the fastest time for four parts. Only the time for four parts has a place. When the four parts run at the same time, both bars are about the same length.

  • one partGofastest0.57 s
    1fastest0.59 sfour parts at the same time, with goroutines. Less is better.
  • one part.NET0% slower0.57 s
    10% slower0.59 sfour parts at the same time, with Task.Run. Less is better.
  • one partNode.js15% slower0.66 s
    316% slower0.68 sfour parts at the same time, with worker_threads. Less is better.
  • one partBun23% slower0.70 s
    423% slower0.72 sfour parts at the same time, with Worker. Less is better.
  • one partNovis17% slower0.67 s
    528% slower0.75 sfour parts at the same time, with spawn script … on: "worker". Less is better.
  • one partPython17× slower9.79 s
    619× slower10.88 sfour parts at the same time, with ProcessPoolExecutor. Less is better.

The six languages split the work in different ways:

  • In Novis, each part is a script with its own memory. It gets a copy of its arguments and cannot change the request’s variables. Together, the parts must stay under the request’s memory and CPU limits.
  • In Bun, each part is a Worker with its own memory. Values are copied between them.
  • In Go, each part is a goroutine. All parts share the same memory, so one part can change a value that another part reads.
  • In Node.js, each part is a Worker from node:worker_threads, with its own memory. Values are copied between them.
  • In .NET, each part is a task started with Task.Run. All parts share the same memory.
  • In Python, each part runs in its own process from a ProcessPoolExecutor. Values are copied between them. Python threads run one at a time, so threads do not help here.

PHP is not in this chart. PHP-FPM runs one request on one core, and PHP has no built-in way to split it. Novis needs no setting for this. A program may start the scripts in its own app folder. A script in another folder needs that folder in [capabilities.script] spawn.

These tests send steady requests to each server while something goes wrong. The charts show what happened to those requests.

The servers take a new version of a program in two different ways:

  • Live deploy: Novis and PHP. You copy the new source files to the server, and the next request uses them. There is no build, no restart and no reload.
  • Build and restart: Bun, Go, Node.js, .NET and Python. The server loads new code only when it restarts. Go and .NET also need a new build first.

Each chart shows the two groups in separate boxes, and the place counts inside each box.

Each test puts a new version of a program on a running server. Requests arrive the whole time, and the test checks every page it gets back. A failed request is a request that gets an error instead of the page. A mixed page is built partly from old files and partly from new files. Each bar is every request a server got during the test. The number at the end is the share of complete pages.

The new version is 200 source files. They are copied over the old files, one after another, which takes about 2 seconds.

Complete pageFailed requestMixed page

Live deployNovis and PHP use new source files as soon as they are copied to the server. There is no build, no restart and no reload.
  • 1Novis100%195,364 requests: 195,364 complete, 0 failed, 0 mixed
  • 2PHP48.0%127,513 requests: 61,225 complete, 0 failed, 66,288 mixed
Build and restartBun, Go, Node.js, .NET and Python load new code only when the server restarts. Go and .NET also need a new build first.
  • 1Go98.8%107,119 requests: 105,913 complete, 1,206 failed, 0 mixed
  • 2Bun99.4%276,872 requests: 275,382 complete, 1,490 failed, 0 mixed
  • 3Node.js99.3%276,520 requests: 274,795 complete, 1,725 failed, 0 mixed
  • 4.NET97.7%80,242 requests: 78,422 complete, 1,820 failed, 0 mixed
  • 5Python97.5%157,716 requests: 153,869 complete, 3,847 failed, 0 mixed

Novis waits until no file has changed for 1 second. Then it switches to the whole new program at once. In this test, it used the new version 1.2 seconds after the copy, and every page was complete. PHP had no failed request, but 46% of its pages mixed old and new files. PHP checks each file on its own, so during the copy some files are new and others are still old. The other five servers need a restart, and some requests failed during each restart.

The new version is 2,000 source files, copied the same way. This takes about 20 seconds.

Complete pageFailed requestMixed page

Live deployNovis and PHP use new source files as soon as they are copied to the server. There is no build, no restart and no reload.
  • 1Novis100%278,168 requests: 278,168 complete, 0 failed, 0 mixed
  • 2PHP8.6%242,921 requests: 20,960 complete, 0 failed, 221,961 mixed
Build and restartBun, Go, Node.js, .NET and Python load new code only when the server restarts. Go and .NET also need a new build first.
  • 1Go98.0%58,494 requests: 57,373 complete, 1,121 failed, 0 mixed
  • 2.NET97.1%50,795 requests: 49,336 complete, 1,459 failed, 0 mixed
  • 3Node.js99.6%409,176 requests: 407,619 complete, 1,557 failed, 0 mixed
  • 4Bun99.6%407,030 requests: 405,406 complete, 1,624 failed, 0 mixed
  • 5Python98.3%353,012 requests: 347,073 complete, 5,939 failed, 0 mixed

Novis used the new version 2.8 seconds after the copy, and every page was complete. PHP mixed old and new files in 91% of its pages. The copy took longer on PHP’s server, because the copy and PHP’s workers share the one CPU core. The other five servers failed requests during the restart, as in the small deploy.

Many teams deploy a new version this way. The new version is copied to its own folder first. When it is complete, a link named current is switched from the old folder to the new one. The server reads the program through that link. For PHP, nginx uses $realpath_root, as the PHP deploy tools recommend.

Complete pageFailed requestMixed page

Live deployNovis and PHP use new source files as soon as they are copied to the server. There is no build, no restart and no reload.
  • 1Novis100%245,006 requests: 245,006 complete, 0 failed, 0 mixed
  • 1PHP100%151,729 requests: 151,729 complete, 0 failed, 0 mixed
Build and restartBun, Go, Node.js, .NET and Python load new code only when the server restarts. Go and .NET also need a new build first.
  • 1Go98.9%105,809 requests: 104,692 complete, 1,117 failed, 0 mixed
  • 2Node.js99.5%353,276 requests: 351,771 complete, 1,505 failed, 0 mixed
  • 3Bun99.5%373,230 requests: 371,569 complete, 1,661 failed, 0 mixed
  • 4.NET97.7%79,849 requests: 78,074 complete, 1,775 failed, 0 mixed
  • 5Python98.2%228,474 requests: 224,508 complete, 3,966 failed, 0 mixed

Novis and PHP had no failed request and no mixed page. For PHP, switching a link is the safe way to deploy. Novis is also safe when you copy the new files over the old ones. The other five servers still need a restart.

A runaway request is a request that never ends, or one that uses more and more memory. Each test sends steady requests to the server for 15 seconds, and one runaway request together with them. The test checks three things:

  • Did the server stop the runaway request?
  • Did the server keep running?
  • Did any of the other requests fail?

Each bar is all the other requests. The green part was answered, and the red part failed. The line under the bar says what happened to the runaway request. It also says how fast the other requests were answered, compared with the same test without a runaway request. A server that stopped the runaway request and kept running gets a better place than one that did not.

By default, Novis and PHP stop a request at 128 MB of memory or 30 seconds of CPU time. In Novis, these limits are in the [limits] table. In PHP, they are memory_limit and max_execution_time. Bun, Go, Node.js, .NET and Python have no limit for one request.

AnsweredFailed request

  • 1Novis0 failedThe server stopped the runaway request after 0.4 s. 309,723 other requests, 0 failed. They were answered at 92% of the normal speed.
  • 1PHP0 failedThe server stopped the runaway request after 0.0 s. 121,648 other requests, 0 failed. They were answered at 100% of the normal speed.
  • 1.NET0 failedThe server stopped the runaway request after 0.2 s. 250,313 other requests, 0 failed. They were answered at 100% of the normal speed.
  • 4Python1,538 failedThe server crashed and was restarted. 212,640 other requests, 1,538 failed. They were answered at 90% of the normal speed.
  • 4Bun1,684 failedThe server crashed and was restarted. 356,545 other requests, 1,684 failed. They were answered at 90% of the normal speed.
  • 4Node.js1,796 failedThe server crashed and was restarted. 303,356 other requests, 1,796 failed. They were answered at 80% of the normal speed.
  • 4Go1,928 failedThe server crashed and was restarted. 326,287 other requests, 1,928 failed. They were answered at 90% of the normal speed.

Novis and PHP stopped the runaway request, and every other request was answered. .NET has no limit for one request, but it stopped the runaway request too. When .NET could not get more memory, it threw an error in that request, and the server kept running.

Bun, Go, Node.js and Python did not stop the runaway request. The container’s memory limit stopped the whole server, so the open requests failed. Docker then started the server again.

In the feature table, the memory row for Node.js says Your code. A Node.js program can run each request in a Worker with a memory limit (resourceLimits). This limit counts only JavaScript objects. The memory of a Buffer is not counted, so a request can still use all the memory of the server.

Bun has no such limit, because Bun ignores resourceLimits. The program in this test does not use a Worker. It is the plain program that the Node.js documentation shows.

AnsweredFailed request

  • 1Novis0 failedThe server stopped the runaway request after 32 s. 47,359 other requests, 0 failed. They were answered at 14% of the normal speed.
  • 1PHP0 failedThe server stopped the runaway request after 38 s. 92,897 other requests, 0 failed. They were answered at 70% of the normal speed.
  • 3Go0 failedThe runaway request was never stopped. 48,935 other requests, 0 failed. They were answered at 12% of the normal speed.
  • 3.NET0 failedThe runaway request was never stopped. 89,419 other requests, 0 failed. They were answered at 36% of the normal speed.
  • 3Bun48 failedThe runaway request was never stopped. 43,032 other requests, 48 failed. They were answered at 10% of the normal speed.
  • 3Node.js48 failedThe runaway request was never stopped. 42,854 other requests, 48 failed. They were answered at 11% of the normal speed.
  • 3Python48 failedThe runaway request was never stopped. 38,195 other requests, 48 failed. They were answered at 14% of the normal speed.

Each server has one CPU core in this test. Novis stopped the runaway request after 30 seconds of CPU time. Until then, Novis paused the runaway request every 10 ms and ran the other requests, so every other request was answered. PHP stopped the runaway request too.

The other five servers never stopped the runaway request. Go and .NET shared the core between the runaway request and the other requests, so every other request was answered. On Bun, Node.js and Python, the runaway request kept the core, and some other requests failed.

Each row tests one thing a web server needs. A small program for each language tries it, and the result comes from what the server did. A result says what happened in that test. It is not a promise for every program. Each result is one of five values:

  • Built in: the server does it with no setting and no extra code.
  • On by default: a setting does it, and this setting is on when you install the server. You do not need to change anything. The cell names the setting, which you can also use to turn it off.
  • One setting: the server does it after you change one setting. The cell names the setting.
  • Your code: you must write the code yourself, or add a library.
  • No: the server does not do it.

Most Novis settings that are off by default are off for security. A Novis program gets only the access that you give it. The details on this page say why a setting is off, for every language where the reason is known.

Click a result to see the programs for that row. Click See details to read more about a row on this page. The table shows every result, also the rows where another language does better than Novis. On a small screen, you can scroll the table sideways.

FeatureNovisPHPBunGoNode.js.NETPython
Text in an HTML page is always escaped, also when you write it without a template See detailsBuilt inYour codeYour codeYour codeYour codeYour codeYour code
An SQL injection from outside data (request, session, environment, database) is not executed See detailsBuilt inNoNoNoNoNoNo
A secret in the output is found before the program runsBuilt inNoNoNoNoNoNo
An edited source file is served without a restart See detailsBuilt inOn by default
opcache.validate_timestamps
One setting
bun --hot
NoOne setting
node --watch
NoOne setting
uvicorn --reload
A change to the config file applies without a restartBuilt inOne setting
php-fpm reload
Your codeYour codeYour codeYour codeYour code
A new version goes live under load with no failed request and no mixed reply See detailsBuilt inNoNoNoNoNoNo
A big deploy of 2,000 files goes live under load with no failed request and no mixed reply See detailsBuilt inNoNoNoNoNoNo
Switching a "current" link to a new release goes live with no failed request and no mixed reply See detailsBuilt inOn by default
opcache.validate_timestamps
NoNoNoNoNo
Many requests at once are spread over four CPU cores See detailsBuilt inBuilt inYour codeBuilt inYour codeBuilt inBuilt in
Other requests are still answered after one request crashesBuilt inBuilt inBuilt inBuilt inNoBuilt inBuilt in
A request that loops forever is stopped, and other requests are still answered See detailsOn by default
[limits] cpu_time
On by default
max_execution_time
Your codeNoYour codeNoNo
A request that uses too much memory is stopped, and other requests are still answered See detailsOn by default
[limits] memory
On by default
memory_limit
NoNoYour codeBuilt inNo
With more load than it can handle, the server still answers other requests in time, and recovers when the load stopsBuilt inNoNoNoNoBuilt inNo
A form sent from another site is rejectedBuilt inYour codeYour codeYour codeYour codeYour codeYour code
A request that only reads the session does not wait for a slow request of the same visitor See detailsBuilt inYour codeYour codeYour codeYour codeBuilt inYour code
Security headers are sent by defaultOn by default
[http.headers]
Your codeYour codeYour codeYour codeYour codeYour code
Answers 1000 waiting requests on one CPU See detailsBuilt inOne setting
pm.max_children
Built inBuilt inBuilt inBuilt inBuilt in
One request can split its work over four CPU cores See detailsBuilt inNoBuilt inBuilt inBuilt inBuilt inBuilt in

In Novis, every string you print in a request is escaped. To write HTML tags, you use an html template, and the values in it are still escaped. To print raw HTML, the program must use Core\Html\Markup, so it can only happen when you choose it. In Go, html/template escapes, but fmt.Fprintf writes the same text unescaped. In .NET, HtmlEncoder escapes a value, but text written without it is not escaped.

Outside data is every value that comes from outside the program. Examples are the request, the session, environment variables and command line arguments. A reply from another server and values read from a database are outside data too. Novis calls these values tainted. A tainted value in an SQL string is a compile error, so the program never runs with it.

One visitor sends two requests with the same session cookie. The slow request changes a value in the session and then works for 2 seconds. The fast request starts 200 ms later and only reads the session. The chart shows how long the fast request waited for its answer. Bun, Go, Node.js and Python have no sessions without a library, so they are not in the chart.

  • 1Novisfastest3 msThe fast request did not wait for the slow one.
  • 2.NET67% longer5 msThe fast request did not wait for the slow one.
  • 3PHP600× longer1,800 msThe fast request waited for the slow one. Your code can change that: session_start(['read_and_close' => true]) or session_write_close().

PHP locks the session file while a request has the session open. The lock stays until that request ends, so the fast request waits for the slow one. A PHP program can avoid this in two ways. session_start(['read_and_close' => true]) reads the session and closes it at once. session_write_close() saves the session and releases the lock before the slow work starts.

Novis reads the session once when the request starts. It writes the session once when the request ends, and only if it changed. No request waits for another one. This has a cost. Two requests of one visitor can change the session at the same time. Then the session from the request that ends last is kept, and the change of the other request is lost.

ASP.NET Core does not lock the session either. Its documentation says the same: when two requests change the session at the same time, the last one wins.

PHP-FPM answers each request in its own worker process. By default, it starts at most 5 workers. The PHP configuration file says that this default is for a server with few resources. This test sets pm.max_children high enough for 1000 requests at the same time.

Novis checks for edited source files while it runs. No setting turns this check off. PHP checks for edited files by default, with opcache.validate_timestamps. Every test on this page runs PHP with this check on. By default, both servers look for edited files every 2 seconds.

Bun shows an edit only when it runs with bun --hot. Node.js needs node --watch, and Python needs uvicorn --reload. Go and .NET compile the program, so you must build it and start it again.

You need Bun and Docker. Clone the Novis repository and run this command in it:

Terminal window
bun nv bench-compare

The command builds each server, runs each test and prints the results. It takes several minutes. To run the feature table, add --scenarios. To check that everything works with a short run, add --smoke.