Mercurial
diff benchmark/bun-http-framework-benchmark/src/node/adonis/config/hash.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/benchmark/bun-http-framework-benchmark/src/node/adonis/config/hash.js Fri Jan 23 21:19:08 2026 -0800 @@ -0,0 +1,34 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const Env_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Env")); +const config_1 = require("@adonisjs/core/build/config"); +exports.default = (0, config_1.hashConfig)({ + default: Env_1.default.get('HASH_DRIVER', 'scrypt'), + list: { + scrypt: { + driver: 'scrypt', + cost: 16384, + blockSize: 8, + parallelization: 1, + saltSize: 16, + keyLength: 64, + maxMemory: 32 * 1024 * 1024, + }, + argon: { + driver: 'argon2', + variant: 'id', + iterations: 3, + memory: 4096, + parallelism: 1, + saltSize: 16, + }, + bcrypt: { + driver: 'bcrypt', + rounds: 10, + }, + }, +}); +//# sourceMappingURL=hash.js.map \ No newline at end of file