Skip to content

Commit

Permalink
add tailcall benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
sc231997 committed Nov 3, 2023
1 parent a7bae1e commit ff15294
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 14 deletions.
36 changes: 22 additions & 14 deletions benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,28 @@
server: Actix Web
run:
cmd: ./target/release/juniper
- id: sangria
name: Sangria
url: https://github.com/sangria-graphql/sangria
lang: Scala
server: Akka HTTP
run:
cmd: java
args:
[
"-Xrs",
"-Xmx4G",
"-jar",
"./target/scala-2.13/sangria-assembly-0.1.0-SNAPSHOT.jar",
]
- id: tailcall
name: tailcall
url: https://github.com/tailcallhq/tailcall
lang: Rust
server: Tailcall
run:
cmd: sh
args: ["tailcall.sh"]
# - id: sangria
# name: Sangria
# url: https://github.com/sangria-graphql/sangria
# lang: Scala
# server: Akka HTTP
# run:
# cmd: java
# args:
# [
# "-Xrs",
# "-Xmx4G",
# "-jar",
# "./target/scala-2.13/sangria-assembly-0.1.0-SNAPSHOT.jar",
# ]
# - id: static-crystal
# name: static-crystal
# url: "https://actix.rs/"
Expand Down
7 changes: 7 additions & 0 deletions tailcall/main.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
schema @server(port: 8000) {
query: Query
}

type Query {
hello: String! @const(data: "world")
}
4 changes: 4 additions & 0 deletions tailcall/tailcall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#/bin/bash
curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/master/install.sh | bash -s
export PATH="$HOME/.tailcall/bin:$PATH"
tc start ./main.graphql

0 comments on commit ff15294

Please sign in to comment.