Results:
fromUnixToISOString x 3,258,470 ops/sec ±1.86% (85 runs sampled)
new Date().toISOString() x 1,408,158 ops/sec ±0.96% (90 runs sampled)
Results:
fromUnixToISOString x 3,258,470 ops/sec ±1.86% (85 runs sampled)
new Date().toISOString() x 1,408,158 ops/sec ±0.96% (90 runs sampled)
// to run this file, install: npm i --save benchmark pino @ogma/logger @nestjs/common | |
// and then just run with: npx ts-node benchmark.ts | |
import { Logger } from '@nestjs/common'; | |
import { Ogma } from '@ogma/logger'; | |
import pino from 'pino'; | |
import * as Benchmark from 'benchmark'; | |
const suite = new Benchmark.Suite(); |
// to run this file, install: npm i --save benchmark uuid uid [email protected] | |
// and then just run with: npx ts-node ids-benchmark.ts | |
import * as Benchmark from 'benchmark'; | |
import { uid } from 'uid'; | |
import * as uuid from 'uuid'; | |
import * as nanoid from 'nanoid'; | |
const suite = new Benchmark.Suite(); |
// to run this file, copy this file inside an NestJS API | |
// then install: npm i --save benchmark | |
// then copy `better-logger.service.ts` and `better-console-logger.service.ts`. | |
// and then just run with: npx ts-node src/benchmark.ts | |
const Benchmark = require('benchmark'); | |
import { Logger } from '@nestjs/common'; | |
import { BetterLogger } from './better-logger.service'; |
var Benchmark = require('benchmark'); | |
import { | |
isConstructor, | |
isFunction, | |
} from '@nestjs/common/utils/shared.utils'; | |
import { MetadataScanner } from '@nestjs/core'; | |
import { Injectable } from '@nestjs/common/interfaces/injectable.interface'; | |
var suite = new Benchmark.Suite(); |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:AbortMultipartUpload", | |
"s3:PutObjectLegalHold" |