comparison benchmark/bun-http-framework-benchmark/dev/nest-node/src/app.controller.ts @ 183:a8976a008a9d

[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 21:19:08 -0800
parents
children
comparison
equal deleted inserted replaced
179:8d17f6e6e290 183:a8976a008a9d
1 import {
2 Body,
3 Controller,
4 Get,
5 Header,
6 Param,
7 Post,
8 Query,
9 Res,
10 } from '@nestjs/common';
11 import { AppService } from './app.service';
12
13 @Controller()
14 export class AppController {
15 constructor(private readonly appService: AppService) {}
16
17 @Get('/')
18 @Header('content-type', 'text/html')
19 getHello() {
20 return this.appService.getHello();
21 }
22
23 @Get('/id/:id')
24 @Header('content-type', 'text/html')
25 getCompose(@Param('id') id: string, @Query('name') name: string) {
26 return `${id} ${name}`;
27 }
28
29 @Post('/json')
30 postMirror(@Body() body) {
31 return body;
32 }
33 }