# 算力

### 算力（Hash Rate）是衡量挖礦設備每秒能進行多少次雜湊運算的指標。算力越高，在挖礦競賽中獲勝的機率就越大——就像買越多彩券，中獎機會越高。

***

## 什麼是算力？

在工作量證明（PoW）的區塊鏈中，礦工需要不斷猜測一個數字（Nonce），直到產生符合條件的雜湊值。這個猜測過程就是「雜湊運算」。

算力就是礦工每秒能猜幾次。

| 算力單位   | 每秒運算次數      |
| ------ | ----------- |
| 1 H/s  | 1 次         |
| 1 KH/s | 1,000 次     |
| 1 MH/s | 1,000,000 次 |
| 1 GH/s | 10 億次       |
| 1 TH/s | 1 兆次        |
| 1 PH/s | 1000 兆次     |
| 1 EH/s | 100 京次      |

{% hint style="info" %}
**比特幣全網算力**

截至 2025 年，比特幣全網算力超過 500 EH/s，相當於每秒進行超過 5 × 10²⁰ 次運算。這是人類有史以來最大規模的分散式運算網路。
{% endhint %}

***

## 算力與挖礦

### 算力決定獲勝機率

假設全網有 100 TH/s 的總算力：

* 你擁有 10 TH/s → 你有 10% 的機會挖到下一個區塊
* 你擁有 1 TH/s → 你有 1% 的機會

這就像一場抽獎。你的算力佔全網比例越高，中獎機率越大。

### 算力與難度

網路會自動調整挖礦難度，確保區塊產生的時間穩定：

* 比特幣約每 10 分鐘產生一個區塊
* 算力增加 → 難度提高
* 算力減少 → 難度降低

***

## 不同設備的算力比較

| 設備       | 比特幣挖礦算力   |
| -------- | --------- |
| 一般電腦 CPU | \~10 MH/s |
| 顯示卡 GPU  | \~30 MH/s |
| ASIC 礦機  | 100+ TH/s |

{% hint style="success" %}
**為什麼需要 ASIC？**

ASIC 是專門設計來挖礦的晶片，效率比 GPU 高數萬倍。這就是為什麼現在用電腦挖比特幣已經不划算了。
{% endhint %}

***

## 延伸閱讀

* [哈希值](/qu-kuai-lian-ru-he-da-cheng-gong-shi/wa/ha-xi-zhi.md) — 運算產生的結果
* [哈希力](/qu-kuai-lian-ru-he-da-cheng-gong-shi/wa/ha-xi-li.md) — 算力的另一種說法
* [礦工](/qu-kuai-lian-ru-he-da-cheng-gong-shi/wa/gong.md) — 提供算力的人
* [礦池](/qu-kuai-lian-ru-he-da-cheng-gong-shi/wa/chi.md) — 集合算力的組織
* [ASIC](/qu-kuai-lian-ru-he-da-cheng-gong-shi/wa/asic.md) — 專用挖礦晶片

***

#### 參考資料

* [Bitcoin Hash Rate - Blockchain.com](https://www.blockchain.com/explorer/charts/hash-rate)
* [Mining Difficulty](https://www.blockchain.com/explorer/charts/difficulty)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.0x1.academy/qu-kuai-lian-ru-he-da-cheng-gong-shi/wa/suan-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
