Skip to content

Commit 5938a4c

Browse files
committed
a
1 parent 3a3a784 commit 5938a4c

File tree

3 files changed

+122
-68
lines changed

3 files changed

+122
-68
lines changed

Cargo.lock

Lines changed: 120 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ authors = ["sunli <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
async-graphql = { version = "1.7.4" }
8+
async-graphql = { version = "1.10.5" }
99
async-std = { version = "1.5.0", features = ["attributes"] }
1010
juniper = { git = "https://github.com/graphql-rust/juniper"}
1111
futures = "0.3.4"
1212
serde_json = "*"
13-
json = "*"
14-
jemallocator = "0.3.2"
15-
mimallocator = "0.1.3"
16-
tcmalloc = "0.3.0"

src/async_graphql_benchmark.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use async_graphql::*;
22
use async_std::task;
3-
use std::sync::Arc;
43
use std::time::Instant;
54

65
pub struct QueryRoot;
@@ -40,7 +39,7 @@ impl MyObj {
4039

4140
pub async fn run() {
4241
let s = Instant::now();
43-
let schema = Arc::new(Schema::new(QueryRoot, EmptyMutation, EmptySubscription));
42+
let schema = Schema::new(QueryRoot, EmptyMutation, EmptySubscription);
4443
let mut jobs = Vec::new();
4544

4645
for _ in 0..4 {

0 commit comments

Comments
 (0)