Skip to content

Commit 240113a

Browse files
authored
Merge branch 'main' into alexl/add-doc-site-link
2 parents b01151b + ec2ca11 commit 240113a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
- .github/workflows/create-test-matrices/action.yml
2323
- .github/json_matrices/**
2424
- deny.toml
25+
- benchmarks/rust/**
2526
pull_request:
2627
paths:
2728
- logger_core/**
@@ -36,6 +37,7 @@ on:
3637
- .github/workflows/create-test-matrices/action.yml
3738
- .github/json_matrices/**
3839
- deny.toml
40+
- benchmarks/rust/**
3941
workflow_dispatch:
4042
inputs:
4143
full-matrix:

benchmarks/rust/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ use tikv_jemallocator::Jemalloc;
77
#[global_allocator]
88
static GLOBAL: Jemalloc = Jemalloc;
99

10+
use average::{Mean, Variance};
1011
use clap::Parser;
1112
use futures::{self, StreamExt, future::join_all, stream};
1213
use glide_core::client::{Client, ConnectionRequest, NodeAddress, TlsMode};
1314
use rand::{Rng, thread_rng};
1415
use serde_json::Value;
15-
use average::{Mean, Variance};
1616
use std::{
1717
cmp::max,
1818
collections::HashMap,
@@ -198,10 +198,10 @@ fn calculate_latencies(values: &[Duration], prefix: &str) -> HashMap<String, Val
198198
let p50 = latencies[(len * 0.5) as usize];
199199
let p90 = latencies[(len * 0.9) as usize];
200200
let p99 = latencies[(len * 0.99) as usize];
201-
201+
202202
let mean_calc: Mean = latencies.iter().copied().collect();
203203
let avg = mean_calc.mean();
204-
204+
205205
let variance_calc: Variance = latencies.iter().copied().collect();
206206
let stddev = variance_calc.population_variance().sqrt();
207207

0 commit comments

Comments
 (0)