Mercurial
comparison benchmark/bun-http-framework-benchmark/src/node/adonis/test.js @ 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 "use strict"; | |
| 2 var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | |
| 3 if (k2 === undefined) k2 = k; | |
| 4 var desc = Object.getOwnPropertyDescriptor(m, k); | |
| 5 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | |
| 6 desc = { enumerable: true, get: function() { return m[k]; } }; | |
| 7 } | |
| 8 Object.defineProperty(o, k2, desc); | |
| 9 }) : (function(o, m, k, k2) { | |
| 10 if (k2 === undefined) k2 = k; | |
| 11 o[k2] = m[k]; | |
| 12 })); | |
| 13 var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | |
| 14 Object.defineProperty(o, "default", { enumerable: true, value: v }); | |
| 15 }) : function(o, v) { | |
| 16 o["default"] = v; | |
| 17 }); | |
| 18 var __importStar = (this && this.__importStar) || function (mod) { | |
| 19 if (mod && mod.__esModule) return mod; | |
| 20 var result = {}; | |
| 21 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | |
| 22 __setModuleDefault(result, mod); | |
| 23 return result; | |
| 24 }; | |
| 25 var __importDefault = (this && this.__importDefault) || function (mod) { | |
| 26 return (mod && mod.__esModule) ? mod : { "default": mod }; | |
| 27 }; | |
| 28 Object.defineProperty(exports, "__esModule", { value: true }); | |
| 29 process.env.NODE_ENV = 'test'; | |
| 30 require("reflect-metadata"); | |
| 31 const source_map_support_1 = __importDefault(require("source-map-support")); | |
| 32 const standalone_1 = require("@adonisjs/core/build/standalone"); | |
| 33 const runner_1 = require("@japa/runner"); | |
| 34 source_map_support_1.default.install({ handleUncaughtExceptions: false }); | |
| 35 const kernel = new standalone_1.Ignitor(__dirname).kernel('test'); | |
| 36 kernel | |
| 37 .boot() | |
| 38 .then(() => Promise.resolve().then(() => __importStar(require('./tests/bootstrap')))) | |
| 39 .then(({ runnerHooks, ...config }) => { | |
| 40 const app = [() => kernel.start()]; | |
| 41 (0, runner_1.configure)({ | |
| 42 ...kernel.application.rcFile.tests, | |
| 43 ...(0, runner_1.processCliArgs)(process.argv.slice(2)), | |
| 44 ...config, | |
| 45 ...{ | |
| 46 importer: (filePath) => Promise.resolve().then(() => __importStar(require(filePath))), | |
| 47 setup: app.concat(runnerHooks.setup), | |
| 48 teardown: runnerHooks.teardown, | |
| 49 }, | |
| 50 cwd: kernel.application.appRoot, | |
| 51 }); | |
| 52 (0, runner_1.run)(); | |
| 53 }); | |
| 54 //# sourceMappingURL=test.js.map |