Skip to content

Commit

Permalink
miscellaneous
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed May 24, 2024
1 parent 10aa70b commit a4dd223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn init_hook_http(http: Arc<impl HttpIO>, script: Option<blueprint::Script>) ->
fn init_http_worker_io(script: Option<blueprint::Script>) -> Arc<dyn WorkerIO<Event, Command>> {
#[cfg(feature = "js")]
if let Some(script) = script {
return Arc::new(super::javascript::Runtime::new(script));
return super::javascript::init_worker_io(script);

Check warning on line 40 in src/cli/runtime/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/cli/runtime/mod.rs#L40

Added line #L40 was not covered by tests
};

Arc::new(crate::core::worker::DefaultJsRuntime {})
Expand All @@ -48,7 +48,7 @@ fn init_resolver_worker_io(
) -> Arc<dyn WorkerIO<async_graphql::Value, async_graphql::Value>> {
#[cfg(feature = "js")]
if let Some(script) = script {
return Arc::new(super::javascript::Runtime::new(script));
return super::javascript::init_worker_io(script);

Check warning on line 51 in src/cli/runtime/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/cli/runtime/mod.rs#L51

Added line #L51 was not covered by tests
};

Arc::new(crate::core::worker::DefaultJsRuntime {})
Expand Down

1 comment on commit a4dd223

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 6.66ms 3.42ms 188.56ms 77.94%
Req/Sec 3.81k 193.25 4.15k 91.08%

455188 requests in 30.00s, 2.28GB read

Requests/sec: 15171.17

Transfer/sec: 77.87MB

Please sign in to comment.