From 95de3d59c8b5c5a70ea45a2cddc7842347bdc5a7 Mon Sep 17 00:00:00 2001 From: lihaoyi Date: Sun, 19 Jan 2025 01:02:44 +0000 Subject: [PATCH] deploy: 83a784453828f8743c5c1c3d8d88dfe97ce18461 --- index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 5404847fcb..5ebc0dab35 100644 --- a/index.html +++ b/index.html @@ -1354,4 +1354,14 @@

data source

-

Minimal Application (minimalApplicationWithLoom) - Virtual threads show significantly better performance: - ~24x higher throughput (935.74 vs 38.36 requests/sec) - Much better latency (106.11ms vs 1.05s) - Platform threads experienced 1,076 timeout errors while virtual threads had none


About the Author: Haoyi is a software engineer, an early contributor to Scala.js, and the author of many open-source Scala tools such as Cask, the Ammonite REPL and FastParse.

If you've enjoy using Cask, or enjoyed using Haoyi's other open source libraries, please chip in (or get your Company to chip in!) via Patreon so he can continue his open-source work


Main Customization
\ No newline at end of file +

The performance of non-blocking virtual threads varies, depending on whether blocking is a problem or not.

+ +

In general virtual threads are most beneficial in applications which spend a lot of time blocked on IO. How much they benefit your own application will need to be benchmarked and measured, but they are relatively easy to enable so you can run your own small benchmarks before deciding to use them or not.


About the Author: Haoyi is a software engineer, an early contributor to Scala.js, and the author of many open-source Scala tools such as Cask, the Ammonite REPL and FastParse.

If you've enjoy using Cask, or enjoyed using Haoyi's other open source libraries, please chip in (or get your Company to chip in!) via Patreon so he can continue his open-source work


Main Customization
\ No newline at end of file