From dac43deb4db09fffc4d8d5e81535638bb6e454f3 Mon Sep 17 00:00:00 2001 From: Dhanus Date: Wed, 1 Nov 2023 16:14:27 +0530 Subject: [PATCH 1/7] feat: tailcall v0.13 --- benchmarks.yaml | 11 ++++++++++- tailcall/hello.graphql | 13 +++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tailcall/hello.graphql diff --git a/benchmarks.yaml b/benchmarks.yaml index 60c69f44..69a7b5c3 100644 --- a/benchmarks.yaml +++ b/benchmarks.yaml @@ -200,4 +200,13 @@ server: HonoJS run: cmd: bun - args: ["index.js"] \ No newline at end of file + args: ["index.js"] +- id: tailcall + name: tailcall + url: https://github.com/tailcallhq/tailcall + lang: Rust + server: Tailcall + run: | + wget https://github.com/tailcallhq/tailcall/releases/download/v0.13.0/tailcall-x86_64-unknown-linux-gnu + chmod +x ./tailcall-x86_64-unknown-linux-gnu + ./tailcall-x86_64-unknown-linux-gnu start ./hello.graphql diff --git a/tailcall/hello.graphql b/tailcall/hello.graphql new file mode 100644 index 00000000..f720e93d --- /dev/null +++ b/tailcall/hello.graphql @@ -0,0 +1,13 @@ +schema + @server( + port: 8000 + enableHttpCache: true + enableGraphiql: "/graphql" + enableQueryValidation: false + ) { + query: Query +} + +type Query { + hello: String! @const(data: "world") +} From 4eb13021e38a1c843566ff6961a4d90aaf5604b0 Mon Sep 17 00:00:00 2001 From: Dhanus Date: Thu, 2 Nov 2023 15:18:57 +0530 Subject: [PATCH 2/7] fix: shell script --- benchmarks.yaml | 7 +++---- tailcall/tailcall.sh | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 tailcall/tailcall.sh diff --git a/benchmarks.yaml b/benchmarks.yaml index 69a7b5c3..c5b85f3f 100644 --- a/benchmarks.yaml +++ b/benchmarks.yaml @@ -206,7 +206,6 @@ url: https://github.com/tailcallhq/tailcall lang: Rust server: Tailcall - run: | - wget https://github.com/tailcallhq/tailcall/releases/download/v0.13.0/tailcall-x86_64-unknown-linux-gnu - chmod +x ./tailcall-x86_64-unknown-linux-gnu - ./tailcall-x86_64-unknown-linux-gnu start ./hello.graphql + run: + cmd: "./tailcall.sh" + args: [""] diff --git a/tailcall/tailcall.sh b/tailcall/tailcall.sh new file mode 100644 index 00000000..8aa866cd --- /dev/null +++ b/tailcall/tailcall.sh @@ -0,0 +1,4 @@ +#!/bin/bash +wget https://github.com/tailcallhq/tailcall/releases/download/v0.13.0/tailcall-x86_64-unknown-linux-gnu +chmod +x ./tailcall-x86_64-unknown-linux-gnu +./tailcall-x86_64-unknown-linux-gnu start ./hello.graphql From 57fff9a8fd4372a2a1ffc8fd9b8eafc0a994e677 Mon Sep 17 00:00:00 2001 From: Dhanus Date: Thu, 2 Nov 2023 18:18:25 +0530 Subject: [PATCH 3/7] build: remove sangria(commented) Benchmarks running on sangria stucks --- benchmarks.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/benchmarks.yaml b/benchmarks.yaml index c5b85f3f..ff9ee9fe 100644 --- a/benchmarks.yaml +++ b/benchmarks.yaml @@ -143,20 +143,20 @@ 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: 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/" From 05b85b93931961d4f8b68c4b3fa5b0e5759a81ba Mon Sep 17 00:00:00 2001 From: Dhanus Date: Thu, 2 Nov 2023 18:23:58 +0530 Subject: [PATCH 4/7] fix: permission issues --- tailcall/tailcall.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tailcall/tailcall.sh diff --git a/tailcall/tailcall.sh b/tailcall/tailcall.sh old mode 100644 new mode 100755 From c119c2d41d1f4fe4bcd86f7026dc85659fe0f851 Mon Sep 17 00:00:00 2001 From: Dhanus Date: Thu, 2 Nov 2023 20:20:45 +0530 Subject: [PATCH 5/7] chore: latest changes --- tailcall/hello.graphql | 8 +------- tailcall/tailcall.sh | 8 ++++---- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/tailcall/hello.graphql b/tailcall/hello.graphql index f720e93d..de23b064 100644 --- a/tailcall/hello.graphql +++ b/tailcall/hello.graphql @@ -1,10 +1,4 @@ -schema - @server( - port: 8000 - enableHttpCache: true - enableGraphiql: "/graphql" - enableQueryValidation: false - ) { +schema @server(port: 8000, enableHttpCache: true, enableGraphiql: true) { query: Query } diff --git a/tailcall/tailcall.sh b/tailcall/tailcall.sh index 8aa866cd..2f7f7da8 100755 --- a/tailcall/tailcall.sh +++ b/tailcall/tailcall.sh @@ -1,4 +1,4 @@ -#!/bin/bash -wget https://github.com/tailcallhq/tailcall/releases/download/v0.13.0/tailcall-x86_64-unknown-linux-gnu -chmod +x ./tailcall-x86_64-unknown-linux-gnu -./tailcall-x86_64-unknown-linux-gnu start ./hello.graphql +#/bin/bash +curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/master/install.sh | bash -s +export PATH="$HOME/.tailcall/bin:$PATH" +tc start ./hello.graphql From 57a73c712894557cca5b9f0f3e82de87ba98df4d Mon Sep 17 00:00:00 2001 From: Dhanus Date: Fri, 3 Nov 2023 12:53:44 +0530 Subject: [PATCH 6/7] fix: requested changes --- benchmarks.yaml | 3 +-- tailcall/hello.graphql | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmarks.yaml b/benchmarks.yaml index ff9ee9fe..9dfc1c38 100644 --- a/benchmarks.yaml +++ b/benchmarks.yaml @@ -204,8 +204,7 @@ - id: tailcall name: tailcall url: https://github.com/tailcallhq/tailcall - lang: Rust + lang: No Code server: Tailcall run: cmd: "./tailcall.sh" - args: [""] diff --git a/tailcall/hello.graphql b/tailcall/hello.graphql index de23b064..7ad1e6d0 100644 --- a/tailcall/hello.graphql +++ b/tailcall/hello.graphql @@ -1,4 +1,4 @@ -schema @server(port: 8000, enableHttpCache: true, enableGraphiql: true) { +schema @server(port: 8000) { query: Query } From 784ecc5b5956ebfab6f95ba9ebb2c106cb621f45 Mon Sep 17 00:00:00 2001 From: Dhanus Date: Fri, 3 Nov 2023 13:41:50 +0530 Subject: [PATCH 7/7] build: changed the order for graphql-ruby This cases error sometimes ``` /home/runner/work/benchmarks/benchmarks/graphql-ruby: command 'bundle' failed with exit code 1 ``` --- benchmarks.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/benchmarks.yaml b/benchmarks.yaml index 9dfc1c38..34ade83d 100644 --- a/benchmarks.yaml +++ b/benchmarks.yaml @@ -95,23 +95,6 @@ # server: Chronos # run: # cmd: ./main -- id: graphql-ruby - name: graphql-ruby - url: https://github.com/rmosolgo/graphql-ruby - lang: Ruby - server: Puma - run: - cmd: puma - args: - [ - "-w", - <%= System.cpu_count.to_s %>, - "-s", - "-t", - "2", - "-b", - "tcp://127.0.0.1:8000", - ] - id: graphql-yoga name: graphql-yoga url: https://github.com/dotansimha/graphql-yoga @@ -201,6 +184,23 @@ run: cmd: bun args: ["index.js"] +- id: graphql-ruby + name: graphql-ruby + url: https://github.com/rmosolgo/graphql-ruby + lang: Ruby + server: Puma + run: + cmd: puma + args: + [ + "-w", + <%= System.cpu_count.to_s %>, + "-s", + "-t", + "2", + "-b", + "tcp://127.0.0.1:8000", + ] - id: tailcall name: tailcall url: https://github.com/tailcallhq/tailcall