Skip to content

Remove the benchmark profile and BenchmarkTest - #1

Closed
Shraddhameduri wants to merge 7 commits into
mainfrom
remove-benchmark-profile
Closed

Shraddhameduri wants to merge 7 commits into
mainfrom
remove-benchmark-profile

Conversation

@Shraddhameduri

Copy link
Copy Markdown
Owner

Fixes OWASP#121

The benchmark Maven profile is broken on modern JDKs (its -XX:MaxPermSize=256m argLine is a hard JVM startup error on JDK 9+) and the BenchmarkTest it ran has been deleted, so the profile, its surefire excludes, and the stale benchmark comments/docs are dead weight.

Changes

  • core/pom.xml: removed the benchmark profile and the surefire plugin block that only existed to exclude BenchmarkTest
  • pom.xml: removed the BenchmarkTest surefire exclude
  • Deleted core/src/test/java/org/owasp/encoder/BenchmarkTest.java and its two data files (benchmark-data-1.txt, benchmark-data-2.txt)
  • HTMLEncoder.java: removed stale benchmark timing comments and the BenchmarkTest reference
  • README.md: removed the benchmark-profile docs section

Verified grep -ri benchmark returns nothing across pom files, sources, and README; both POMs still parse as well-formed XML and the failsafe osgi-compatibility execution is untouched.

Removed outdated benchmarks instructions from README.
…re/pom.xml

Removed the maven-surefire-plugin block that only excluded BenchmarkTest, and removed the benchmark Maven profile whose -XX:MaxPermSize argLine breaks on modern JDKs.
Removed exclusion for BenchmarkTest.java in surefire plugin configuration.
Removed benchmark comments for encoding performance.
@Shraddhameduri

Copy link
Copy Markdown
Owner Author

Closing this PR — it was opened against my fork's main branch by mistake. The correct PR targeting the upstream repository is OWASP#152, which supersedes this one.

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.

Remove the benchmark profile and BenchmarkTest

1 participant