class DoubleToString {
    static double d = 0.6730586701548151D;
    static float f = 0.98163563F;

    @Benchmark
    public void jdk(Blackhole bh) throws Throwable {
        bh.consume(Double.toString(d));
    }

    @Benchmark
    public void ryu(Blackhole bh) throws Throwable {<FILL_FUNCTION_BODY>}

//    @Benchmark
    public void jdkFloat(Blackhole bh) throws Throwable {
        bh.consume(Float.toString(f));
    }

//    @Benchmark
    public void ryuFloat(Blackhole bh) throws Throwable {
        byte[] bytes = new byte[15];
        int size = DoubleToDecimal.toString(f, bytes, 0, false);
        String str = new String(bytes, 0, 0, size);
        bh.consume(str);
    }

    public static void main(String[] args) throws RunnerException {
        Options options = new OptionsBuilder()
                .include(DoubleToString.class.getName())
                .mode(Mode.Throughput)
                .timeUnit(TimeUnit.MILLISECONDS)
                .warmupIterations(1)
                .forks(1)
                .build();
        new Runner(options).run();
    }
}

        byte[] bytes = new byte[24];
        int size = DoubleToDecimal.toString(d, bytes, 0, true);
        String str = new String(bytes, 0, 0, size);
        bh.consume(str);
    
<no_super_class>