Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data structure for filters #2168

Merged
merged 107 commits into from
Jan 15, 2025
Merged

Data structure for filters #2168

merged 107 commits into from
Jan 15, 2025

Conversation

ychiucco
Copy link
Collaborator

@ychiucco ychiucco commented Jan 7, 2025

closes #2170
closes #2155
closes #1401
closes #2153

Checklist before merging

  • I added an appropriate entry to CHANGELOG.md
  • I added logging to new code - if appropriate.
  • I merged main into the current branch.

@ychiucco ychiucco linked an issue Jan 7, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Jan 7, 2025

Benchmark comparison

GET /api/alive/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 0.9 1.0 0.90 0.0 0.0
power 0.8 0.9 0.89 0.0 0.0
dataset 0.8 1.0 0.80 0.0 0.0
project 0.8 1.0 0.80 0.0 0.0
job 0.8 0.9 0.89 0.0 0.0

GET /api/v2/dataset/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 10.3 9.8 1.05 0.6 0.6
power 401.1 434.1 0.92 345.4 366.2
dataset 140.1 162.4 0.86 123.2 134.0
project 41.0 47.5 0.86 43.9 47.2
job 28.2 31.0 0.91 29.7 32.4

GET /api/v2/job/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 6.4 6.2 1.03 2.2 2.2
power 141.2 143.2 0.99 662.6 652.2
dataset 144.7 152.9 0.95 916.0 905.2
project 48.3 49.6 0.97 287.2 283.8
job 43.8 41.0 1.07 227.6 224.9

GET /api/v2/project/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 8.0 8.1 0.99 0.1 0.1
power 7.7 6.9 1.12 0.1 0.1
dataset 7.8 7.1 1.10 0.1 0.1
project 10.0 9.6 1.04 2.3 2.3
job 8.7 7.8 1.12 0.1 0.1

GET /api/v2/task/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 6.7 5.9 1.14 0.8 0.8
power 6.5 6.0 1.08 0.8 0.8
dataset 6.4 6.1 1.05 0.8 0.8
project 6.2 6.5 0.95 0.8 0.8
job 6.1 6.1 1.00 0.8 0.8

GET /api/v2/task-group/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 7.7 7.9 0.97 1.6 1.6
power 7.4 6.8 1.09 1.6 1.6
dataset 7.5 7.0 1.07 1.6 1.6
project 7.8 7.5 1.04 1.6 1.6
job 7.7 7.8 0.99 1.6 1.6

GET /api/v2/workflow/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 12.0 15.5 0.77 0.8 0.8
power 25.6 26.6 0.96 28.0 29.1
dataset 19.8 20.6 0.96 16.2 16.7
project 23.6 22.6 1.04 20.4 21.0
job 11.9 11.1 1.07 0.8 0.8

POST /api/v2/project/3/dataset/406/images/query/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 161.8 163.0 0.99 275.1 275.1

GET /auth/current-user/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 4.8 4.9 0.98 0.2 0.2
power 5.2 4.7 1.11 0.2 0.2
dataset 5.1 4.7 1.09 0.2 0.2
project 4.5 4.7 0.96 0.2 0.2
job 4.6 4.7 0.98 0.1 0.1

POST /auth/token/login/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 274.1 274.2 1.00 0.2 0.2

Copy link

github-actions bot commented Jan 7, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  fractal_server/app/models/v2
  dataset.py
  job.py
  workflowtask.py
  fractal_server/app/routes/api/v2
  images.py
  workflowtask.py
  fractal_server/app/runner/v2
  merge_outputs.py
  runner.py
  task_interface.py
  fractal_server/app/runner/v2/_local
  __init__.py
  fractal_server/app/runner/v2/_local_experimental
  __init__.py
  fractal_server/app/runner/v2/_slurm_ssh
  __init__.py
  fractal_server/app/runner/v2/_slurm_sudo
  __init__.py
  fractal_server/app/schemas
  _filter_validators.py
  _validators.py
  fractal_server/app/schemas/v2
  dataset.py
  dumps.py
  job.py
  task.py
  task_group.py
  workflowtask.py
  fractal_server/images
  models.py
  tools.py
Project Total  

This report was generated by python-coverage-comment-action

@tcompa tcompa marked this pull request as ready for review January 15, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants