Skip to content

Commit 3a3a784

Browse files
committed
a
1 parent d89a9a0 commit 3a3a784

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/async_graphql_benchmark.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use async_graphql::*;
2+
use async_std::task;
23
use std::sync::Arc;
34
use std::time::Instant;
45

@@ -44,7 +45,7 @@ pub async fn run() {
4445

4546
for _ in 0..4 {
4647
let schema = schema.clone();
47-
let handle = tokio::spawn(async move {
48+
let handle = task::spawn(async move {
4849
for _ in 0..10000i32 {
4950
schema
5051
.execute(

src/juniper_benchmark.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use async_std::task;
12
use juniper::RootNode;
23
use std::sync::Arc;
34
use std::time::Instant;
@@ -43,7 +44,7 @@ pub async fn run() {
4344

4445
for _ in 0..4 {
4546
let schema = schema.clone();
46-
let handle = tokio::spawn(async move {
47+
let handle = task::spawn(async move {
4748
for _ in 0..10000i32 {
4849
juniper::execute(
4950
r#"

0 commit comments

Comments
 (0)