From c701db31d297a7c37e7586c6ec5192befaac5e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=B3=E5=87=BA=E7=BD=91=E5=90=8D=E5=95=A6?= <55868015+sb-child@users.noreply.github.com> Date: Sat, 12 Feb 2022 01:16:54 +0800 Subject: [PATCH] typo fix --- book/contents/async/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/contents/async/getting-started.md b/book/contents/async/getting-started.md index 19141ba9..6def90fe 100644 --- a/book/contents/async/getting-started.md +++ b/book/contents/async/getting-started.md @@ -60,8 +60,8 @@ | 操作 | async | 线程 | | ---- | ----- | ---- | -| 创建 | 0.3微妙 | 17微妙 | -| 线程切换 | 0.2微妙 | 1.7微妙 | +| 创建 | 0.3微秒 | 17微秒 | +| 线程切换 | 0.2微秒 | 1.7微秒 | 可以看出,`async` 在线程切换的开销显著低于多线程,对于 IO 密集的场景,这种性能开销累计下来会非常可怕!