1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Fires N concurrent queries on a fresh `SnowflakeApi` and prints each
//! task's wall-clock duration. Before the ArcSwap refactor of session.rs,
//! tasks 2..N would all stall behind task 1's session-create. After,
//! they should each see their own near-equal latency.
//!
//! `RUST_LOG=info,firn=info cargo run --example parallel_queries
//! --features browser-auth -- 5`
extern crate firn;
use Arc;
use Instant;
use Result;
use SnowflakeApi;
async