Update nexus wiki content
This commit is contained in:
45
wiki/entities/K6.md
Normal file
45
wiki/entities/K6.md
Normal 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]]
|
||||
Reference in New Issue
Block a user