-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbenchmark.yml
More file actions
40 lines (33 loc) · 1.18 KB
/
Copy pathbenchmark.yml
File metadata and controls
40 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
benchmark:
name: "task-management-api"
description: "Task Management REST API with CRUD operations, pagination, filtering, and status management"
type: server # server | cli
source_language: go
target_language: python
source:
language: go
description: "Gin-based REST API"
# Build phase
install_cmd: "go mod download" # Install dependencies
build_cmd: null # go run compiles on the fly
# Server runtime
run_cmd: "CGO_ENABLED=0 go run cmd/rest-server/main.go" # Command to start the server
port: 3000 # Port the server listens on
port_env_var: "PORT" # Env var the app reads for port
startup_wait: 30 # Seconds to wait for server startup
destination:
language: python
description: "Flask-based REST API"
# Build phase
install_cmd: "pip install -r requirements.txt" # Install dependencies
build_cmd: null # Python doesn't need compilation
# Server runtime
run_cmd: "python app.py" # Command to start the server
port: 3000 # Port the server listens on
port_env_var: "PORT" # Env var the app reads for port
startup_wait: 8 # Seconds to wait for server startup
testing:
tool: pytest
test_files:
- "test_api.py"
test_dir: "tests"