/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public class GaussianBenchmark { private ByteImage img; @BeforeClass public void setUp(){ img = new ByteImage("test-images/huge.jpg"); } @Benchmark(times = 30) public void ImageOperationsGaussian(){ ImageOperations.gaussian(img); } @AfterClass public void tearDown(){ img = null; } }