Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #7788

Merged
merged 4 commits into from
Sep 23, 2024
Merged

Update #7788

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121,032 changes: 60,516 additions & 60,516 deletions data.json

Large diffs are not rendered by default.

116,418 changes: 58,189 additions & 58,229 deletions data.min.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go/goyave/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
github: go-goyave/goyave
version: 5.2
version: 5.3

static_files:
- config.json
2 changes: 1 addition & 1 deletion java/jooby/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
website: jooby.io
version: 3.3
version: 3.4

build:
- mvn clean package
Expand Down
9 changes: 9 additions & 0 deletions javascript/0http-bun/cluster.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os from "node:os";

const numCPUs = os.cpus().length;
for (let i = 0; i < numCPUs; i++) {
Bun.spawn(["bun", "app.ts"], {
stdio: ["inherit", "inherit", "inherit"],
env: { ...process.env },
});
}
2 changes: 1 addition & 1 deletion javascript/0http-bun/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ framework:
github: BackendStack21/0http-bun
version: 1.0
engines:
- durian.js
- bun
9 changes: 9 additions & 0 deletions javascript/blaze-bun/cluster.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os from 'node:os';

const numCPUs = os.cpus().length;
for (let i = 0; i < numCPUs; i++) {
Bun.spawn(['bun', 'app.ts'], {
stdio: ['inherit', 'inherit', 'inherit'],
env: { ...process.env },
});
}
2 changes: 1 addition & 1 deletion javascript/blaze-bun/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ framework:
version: 4.0

engines:
- durian.js
- bun
10 changes: 5 additions & 5 deletions javascript/bunicorn/app.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { RouteBuilder, BunicornApp } from "@bunicorn/server";
import { Router, BunicornApp } from "@bunicorn/server";

const app = new BunicornApp();
const rb = new RouteBuilder();
const router = new Router();
app.addRoutes([
rb.get("/", (ctx) => ctx.ok()),
rb.get("/user/:id", (ctx) => ctx.raw(ctx.params.id)),
rb.post("/user", (ctx) => ctx.ok()),
router.get("/", (ctx) => ctx.ok()),
router.get("/user/:id", (ctx) => ctx.raw(ctx.params.id)),
router.post("/user", (ctx) => ctx.ok()),
]);

app.serve({
Expand Down
9 changes: 9 additions & 0 deletions javascript/bunicorn/cluster.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os from "node:os";

const numCPUs = os.cpus().length;
for (let i = 0; i < numCPUs; i++) {
Bun.spawn(["bun", "app.ts"], {
stdio: ["inherit", "inherit", "inherit"],
env: { ...process.env },
});
}
2 changes: 1 addition & 1 deletion javascript/bunicorn/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ framework:
version: 0.0

engines:
- durian.js
- bun
2 changes: 1 addition & 1 deletion javascript/bunicorn/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@bunicorn/server": "0.0.24"
"@bunicorn/server": "~0.0.24"
}
}
11 changes: 2 additions & 9 deletions javascript/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,12 @@ language:
bootstrap:
- npm --location=global install pm2
command: nohup pm2-runtime start "deno run --allow-net --allow-read=. app.ts" -i max
bun:
command: bun run cluster.ts
happyx:
bootstrap:
- npm install
command: node app.js
durian.js:
environment:
NODE_ENV: production
bootstrap:
- npm install -g pm2 bun
- bun install
command: pm2-runtime start app.ts --interpreter /usr/local/bin/bun -i max
bun:
command: bun run cluster.ts

framework:
engines:
Expand Down
2 changes: 1 addition & 1 deletion javascript/ditsmod/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
framework:
github: ditsmod/ditsmod
website: ditsmod.github.io/en
version: 2.56
version: 2.57

bootstrap:
- npm install
Expand Down
1 change: 0 additions & 1 deletion javascript/durian.js.Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions javascript/durian.js/cluster.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { bootstrap } from "./src/app";

bootstrap();
4 changes: 3 additions & 1 deletion javascript/durian.js/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ framework:
github: mario-huang/durian.js
version: 1.0
engines:
- durian.js
- bun
bootstrap:
- bun install
5 changes: 5 additions & 0 deletions javascript/durian.js/nest-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"entryFile": "app"
}
20 changes: 20 additions & 0 deletions javascript/durian.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@
"nestjs",
"bun"
],
"scripts": {
"build": "durian build",
"start": "durian start",
"start:debug": "durian start:debug",
"start:dev": "durian start:dev",
"start:prod": "durian start:prod",
"compile": "durian compile",
"compile:linux-x64": "durian compile:linux-x64",
"compile:linux-arm64": "durian compile:linux-arm64",
"compile:windows-x64": "durian compile:windows-x64",
"compile:darwin-x64": "durian compile:darwin-x64",
"compile:darwin-arm64": "durian compile:darwin-arm64",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "durian test",
"test:watch": "durian test:watch",
"test:cov": "durian test:cov",
"test:debug": "durian test:debug",
"test:e2e": "durian test:e2e"
},
"dependencies": {
"durian.js": "~1.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { NestFactory } from "@nestjs/core";
import { AppModule } from "./app.module";

async function bootstrap() {
export async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(3000);
}
bootstrap();


2 changes: 1 addition & 1 deletion javascript/fastify/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
website: fastify.dev
version: 4.27
version: 5.0
9 changes: 9 additions & 0 deletions javascript/hono-bun/cluster.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os from "node:os";

const numCPUs = os.cpus().length;
for (let i = 0; i < numCPUs; i++) {
Bun.spawn(["bun", "app.ts"], {
stdio: ["inherit", "inherit", "inherit"],
env: { ...process.env },
});
}
2 changes: 1 addition & 1 deletion javascript/hono-bun/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ framework:
version: 4.6

engines:
- durian.js
- bun
2 changes: 1 addition & 1 deletion javascript/hyper-express/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
github: kartikk221/hyper-express
version: 6.16
version: 6.17

engines:
- uwebsockets
9 changes: 9 additions & 0 deletions javascript/vixeny-bun/cluster.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os from "node:os";

const numCPUs = os.cpus().length;
for (let i = 0; i < numCPUs; i++) {
Bun.spawn(["bun", "app.ts"], {
stdio: ["inherit", "inherit", "inherit"],
env: { ...process.env },
});
}
2 changes: 1 addition & 1 deletion javascript/vixeny-bun/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ framework:
version: 0.1

engines:
- durian.js
- bun
2 changes: 1 addition & 1 deletion kotlin/http4k/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
website: http4k.org
version: "5.30"
version: 5.31
2 changes: 1 addition & 1 deletion kotlin/jooby/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
website: jooby.io
version: 3.3
version: 3.4

command: >
/opt/java/openjdk/bin/java -server
Expand Down
2 changes: 1 addition & 1 deletion python/fastapi/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
website: fastapi.tiangolo.com
version: 0.111
version: 0.115

engines:
- uvicorn
Expand Down
7 changes: 7 additions & 0 deletions python/heaven/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
framework:
website: rayattack.github.io/heaven/
gihub: rayattack/heaven
version: 0.0

engines:
- uvicorn
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ requires = ["flit_core"]
name='server'
version = '1.0.0'
description = "Simple benchmark implementation"
dependencies = ["routerling>=0.5,<0.6"]
dependencies = ["heaven>=0.0,<0.1"]
17 changes: 17 additions & 0 deletions python/heaven/server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from heaven import Router


async def empty_text_response(req, res, ctx):
res.body = ""


async def get_user_by_id(req, res, ctx):
res.body = f"{req.params.get('id')}"


app = Router()


app.GET("/", empty_text_response)
app.GET("/user/:id", get_user_by_id)
app.POST("/user", empty_text_response)
2 changes: 1 addition & 1 deletion python/litestar/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
website: litestar.dev
version: 2.11
version: 2.12

engines:
- uvicorn
Expand Down
6 changes: 0 additions & 6 deletions python/routerling/config.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions python/routerling/server.py

This file was deleted.

2 changes: 1 addition & 1 deletion python/starlette/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
framework:
website: www.starlette.io
github: encode/starlette
version: 0.37
version: "0.40"

engines:
- uvicorn
Expand Down
2 changes: 1 addition & 1 deletion scala/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sbtscala/scala-sbt:eclipse-temurin-alpine-22_36_1.10.1_3.5.0 AS build
FROM sbtscala/scala-sbt:eclipse-temurin-alpine-22_36_1.10.1_3.5.1 AS build

WORKDIR /usr/src/app

Expand Down
Loading