Skip to content

philterd/phileas-benchmark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phileas-benchmark

Benchmark tests for Phileas PII engine

This command-line utility runs a series of single-threaded workloads using 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

Dependencies

Running Locally

mvn clean test package

# run workloads across all documents
java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -jar target/main-jar-with-dependencies.jar all mask_all 1 15000

# run workloads for specific document
java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -jar target/main-jar-with-dependencies.jar gettysberg_address mask_credit_cards 1 1000

# run workloads with minimal or alternate dependencies
java -server -Xmx512M -XX:+AlwaysPreTouch -XX:PerBytecodeRecompilationCutoff=10000 -XX:PerMethodRecompilationCutoff=10000 -cp "lib/*:target/phileas-benchmark-0.0.1.jar" ai.philterd.phileas.benchmark.Main <document> <redactor> <repetitions> <workload_millis>

Available documents

  • hello_world (11 chars)
  • gettysberg_address (1474 chars)
  • i_have_a_dream (7727 chars)

Available redactors

  • mask_all
  • mask_bank_routing_numbers
  • mask_bitcoin_addresses
  • mask_credit_cards
  • mask_drivers_licenses
  • mask_email_addresses
  • mask_iban_codes
  • mask_passport_numbers
  • mask_phone_numbers
  • mask_ssns
  • skip_all

About

Benchmark tests for Phileas PII engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%