From f479197705b59cd9b2bc300a2ae9a340e18aa866 Mon Sep 17 00:00:00 2001 From: vicanso Date: Sat, 2 Sep 2023 11:18:09 +0800 Subject: [PATCH] fix: fix bench --- benches/bench.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/benches/bench.rs b/benches/bench.rs index fc1a51f..a332a9c 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,6 +1,6 @@ use charts_rs::{ - format_float, measure_text_width_family, svg_to_png, BarChart, Box, LegendCategory, - SeriesCategory, DEFAULT_FONT_FAMILY, + measure_text_width_family, svg_to_png, BarChart, Box, LegendCategory, SeriesCategory, + DEFAULT_FONT_FAMILY, }; use criterion::{criterion_group, criterion_main, Criterion}; @@ -119,13 +119,8 @@ fn bar_chart_png_benchmark(c: &mut Criterion) { }); } -fn format_float_benchmark(c: &mut Criterion) { - c.bench_function("format float", |b| b.iter(|| format_float(12381731.124))); -} - criterion_group!( benches, - format_float_benchmark, measure_text_benchmark, bar_chart_benchmark, bar_chart_png_benchmark,