{"id":24930672,"url":"https://github.com/logica0419/remote-bmi","last_synced_at":"2025-04-09T21:51:28.757Z","repository":{"id":42483334,"uuid":"451103374","full_name":"logica0419/remote-bmi","owner":"logica0419","description":"ISUCONの練習時に使えるベンチマーカーWebUI","archived":false,"fork":false,"pushed_at":"2025-04-07T13:31:05.000Z","size":4200,"stargazers_count":14,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T21:51:22.595Z","etag":null,"topics":["go","isucon","react","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logica0419.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-23T12:53:52.000Z","updated_at":"2025-03-20T12:38:52.000Z","dependencies_parsed_at":"2023-02-19T17:00:51.830Z","dependency_job_id":"eecc5453-f034-4b12-b877-2ecd3ab22282","html_url":"https://github.com/logica0419/remote-bmi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logica0419%2Fremote-bmi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logica0419%2Fremote-bmi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logica0419%2Fremote-bmi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logica0419%2Fremote-bmi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logica0419","download_url":"https://codeload.github.com/logica0419/remote-bmi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119402,"owners_count":21050754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","isucon","react","typescript"],"created_at":"2025-02-02T13:55:20.083Z","updated_at":"2025-04-09T21:51:28.735Z","avatar_url":"https://github.com/logica0419.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote-BMI\n\n[![Client CI Pipeline](https://github.com/logica0419/remote-bmi/actions/workflows/client.yml/badge.svg)](https://github.com/logica0419/remote-bmi/actions/workflows/client.yml)\n[![Server CI Pipeline](https://github.com/logica0419/remote-bmi/actions/workflows/server.yml/badge.svg)](https://github.com/logica0419/remote-bmi/actions/workflows/server.yml)\n[![CodeQL](https://github.com/logica0419/remote-bmi/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/logica0419/remote-bmi/actions/workflows/codeql-analysis.yml)\n\n(BMI = Bench Marker Interface)  \nISUCONの練習時に使える、簡易的なベンチマーカーWebUI  \nプライベートネットワークで競技用サーバーと繋がったベンチマークサーバーで動かすことを想定しています。\n\n## 設定\n\nリポジトリ直下に`config.json`というファイルを作って下さい。  \n同様のスキーマであればyamlでも大丈夫です。\n\n```json\n{\n  \"address\": \":3000\",             // Remote-BMIがリッスンするアドレス\n  \"mysql\": {                      // MySQLの設定\n    \"hostname\": \"localhost\",        // ホスト\n    \"port\": 3306,                   // ポート\n    \"username\": \"isucon\",           // ユーザー名\n    \"password\": \"isucon\",           // パスワード\n    \"database\": \"remote_bmi\"        // データベース名\n  },\n  \"version\": \"isucon11-qualify\",  // 実行するベンチマークコマンドのバージョン\n  // server/benchmark/command.go に全てのコマンドをmapでまとめ、そのキーを\"version\"に入れます。\n  \"bench_ip\": \"localhost\"         // ベンチマークサーバーのプライベートIPアドレス\n}\n```\n\n環境変数でも設定できます。\n\n```sh\nexport ADDRESS=\":3000\"\nexport MYSQL_HOSTNAME=\"localhost\"\nexport MYSQL_PORT=\"3306\"\nexport MYSQL_USERNAME=\"isucon\"\nexport MYSQL_PASSWORD=\"isucon\"\nexport MYSQL_DATABASE=\"remote_bmi\"\nexport VERSION=\"isucon11-qualify\"\nexport BENCH_IP=\"localhost\"\n```\n\n## ビルド\n\nNode.js環境とGo環境が必要です。\nリポジトリをクローンした上で、リポジトリのルートディレクトリでコマンドを実行してください。\n\n```sh\nmake init\nmake build\n```\n\nリポジトリのルートディレクトリに`remote-bmi`という名前の実行用バイナリが生成されます。\n\n## 実行\n\nビルドを実行した上で、バイナリファイルと設定ファイルをお好きな場所に設置し、下記のコマンドを入力するとサーバーが立ち上がります。\n\n```sh\n{バイナリまでのパス}/remote-bmi serve -c {設定ファイルのパス}\n```\n\nベンチマークサーバー内でのsystemdによる管理をオススメします。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogica0419%2Fremote-bmi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogica0419%2Fremote-bmi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogica0419%2Fremote-bmi/lists"}