Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Benchmark = require('benchmark');
const Func = require('@faasjs/func').Func;
const suite = new Benchmark.Suite;
process.env.FaasLog = 'error';
const handler = new Func({
plugins: [],
handler() {
return;
}
}).export().handler;
suite
.add('create', function () {
new Func({
plugins: [],
handler() {
return;
}
});
})
.add('export', function () {