@SuppressWarnings({"unchecked", "rawtypes"})
	private void runBenchmark(Object payload) {
		Message<?> message = new GenericMessage(payload);
		int ITERATIONS = 1000000;
		for (int i = 0; i < ITERATIONS; i++) {
			MessageValues msg = messageBusSupport.serializePayloadIfNecessary(message
			);
			messageBusSupport.deserializePayloadIfNecessary(msg.toMessage());
			if (i > 0 && i % 100000 == 0) {
				System.out.println("completed " + i + " iterations.");
			}
		}
	}
Performance benchmark tests for {@link MessageBusSupport}
@author David Turanski
spring-xd-benchmark/src/test/java/org/springframework/xd/dirt/integration/bus/MessageBusSupportBenchmarkTests.java