From e87fe8d03c0d3f1e491638a8dc3e8b4e431ed809 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 12 Sep 2017 17:17:16 +0200 Subject: [PATCH] Removed benchmarks/fastify-big-json.js --- benchmarks/fastify-big-json.js | 39 ---------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 benchmarks/fastify-big-json.js diff --git a/benchmarks/fastify-big-json.js b/benchmarks/fastify-big-json.js deleted file mode 100644 index d94e48a495..0000000000 --- a/benchmarks/fastify-big-json.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict' - -const fastify = require('..')() - -const opts = { - schema: { - response: { - 200: { - type: 'array', - items: { - type: 'object', - properties: { - id: { type: 'integer' }, - title: { type: 'string' }, - employer: { type: 'string' } - } - } - } - } - } -} - -function Eng (id, title, emp) { - this.id = id - this.title = title - this.employer = emp -} - -fastify.get('/', opts, function (request, reply) { - const jobs = [] - - for (var i = 0; i < 200; i++) { - jobs[i] = new Eng(i, 'Software Engineer', 'nearForm') - } - - reply.send(jobs) -}) - -fastify.listen(3000)