Add inferno in todoapp benchmark
This commit is contained in:
parent
02e7b40c07
commit
d571dd2e56
26 changed files with 8148 additions and 5 deletions
15
bench/implementations/inferno/test/server.js
Normal file
15
bench/implementations/inferno/test/server.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const express = require('express');
|
||||
const learnJson = require('./learn.json');
|
||||
|
||||
const learner = require.resolve('./learn.json');
|
||||
|
||||
const app = express();
|
||||
const dir = path.resolve(__dirname, '..');
|
||||
|
||||
app.use(express.static(dir));
|
||||
app.use('/learn.json', express.static(learner));
|
||||
app.use('/favicon.ico', function () {});
|
||||
|
||||
app.listen(8000);
|
||||
Loading…
Add table
Add a link
Reference in a new issue