Skip to content

Commit 40eface

Browse files
committed
Updates.
1 parent 1716b5d commit 40eface

10 files changed

Lines changed: 40 additions & 0 deletions

benches/data_drop.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 5;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 5;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/elem_drop.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 5;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 5;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/memory_copy.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 20;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 20;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/memory_fill.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 10;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 10;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/memory_grow.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 1;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 1;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/memory_init.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 20;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 20;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/table_copy.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 5;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 5;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/table_fill.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 5;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 5;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/table_grow.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 2;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 2;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

benches/table_init.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

4+
#[cfg(target_os = "macos")]
45
const MEASUREMENT_TIME: u64 = 5;
6+
#[cfg(target_os = "linux")]
7+
const MEASUREMENT_TIME: u64 = 5;
8+
59
const SAMPLE_SIZE: usize = 20;
610

711
/// Lengths used for benchmarking.

0 commit comments

Comments
 (0)