Skip to content

Instantly share code, notes, and snippets.

@aesteve aesteve/Perf example
Created Jul 10, 2015

What would you like to do?
Some example on what we could benchmark
// create an object
public class SomeObject {
public Date someDate;
public Integer someInt;
public String someString;
public Double someDouble;
// create vertx handler
router.put("/vertx", ctx -> {
JsonObject json = ctx.getBodyAsJson();
json.put("someInt", json.getInteger("someInt") + ctx.request().param("someInt"));
// etc : do some stuff with all the attributes AND ALSO request parameters
// create the exact same (functionally speaking) handler with Nubes
public class BenchmarkController {
public SomeObject changeTheObject(@RequestBody SomeObject original, @Param("someInt") Integer someInt, ...) {
original.someInt += someInt;
// etc. play with every attribute
return original;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.