@ Benchmark @ BenchmarkMode ( Mode . SampleTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public CallOptions withOptionDuplicates ( ) { CallOptions opts = allOpts ; for ( int i = 1 ; i < shuffledCustomOptions . size ( ) ; i ++ ) { opts = opts . withOption ( shuffledCustomOptions . get ( i ) , "value2" ) ; } return opts ; }
Adding custom call options overwritting existing keys .