Update nexus wiki content

This commit is contained in:
2026-05-03 05:42:06 +08:00
parent 90f3811b83
commit 111bc65b7b
707 changed files with 32306 additions and 7289 deletions

45
wiki/entities/K6.md Normal file
View File

@@ -0,0 +1,45 @@
---
title: "k6"
type: entity
tags: ["testing", "performance", "load-testing", "open-source"]
last_updated: 2026-05-09
---
## Aliases
- k6
- k6.io
- Grafana k6
## Summary
k6 是 Grafana 实验室开源的开发者友好型负载测试工具,用 JavaScript/Go 原生编写专为规模化性能测试和可扩展性验证设计。API Tester Agent 和 Performance Benchmarker Agent 的核心测试工具之一。
## Key Facts
- **类型**:开源负载测试工具
- **开发商**Grafana Labs
- **编程语言**Go核心引擎+ JavaScript测试脚本
- **许可**Apache License 2.0
- **官网**https://k6.io
## Core Capabilities
- 编写简洁的 JavaScript 测试脚本定义负载场景
- 支持 HTTP/WebSocket/gRPC/CSV 数据驱动测试
- 内置 Checks断言和 Thresholds阈值定义
- 与 Grafana、Tighthouse、Datadog 等监控平台无缝集成
- 支持云端分布式执行k6 Cloud和本地单节点执行
- 支持 HAR 文件导入,自动从浏览器录制生成测试脚本
## Role in The Agency
- [[testing-api-tester]] 使用 k6 执行 API 负载测试,验证 10x 正常流量容量和 SLA 合规性
- [[testing-performance-benchmarker]] 使用 k6 编写综合性能测试套件,结合统计置信区间分析
- [[Scalability]] 概念验证的推荐工具
## Related Entities
- [[Playwright]]端到端功能测试k6 专注负载与性能测试
- [[REST Assured]]Java 生态 API 测试k6 跨语言通用
- [[testing-performance-benchmarker]] ← uses ← [[K6]]
- [[testing-api-tester]] ← uses ← [[K6]]
## Related Concepts
- [[Performance Testing]]
- [[Load Testing]]
- [[Scalability]]