Articles Tagged ‘benchmark’
Sunday, September 30th, 2018
Capacity planning is an important task when trying to anticipate resources and scaling factors for our applications.
The usl4j library offers us an easy abstraction for Neil J. Gunther’s Universal Scalability Law and allows us to build up a predictive model based on the parameters throughput, latency and concurrent operations.
With a basic input set of two of these parameters, we are able to predict how these values change if we change one input parameter so that we can build our infrastructure or systems according to our SLAs.
(more…)
Tags: ab, Apache, bandwidth, benchmark, calculate, capacity, latency, little, measure, planning, predict, prediction, throughput, universal scalability law, usl4j, wrk, wrk2
Posted in Java | No Comments »
Monday, October 2nd, 2017
Writing microbenchmarks for parts of our applications is not always easy – especially when the internals of the virtual machine, the just-in-time-compiler and such things are coming into effect.
Java Microbenchmark Harness is a tool that takes care of creating JVM warmup-cycles, handling benchmark-input-parameters and running benchmarks as isolated processes etc.
Now following a few short examples for writing microbenchmarks with JMH.
(more…)
Tags: benchmark, harness, jdk, jmh, jvm, microbenchmark, profiling, tools
Posted in Java | No Comments »
Sunday, January 18th, 2015
When there is the need to create load tests or performance tests for an application, Apache JMeter is a handy tool and set up with ease.
In the following short tutorial I’d like to demonstrate how to configure JMeter to log into a Java EE web application with multiple users specified in a CSV file, how to generate some basic reports and how to integrate JMeter into a mavenized build using the JMeter Maven Plugin.
(more…)
Tags: assertion, authentication, benchmark, benchmarking, gatling, javaee, jmeter, listener, maven, profiling, sampler, test, testing
Posted in Java, testing | 2 Comments »
Tuesday, August 26th, 2014
There are several ways to aggregate and report application performance indicators in a Java application. One common way here is to use Java Management Extensions (JMX) and MBeans.
The Yammer Metrics Library eases this task for us and simplifies the aggregation of different reports.
In the following tutorial, we’re going to set up a full Java EE 7 web application by the help of Maven archetypes and we’re running the application on WildFly application server that is downloaded and configured completely by the WildFly Maven Plugin.
Finally our application is going to use the Java API for JSON Processing to parse lists of public repositories from the Bitbucket REST API to aggregate different reports, exported via JMX so that we’re finally able to view these reports with jconsole or jmeter.
(more…)
Tags: benchmark, bitbucket, discovery, gauge, glassfish, javaee, javaee7, jconsole, jmeter, jmx, json, jsonp, mbean, metrics, metrics-cdi, monitoring, performance, producer, wildfly, yammer
Posted in Enterprise, Java, Web | 7 Comments »
Sunday, March 10th, 2013
I recently stumbled upon a nice framework that allows to convert simple JUnit tests into micro benchmarks named JUnitBenchmarks.
It allows to set basic benchmark options and and to generate charts by adding some simple annotations and a test rule to your tests.
One might argue if it is wise to mix the aspects, testing and benchmarking and I’d agree for sure – nevertheless I think this framework can be handy sometimes so let’s create some benchmarks using JUnit and JUnitBenchmarks..
(more…)
Tags: benchmark, gc, Java, junit, maven, warmup
Posted in Java, testing | No Comments »