{"id":7379,"date":"2023-08-07T15:05:48","date_gmt":"2023-08-07T08:05:48","guid":{"rendered":"https:\/\/www.briswell-vn.com\/?p=7379"},"modified":"2023-08-08T17:03:03","modified_gmt":"2023-08-08T10:03:03","slug":"chay-load-test-performance-test-voi-artillery","status":"publish","type":"post","link":"https:\/\/www.briswell-vn.com\/ja\/news\/chay-load-test-performance-test-voi-artillery\/","title":{"rendered":"Artillery\u3092\u4f7f\u3063\u305f\u8ca0\u8377\u30c6\u30b9\u30c8\u30fb\u6027\u80fd\u30c6\u30b9\u30c8\u306e\u5b9f\u884c"},"content":{"rendered":"<p><\/p>\n<h2>\u7d39\u4ecb<\/h2>\n<h3>\u6027\u80fd\u30c6\u30b9\u30c8\u3068\u306f\uff1f\u306a\u305c\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u3079\u304d\u304b\uff1f<\/h3>\n<p>\u6027\u80fd\u30c6\u30b9\u30c8\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u8a66\u9a13\u3067\u3042\u308a\u3001\u69d8\u3005\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092\u8a55\u4fa1\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u6027\u80fd\u30c6\u30b9\u30c8\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3057\u305f\u308a\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u306a\u304f\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u60f3\u5b9a\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u51e6\u7406\u3067\u304d\u308b\u306e\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u3001\u5fdc\u7b54\u6642\u9593\u3001\u5e2f\u57df\u5e45\u3001\u62e1\u5f35\u6027\u3068\u3044\u3063\u305f\u8272\u3005\u306a\u60c5\u5831\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u6027\u80fd\u30c6\u30b9\u30c8\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u95a2\u308f\u308b\u554f\u984c\u3084\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u5909\u66f4\u3092\u884c\u3046\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002 \u3053\u306e\u76ee\u7684\u3068\u3057\u3066\u306f\u3001\u9ad8\u8ca0\u8377\u72b6\u614b\u3067\u3082\u30b9\u30e0\u30fc\u30ba\u3067\u901f\u3084\u304b\u306a\u3001\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u63d0\u4f9b\u3067\u304d\u308b\u3088\u3046\u306b\u78ba\u4fdd\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<h3>Artillery.io\u306b\u3064\u3044\u3066\u306e\u7d39\u4ecb<\/h3>\n<p>Artillery.io\u306fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001API \u30b5\u30fc\u30d3\u30b9\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u62e1\u5f35\u6027\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u6027\u80fd\u8a66\u9a13\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u5b9f\u969b\u64cd\u4f5c\u3092\u6a21\u5023\u3057\u3066\u8907\u6570\u306e\u30bd\u30fc\u30b9\u304b\u3089\u8ca0\u8377\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3067\u30b7\u30ca\u30ea\u30aa\u901a\u308a\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30b5\u30dd\u30fc\u30c8<\/h3>\n<p>Artillery.io\u306fNode.js\u3067\u4f5c\u6210\u3055\u308c\u3066\u3001HTTP\u3001Websocket\u3001socket.io. \u306e\u5404\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306b\u3001Artillery\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001HLS\uff08HTTP Live Streaming\uff09\u3001Amazon Kinesis\u3001 Apache Kafka\u3068\u3044\u3063\u305f\u30b9\u30bf\u30c3\u30af\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5f62\u5f0f<\/h3>\n<p>Artillery.io\u306f\u4ed6\u306e\u4e00\u822c\u7684\u306a\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb\u3068\u306f\u7570\u306a\u308a\u3001\u8ca0\u8377\u30c6\u30b9\u30c8\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u3001\u67d4\u8edf\u306a YAML\u30d9\u30fc\u30b9\u306e\u69cb\u6587\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u307e\u305f\u3001JSON\u5f62\u5f0f\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u57fa\u672c\u6a5f\u80fd<\/h2>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001npm\u304byarn\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067Artillery.io\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u306a\u4f9d\u5b58\u95a2\u4fc2\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>#npm\r\nnpm install -g artillery\r\n<\/pre>\n<pre>#yarn\r\nyarn global add artillery\r\n<\/pre>\n<p>\u6216\u3044\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067Node.js\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u958b\u767a\u7684\u306a\u4f9d\u5b58\u95a2\u4fc2\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>npm install -D artillery<\/pre>\n<h3>\u7c21\u6613\u30c6\u30b9\u30c8<\/h3>\n<p><span style=\"color: #ff6600;\">quick<\/span>\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u30c6\u30b9\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u305b\u305a\u306b\u30c6\u30b9\u30c8\u3092\u5b9f\u65bd\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u300110\u540d\u306e\u4eee\u60f3\u30e6\u30fc\u30b6\u30fc\uff08VUs\uff09\u304c\u5b9f\u884c\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u6bce\u306b\u300chttp:\/\/localhost:3000\/:\u300d\u3078\u30ea\u30af\u30a8\u30b9\u30c8\u309220\u56de\u9001\u4fe1\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>artillery quick -c 10 -n 20 http:\/\/localhost:3000\/api\/user<\/pre>\n<p>\u300c-c\u300d\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306fVU\u306e\u7dcf\u6570\u3092\u6307\u5b9a\u3057\u3001\u300c-n\u300d\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306f1\u540d\u306eVU\u3042\u305f\u308a\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30c6\u30b9\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c<\/h3>\n<p><span style=\"color: #ff6600;\">run<\/span>\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u306f\u30c6\u30b9\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u304b\u3089\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u57fa\u672c\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre>artillery run script.yaml -o report.json<\/pre>\n<p>\u300c-o\u300d\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306fJSON\u5e33\u7968\u3092\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<h3>\u5e33\u7968\u51fa\u529b<\/h3>\n<pre>artillery report report.json -o report.html<\/pre>\n<p><span style=\"color: #ff6600;\">report<\/span>\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001<span style=\"color: #ff6600;\">run<\/span>\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3067\u751f\u6210\u3055\u308c\u305fJSON\u5e33\u7968\u3092\u65b0\u3057\u3044HTML\u5e33\u7968\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"\" style=\"width: 100%;\" src=\"https:\/\/s3-ap-southeast-1.amazonaws.com\/homepage-media\/wp-content\/uploads\/2023\/05\/09143906\/test-create-user.png\" alt=\"\" \/><\/p>\n<h2>\u7c21\u5358\u306a\u8ca0\u8377\u30c6\u30b9\u30c8\u306e\u4f5c\u6210<\/h2>\n<p>\u4e0b\u8a18\u306e\u8aac\u660e\u306e\u3088\u3046\u306b\u3001YAML\u69cb\u6587\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u305a\u3001\u300cscript.yml\u300d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u4e0a\u90e8\u306b\u3042\u308b\u30b3\u30f3\u30d5\u30a3\u30b0\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30f3\u30d5\u30a3\u30b0<\/h3>\n<p>\u300ctarget\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d9\u30fc\u30b9URL\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>config:\r\n  target: \"http:\/\/localhost:3000\/api\"<\/pre>\n<p>\u6b21\u306b\u3001\u30ed\u30fc\u30c9 \u30d5\u30a7\u30fc\u30ba\u306e\u5b9a\u7fa9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u30ed\u30fc\u30c9 \u30d5\u30a7\u30fc\u30ba\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u671f\u9593\u5185\u306bArtillery\u304c\u65b0\u3057\u3044 VU \u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<pre>config:\r\n  ...\r\n  phases:\r\n    - duration: 60\r\n      arrivalRate: 100<\/pre>\n<h3>\u30b7\u30ca\u30ea\u30aa<\/h3>\n<p>\u4e00\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b7\u30ca\u30ea\u30aa\u306e\u5b9a\u7fa9\u306f\u305d\u308c\u305e\u308c\u3067\u300cflow\u300d\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/p>\n<pre>scenarios:\r\n  - name: \"Get All Users\"\r\n    flow:\r\n      - get:\r\n          url: \"\/user\"\r\n          qs:\r\n            limit: 10\r\n            offset: 20<\/pre>\n<p>\u300cflow\u300d\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u306f\u3001HTTP\u306e \u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5c5e\u6027\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001API \u306e\u30d1\u30b9\u3092\u78ba\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001URL-encoded forms\u3001Multipart forms\u3001JSON\u3068\u3044\u3063\u305fform body\u3084query string\u3092\u30bb\u30c3\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4fdd\u5b58\u3057\u3066\u304b\u3089\u3001\u30c6\u30b9\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u5b9f\u969b\u306e\u30e6\u30fc\u30b6\u30fc\u30d5\u30ed\u30fc<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30e6\u30fc\u30b6\u30fc\u30d5\u30ed\u30fc\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>config:\r\n  target: \"http:\/\/localhost:3000\/api\"\r\n  phases:\r\n  \u00a0 - duration: 120\r\n  \u00a0 \u00a0 arrivalRate: 10\r\n  \u00a0 \u00a0 name: \"Preparing\"\r\n  \u00a0 - duration: 240\r\n  \u00a0 \u00a0 arrivalRate: 30\r\n  \u00a0 \u00a0 rampTo: 100\r\n  \u00a0 \u00a0 name: \"Increasing\"\r\n  \u00a0 - duration: 600\r\n  \u00a0 \u00a0 arrivalRate: 100\r\n  \u00a0 \u00a0 name: \"Sustained Load\"\r\n  payload:\r\n  \u00a0 path: \"login.csv\"\r\n  \u00a0 cast: false\r\n  \u00a0 fields:\r\n  \u00a0 \u00a0 - \"user\"\r\n  \u00a0 \u00a0 - \"pass\"\r\n\u00a0 processor: \".\/processor.js\"\r\n\r\nbefore:\r\n  flow:\r\n  \u00a0 - log: \"Get auth token\"\r\n  \u00a0 - post:\r\n  \u00a0 \u00a0 \u00a0 url: \"\/auth\/login\"\r\n  \u00a0 \u00a0 \u00a0 json:\r\n  \u00a0 \u00a0 \u00a0 \u00a0 username: \"{{user}}\"\r\n  \u00a0 \u00a0 \u00a0 \u00a0 password: \"{{pass}}\"\r\n  \u00a0 \u00a0 \u00a0 capture:\r\n  \u00a0 \u00a0 \u00a0 \u00a0 - json: $.tokens.accessToken\r\n  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 as: token\r\nscenarios:\r\n  - name: \"Search Users\"\r\n  \u00a0 flow:\r\n  \u00a0 \u00a0 - get:\r\n  \u00a0 \u00a0 \u00a0 \u00a0 url: \"\/user\"\r\n  \u00a0 \u00a0 \u00a0 \u00a0 headers:\r\n  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 authorization: \"Bearer {{ token }}\"\r\n  - name: \"Create New User\"\r\n  \u00a0 flow:\r\n  \u00a0 \u00a0 - post:\r\n  \u00a0 \u00a0 \u00a0 \u00a0 url: \"\/user\"\r\n  \u00a0 \u00a0 \u00a0 \u00a0 beforeRequest: \"setJsonBody\"\r\n  \u00a0 \u00a0 \u00a0 \u00a0 headers:\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 authorization: \"Bearer {{ token }}\"<\/pre>\n<p>\u4e0a\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u30b3\u30f3\u30d5\u30a3\u30b0\u306b\uff13\u3064\u306e\u30d5\u30a7\u30fc\u30ba\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u7b2c\uff11\u30d5\u30a7\u30fc\u30ba\u3067\u306f\u30011 \u79d2\u3042\u305f\u308a 10 \u500b\u306e VU \u3092\u751f\u6210\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30782\u5206\u4ee5\u5185\u3067\u9001\u4fe1\u3057\u307e\u3059\u3002<\/li>\n<li>\u7b2c\uff12\u30d5\u30a7\u30fc\u30ba\u3067\u306f\u3001\u8ca0\u8377\u30c6\u30b9\u30c8\u306f 1 \u79d2\u3042\u305f\u308a \uff13\uff10\u540d\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u884c\u3044\u3001\u30014 \u5206\u4ee5\u5185\u3067 1 \u79d2\u3042\u305f\u308a \uff11\uff10\uff10\u540d\u306e\u30e6\u30fc\u30b6\u30fc\u307e\u3067\u5f90\u3005\u306b\u5897\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li>\u7b2c\uff13\u30d5\u30a7\u30fc\u30ba\u3067\u306f\u3001\uff11\uff10\u5206\u4ee5\u5185\u30671 \u79d2\u3042\u305f\u308a \uff11\uff10\uff10\u540d\u306e \u30e6\u30fc\u30b6\u30fc\u3067\u9023\u7d9a\u7684\u306b\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u8907\u6570\u306e\u30d5\u30a7\u30fc\u30ba\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5b9f\u969b\u306e\u30a2\u30af\u30bb\u30b9\u6570\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u6b63\u78ba\u306b\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3057\u3001\u3044\u304d\u306a\u308a\u9001\u4fe1\u3057\u3066\u304f\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4e00\u62ec\u306b\u51e6\u7406\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6027\u80fd\u3092\u8a55\u4fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30ca\u30ea\u30aa\u306e\u7b2c\uff11\u30d5\u30ed\u30fc\u3067\u3001\u5404 VU \u304b\u3089\u306f GET | &#8220;Search user&#8221; \u3078\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u7b2c\uff12\u30d5\u30ed\u30fc\u3067 POST | &#8220;Create user&#8221;\u3078\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3057\u3084\u3059\u304f\u306a\u308b\u305f\u3081\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u524d\u306b<strong>beforeRequest<\/strong>\u3068\u3044\u3046\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u30d5\u30c3\u30af\u4e0a\u3067\u306e<strong>setJsonBody<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<strong>setJsonBody<\/strong>\u95a2\u6570\u306fprocessor.js\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u3001config.processor\u3067\u53c2\u7167\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre># processor.js\r\nconst { faker } = require(\"@faker-js\/faker\");\r\n\r\nfunction setJsonBody(requestParams, context, ee, next) {\r\n  var body = {\r\n  \u00a0 username: faker.internet.userName(),\r\n  \u00a0 password: faker.internet.password(3),\r\n  \u00a0 email: faker.internet.exampleEmail(),\r\n  \u00a0 name: faker.name.fullName(),\r\n  \u00a0 role: faker.datatype.number({ min: 0, max: 1 }),\r\n\u00a0 };\r\n\r\n  requestParams.json = body;\r\n  return next();\r\n}\r\n\r\nmodule.exports = {\r\n  setJsonBody,\r\n};<\/pre>\n<h2>K6\u3068\u6bd4\u8f03<\/h2>\n<p>Artillery\u3068K6\u306e\u4e21\u65b9\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u6027\u80fd\u8a66\u9a13\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u62e1\u5f35\u6027\u3001CI\/CD \u30c4\u30fc\u30eb\u3068\u306e\u7d71\u5408\u3001\u30c6\u30b9\u30c8\u30d1\u30bf\u30fc\u30f3\u306e\u8a2d\u5b9a\u6a5f\u80fd\u3068\u3044\u3063\u305f\u540c\u69d8\u306e\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3044\u304f\u3064\u304b\u306e\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u3002Artillery\u306fNode.js\u3067\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u304c\u3001K6\u306fGo\u3067\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001Artillery\u306f\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306f\u306a\u304f\u3001\u30e1\u30e2\u30ea\u30fc\u4f7f\u7528\u91cf\u3082\u3088\u308a\u591a\u3044\u306e\u3067\u3001K6\u3088\u308a\u9045\u3044\u3067\u3059\u3002\u4ee5\u4e0b\u306b\u3001K6 \u3068 Artillery \u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u30c4\u30fc\u30eb\u306e\u9593\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u6bd4\u8f03\u3057\u305f\u30b0\u30e9\u30d5\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30e1\u30e2\u30ea\u30fc\u4f7f\u7528<\/h3>\n<p><img decoding=\"async\" class=\"\" style=\"width: 100%;\" src=\"https:\/\/k6.io\/blog\/static\/b4075246f21af514c7a1554d1406b337\/d5e13\/RPSvMemory.png\" alt=\"\" \/><\/p>\n<h3>VU\u6bce\u306e\u30e1\u30e2\u30ea\u30fc\u4f7f\u7528\u91cf<\/h3>\n<p><img decoding=\"async\" class=\"\" style=\"width: 100%;\" src=\"https:\/\/k6.io\/blog\/static\/f257b9c64d50bf6575f6b3f7fc94bed7\/09a33\/MemoryPerVU.png\" alt=\"\" \/><\/p>\n<p>\u7d50\u8ad6\u3068\u3057\u3066\u3001Artillery\u3068K6\u306e\u3069\u3061\u3089\u3082\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3057\u304b\u3057\u3001K6\u306fArtillery\u3088\u308a\u5229\u70b9\u304c\u591a\u3044\u3067\u3059\u3002\u7c21\u5358\u306a\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001YAML\u69cb\u6587\u3092\u4f7f\u7528\u3059\u308bArtillery\u304c\u6700\u9069\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u5143<\/h2>\n<p><a href=\"https:\/\/www.artillery.io\/\">https:\/\/www.artillery.io\/<\/a><br \/>\n<a href=\"https:\/\/k6.io\/blog\/comparing-best-open-source-load-testing-tools\/\">https:\/\/k6.io\/blog\/comparing-best-open-source-load-testing-tools\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u7d39\u4ecb \u6027\u80fd\u30c6\u30b9\u30c8\u3068\u306f\uff1f\u306a\u305c\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u3079\u304d\u304b\uff1f \u6027\u80fd\u30c6\u30b9\u30c8\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u8a66\u9a13\u3067\u3042\u308a\u3001\u69d8\u3005\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":7392,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[4,71],"tags":[],"class_list":["post-7379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-it-tec"],"_links":{"self":[{"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/posts\/7379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/comments?post=7379"}],"version-history":[{"count":0,"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/posts\/7379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/media\/7392"}],"wp:attachment":[{"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/media?parent=7379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/categories?post=7379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.briswell-vn.com\/ja\/wp-json\/wp\/v2\/tags?post=7379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}