Skip to content

Commit

Permalink
#141 Updating the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Nov 16, 2024
1 parent c49fd72 commit 25823de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
30 changes: 7 additions & 23 deletions phileas-benchmark/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,23 @@
# phileas-benchmark
Benchmark tests for Phileas PII engine

This command-line utility runs a series of single-threaded workloads using [Phileas](https://github.com/philterd/phileas)
to redact PII tokens in strings of varying sizes. Workloads can be run multiple times to warm up the JVM or test long-term use.
Workloads run for a fixed amount of time rather than a fixed number of iterations.

[![CodeFactor](https://www.codefactor.io/repository/github/philterd/phileas-benchmark/badge)](https://www.codefactor.io/repository/github/resurfaceio/phileas-benchmark)
# Phileas Benchmarks

## Dependencies
Benchmark tests for Phileas PII engine

* Java 21
* Maven 3.9.x
* [philterd/phileas](https://github.com/philterd/phileas)
These tests run a series of single-threaded workloads using to redact PII tokens in strings of varying sizes. Workloads can be run multiple times to warm up the JVM or to test long-term use. Workloads run for a fixed amount of time rather than a fixed number of iterations.

## Running Locally
## To Run

```
mvn clean package
BENCHMARKS_ENABLED=true mvn test
```

```
# run workloads across all documents
java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -jar target/phileas-benchmark-cmd.jar all mask_all 1 15000
# run workloads for specific document
java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -jar target/phileas-benchmark-cmd.jar gettysberg_address mask_credit_cards 1 1000
```

To get the results back as a JSON object, append a `json` argument to the command:

```
java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -jar target/phileas-benchmark-cmd.jar all mask_all 1 15000 json
```

### Available documents

* hello_world (11 chars)
Expand All @@ -57,6 +44,3 @@ For testing multiple identifiers:
* mask_all (the identifiers listed above 👆)
* mask_fastest (bank routing numbers, bitcoin addresses, credit cards, email addresses, IBAN codes, phone numbers, ssns)
* mask_none

---
Copyright 2024 Philterd, LLC @ https://www.philterd.ai
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ public String getBranch() {
public void setBranch(String branch) {
this.branch = branch;
}

}

0 comments on commit 25823de

Please sign in to comment.