File: bench.js

package info (click to toggle)
node-camelcase-keys 6.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 148 kB
  • sloc: makefile: 2
file content (17 lines) | stat: -rw-r--r-- 372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* globals bench suite set */
'use strict';
const camelcaseKeysNpm = require('camelcase-keys');
const fixture = require('./fixture');
const camelcaseKeys = require('..');

suite('camelcaseKeys', () => {
	set('mintime', 1000);

	bench('npm', () => {
		camelcaseKeysNpm(fixture, {deep: true});
	});

	bench('master', () => {
		camelcaseKeys(fixture, {deep: true});
	});
});