class FloatToBigDecimal {
    static final float value = 123456.780F;

    @Benchmark
    public void fastjson2(Blackhole bh) {
        bh.consume(TypeUtils.toBigDecimal(value));
    }

    @Benchmark
    public void jdk(Blackhole bh) {
        bh.consume(BigDecimal.valueOf(value));
    }

    public static void main(String[] args) throws RunnerException {<FILL_FUNCTION_BODY>}
}

        Options options = new OptionsBuilder()
                .include(FloatToBigDecimal.class.getName())
                .mode(Mode.Throughput)
                .timeUnit(TimeUnit.MILLISECONDS)
                .warmupIterations(1)
                .forks(1)
                .build();
        new Runner(options).run();
    
<no_super_class>