mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-26 05:56:50 +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:
@@ -12,8 +12,9 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use criterion::{Criterion, black_box, criterion_group, criterion_main};
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use rustfs_filemeta::{FileMeta, test_data::*};
|
||||
use std::hint::black_box;
|
||||
|
||||
fn bench_create_real_xlmeta(c: &mut Criterion) {
|
||||
c.bench_function("create_real_xlmeta", |b| b.iter(|| black_box(create_real_xlmeta().unwrap())));
|
||||
|
||||
Reference in New Issue
Block a user