private void addBarData(Parser parser, ParseResult parseResult) {
        int section;
        switch (parseResult.objectsParsed) {
            case 60:
                section = 0;
                break;
            case 20:
                section = 1;
                break;
            case 7:
                section = 2;
                break;
            case 2:
                section = 3;
                break;
            default:
                section = -1;
                break;
        }

        if (parser instanceof GsonParser) {
            mBarChart.addTiming(section, 0, parseResult.runDuration / 1000f);
        } else if (parser instanceof JacksonDatabindParser) {
            mBarChart.addTiming(section, 1, parseResult.runDuration / 1000f);
        } else if (parser instanceof LoganSquareParser) {
            mBarChart.addTiming(section, 2, parseResult.runDuration / 1000f);
        } else if (parser instanceof MoshiParser) {
            mBarChart.addTiming(section, 3, parseResult.runDuration / 1000f);
        }
    }
This is a test app we wrote in 10 minutes. Please do not write code like this, kiddos.
BenchmarkDemo/app/src/main/java/com/bluelinelabs/logansquare/demo/MainActivity.java