Skip to content

[feature] Port performance comparison workflow from Casbin (Go) to jCasbin #494

@knyk-dev

Description

@knyk-dev

Please implement the automatic performance benchmark comparison feature for jCasbin, mirroring the mechanism used in the Go version.

Reference Implementation (Go):

Target Context (Java):

  • Benchmark Class: src/test/java/org/casbin/jcasbin/main/benchmark/EnforcerBenchmarkTest.java
  • Build Tool: Maven

Requirement:
Create a GitHub Action workflow (.github/workflows/performance-pr.yml) that runs the JMH benchmarks on both the base and head commits of a PR, calculates the performance difference (throughput), and posts the result as a comment on the PR.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions