# EduTalk 待辦事項
- [x] jameschengcs 權限已調整為 Teacher
## [O] 校外 IP 測試
壓力測試 & 測試範例程式時皆是使用校外 ip,使用時並沒有遇到問題。
## [△] 壓力測試
測試套件:[K6](https://k6.io/docs/)
### 1. 測試最高每秒 50 個同時連線,持續 1 分鐘

[code](#Stress-Test-1)
### 2. 同時註冊 / 登入
待測試
## [△] 範例程式
### 197 備份
申請 VPN 中
### 233 備份
先放了 Lecture 1-5
01. [安裝及測試VPython](https://hackmd.io/s/BJ2jKMbf7)
02. [Python基本語法](https://hackmd.io/s/Sk_yOs-zm)
03. [等速度直線運動](https://hackmd.io/s/HJ7Ejj-GX)
04. [自由落下](https://hackmd.io/s/S1e8LxzGQ)
05. [水平抛射](https://hackmd.io/s/Hy4UoZfMm)
### 舊 PAS
之前 pas 上的程式碼沒有留下來,hackMD 文件還在(純英文),有重寫一部份 mobile sensor
### 附錄
#### Load Test #1
```js
import encoding from 'k6/encoding';
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
scenarios: {
contacts: {
executor: 'ramping-vus',
startVUs: 3,
stages: [
{ target: 20, duration: '30s' }, // linearly go from 3 VUs to 20 VUs for 30s
{ target: 50, duration: '0' }, // instantly jump to 50 VUs
{ target: 50, duration: '1m' }, // continue with 50 VUs for 1 minute
],
},
},
};
export default function() {
let res = http.get('https://pasedu.iottalk.tw/edutalk/demo/1');
check(res, { 'status was 200': r => r.status == 200 });
sleep(1);
}
```