Skip to content

chore: compare micro benchmarks#762

Merged
tusharmath merged 153 commits intotailcallhq:mainfrom
alankritdabral:compare-benchmarks
Dec 28, 2023
Merged

chore: compare micro benchmarks#762
tusharmath merged 153 commits intotailcallhq:mainfrom
alankritdabral:compare-benchmarks

Conversation

@alankritdabral
Copy link
Copy Markdown
Contributor

@alankritdabral alankritdabral commented Dec 18, 2023

Summary:
Compare Criterion benchmarks with the cache_benchmarks
Added instructions to compare the benchmarks locally
run:
rust-script benches/criterion_compare <benchmarks1.json> <benchmarks2.json> check to check the degradation in benchmarks
rust-script benches/criterion_compare <benchmarks1.json> <benchmarks2.json> table to get the comparison table
rust-script benches/criterion_compare <benchmarks1.json> <benchmarks2.json> to get the comparison table and then check the degradation.

Issue Reference(s):
Fixes #... (Replace "..." with the issue number)

Build & Testing:

  • I ran cargo test successfully.
  • I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

  • I have added relevant unit & integration tests.
  • I have updated the documentation website accordingly.
  • I have performed a self-review of my own code.

@shashitnak shashitnak added ci: benchmark Runs benchmarks benchmark and removed ci: benchmark Runs benchmarks labels Dec 18, 2023
@tusharmath tusharmath marked this pull request as ready for review December 18, 2023 14:40
@tusharmath tusharmath changed the title Compare benchmarks chore: compare micro benchmarks Dec 19, 2023
@tusharmath
Copy link
Copy Markdown
Contributor

  • Benchmarks should always run and results should be cached.
  • Comparison should only happen on PRs
  • CI should fail if the benchmarks show a performance degradation of greater than 1%

} else {
((new_value - old_value) / old_value) * 100.0
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this file to /scripts

std::process::exit(1);
}
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this file to /scripts

@tusharmath tusharmath removed ci: benchmark Runs benchmarks benchmark labels Dec 28, 2023
- name: Start Nginx
run: |
sudo systemctl start nginx

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nginx changes here are not relevant

@tusharmath tusharmath added the ci: benchmark Runs benchmarks label Dec 28, 2023
alankritdabral and others added 2 commits December 28, 2023 10:58
@tusharmath tusharmath removed the ci: benchmark Runs benchmarks label Dec 28, 2023
@tusharmath tusharmath merged commit 5364b50 into tailcallhq:main Dec 28, 2023
@tusharmath
Copy link
Copy Markdown
Contributor

/tip 150$

@algora-pbc
Copy link
Copy Markdown

algora-pbc bot commented Dec 28, 2023

🎉🎈 @alankritdabral has been awarded $150! 🎈🎊

@github-actions github-actions bot added the type: chore Routine tasks like conversions, reorganization, and maintenance work. label Dec 31, 2023
@alankritdabral alankritdabral deleted the compare-benchmarks branch January 7, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💰 Rewarded type: chore Routine tasks like conversions, reorganization, and maintenance work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants