Skip to content

Commit

Permalink
🚧 WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed May 23, 2024
1 parent b20b88f commit c63c12b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/bench.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as v4 from 'npm:diary@^0.4';
import * as v5 from './mod.ts';

v4.enable('*');

let log = v4.diary('test', (e) => {
JSON.stringify(e);
});
Deno.bench('v4', () => {
log.info('hello', { name: 'world' });
});

let logv5 = v5.diary((e) => {
JSON.stringify(e);
});
Deno.bench('v5', () => {
logv5('info', 'hello {name}', { name: 'world' });
});

0 comments on commit c63c12b

Please sign in to comment.