Skip to content

Commit

Permalink
fix: onRequest returns No such file or directory (#2797)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop authored Sep 9, 2024
1 parent 751759f commit 006502e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli/javascript/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ fn qjs_print(msg: String, is_err: bool) {
}
}

static CONSOLE_JS: &[u8] = include_bytes!("shim/console.js");

fn setup_builtins(ctx: &Ctx<'_>) -> rquickjs::Result<()> {
ctx.globals().set("__qjs_print", js_qjs_print)?;
let _: Value = ctx.eval_file("src/cli/javascript/shim/console.js")?;
let _: Value = ctx.eval(CONSOLE_JS)?;

Ok(())
}
Expand Down

1 comment on commit 006502e

@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 14.03ms 5.63ms 170.82ms 92.64%
Req/Sec 1.81k 252.13 2.35k 76.33%

216432 requests in 30.02s, 1.08GB read

Requests/sec: 7210.26

Transfer/sec: 37.01MB

Please sign in to comment.