Skip to content

Instantly share code, notes, and snippets.

@juanman2
juanman2 / peBench.md
Last active August 29, 2015 14:10
Using go bench, to benchmark Continuum's Policy Engine

Methodology

  • I used my laptop to benchmark the policy object.
  • I wrote a Bench function that fulfilled the Benchmark signature, each loading different numbers and types of rules.
  func BenchmarkLoadFlat(b *testing.B) {
  	benchLoad(b, "testFlat", SYNTH_RULE_FLAT, 100, 10)
  }