Skip to content

Conversation

ufechner7
Copy link
Member

@ufechner7 ufechner7 commented Sep 29, 2025

  • add bench_simplify.jl to runtests.jl
  • report the results nicely
  • fail if the performance dropped below 80% of the reference performance
  • different performance of Julia 1.11 and 1.12 is taken into account
  • CPU speed is taken into account
  • assumption: Windows 25% slower than Linux

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ufechner7 ufechner7 changed the title Add benchmark for simplify Add benchmark for simplify to runtests.jl Sep 29, 2025
@ufechner7 ufechner7 requested a review from Copilot September 29, 2025 12:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive benchmarking for the simplify function and removes deprecated TestEnv fallback code across test files. The benchmark is integrated into the main test suite with performance monitoring and cross-platform compatibility.

  • Adds bench_simplify.jl to production build tests in runtests.jl
  • Implements performance benchmarking with platform-specific adjustments and Julia version considerations
  • Removes TestEnv activation code from multiple test files, relying on proper project test environment setup

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/runtests.jl Adds bench_simplify.jl to production build test suite
test/bench_simplify.jl Major refactor with subprocess benchmarking, performance reporting, and cross-platform adjustments
test/test_kps4.jl Removes TestEnv activation fallback
test/test_kps3_fails.jl Removes TestEnv activation with explanatory comment
test/plot_kps4.jl Removes TestEnv fallback with explanatory comment
test/plot_kps3.jl Removes TestEnv fallback with explanatory comment
test/create_sys_image.jl Removes TestEnv activation line
test/bench4.jl Removes TestEnv activation with explanatory comment

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

if ! ("Test" keys(Pkg.project().dependencies))
using TestEnv; TestEnv.activate()
end
# Removed TestEnv activation; assume the test target environment is active.
Copy link
Member

Choose a reason for hiding this comment

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

why remove this? nice if you want to run the test separately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants