mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 13:16:28 +00:00
refactor: replace lazy_static with LazyLock (#318)
* refactor: replace `lazy_static` with `LazyLock` Replace `lazy_static` with `LazyLock`. Compile time may reduce a little. See https://github.com/rust-lang-nursery/lazy-static.rs/issues/214 * fmt * fix
This commit is contained in:
@@ -32,8 +32,9 @@
|
||||
//! cargo bench --bench comparison_benchmark shard_analysis
|
||||
//! ```
|
||||
|
||||
use criterion::{BenchmarkId, Criterion, Throughput, black_box, criterion_group, criterion_main};
|
||||
use criterion::{BenchmarkId, Criterion, Throughput, criterion_group, criterion_main};
|
||||
use rustfs_ecstore::erasure_coding::Erasure;
|
||||
use std::hint::black_box;
|
||||
use std::time::Duration;
|
||||
|
||||
/// Performance test data configuration
|
||||
|
||||
@@ -43,8 +43,9 @@
|
||||
//! - Both encoding and decoding operations
|
||||
//! - SIMD optimization for different shard sizes
|
||||
|
||||
use criterion::{BenchmarkId, Criterion, Throughput, black_box, criterion_group, criterion_main};
|
||||
use criterion::{BenchmarkId, Criterion, Throughput, criterion_group, criterion_main};
|
||||
use rustfs_ecstore::erasure_coding::{Erasure, calc_shard_size};
|
||||
use std::hint::black_box;
|
||||
use std::time::Duration;
|
||||
|
||||
/// Benchmark configuration structure
|
||||
|
||||
Reference in New Issue
Block a user