forked from the-benchmarker/web-frameworks
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Restore scala (the-benchmarker#401, the-benchmarker#404) (the-benchmarker#414) * Wrong version displayed for iron (the-benchmarker#406) * wrong version display for iron * update README * force django version to >= 2.1.2 (the-benchmarker#398) since a security issue has been discovered, @see https://www.djangoproject.com/weblog/2018/oct/01/security-release/ * Update nunomaduro/collision in php/laravel/composer.json from ~2.0.3 to v2.1.0 (the-benchmarker#397) * Update nunomaduro/collision from ~2.0.3 to v2.1.0 * use tilde constraint * avoid versionning vendor deps * [Node.js]: Support turbo-http (the-benchmarker#329) * Node.js: Add turbo-http * flag turbo (polka) as experimental * add to CI * lint yaml config * adding cyclone (the-benchmarker#396) * adding cyclone * add cyclone job description for neph * use pip to install cyclone (from github) * mark cyclone as developer preview * flag as experimental * add cyclone in CI * allow --experimental flag usage (the-benchmarker#399) * Addresses the-benchmarker#404 * Akka-http upgraded to latest. Addresses the-benchmarker#401 * sbt upgraded * minor * restore changes made by @mfirry to upgrade scala frameworks * add a license * use a community license (instead of personal author)
- Loading branch information
Showing
15 changed files
with
158 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ bin/ | |
|
||
# git temporary files | ||
*.orig | ||
|
||
# PHP | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2018 The benchmarker <the-benchmarker@googlegroups.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node | ||
|
||
RUN npm -g install pm2 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY app.js package.json ./ | ||
|
||
RUN npm install | ||
|
||
ENV NODE_ENV production | ||
|
||
CMD pm2-runtime start app.js -i $(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const polka = require('polka'); | ||
const turbo = require('turbo-http'); | ||
const server = turbo.createServer(); | ||
|
||
polka({ server }) | ||
.get('/', (req, res) => { | ||
res.end(''); | ||
}) | ||
.get('/user/:id', (req, res) => { | ||
res.end(req.params.id); | ||
}) | ||
.post('/user', (req, res) => { | ||
res.end(''); | ||
}) | ||
.listen(3000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"author": { | ||
"name": "Parsa Ghadimi", | ||
"email": "me@qti3e.com", | ||
"url": "http://qti3e.com" | ||
}, | ||
"dependencies": { | ||
"polka": "~0.5.1", | ||
"turbo-http": "~0.3.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM python | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY requirements.txt server.py ./ | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 3000 | ||
|
||
CMD python server.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
twisted==18.7.0 | ||
-e git+https://github.com/ygl-rg/cyclone3.git#egg=cyclone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import cyclone.web | ||
import sys | ||
|
||
from twisted.internet import reactor | ||
from twisted.python import log | ||
|
||
|
||
class MainHandler(cyclone.web.RequestHandler): | ||
@cyclone.web.asynchronous | ||
def get(self): | ||
self.write("") | ||
self.finish() | ||
|
||
|
||
class UserInfoHandler(cyclone.web.RequestHandler): | ||
@cyclone.web.asynchronous | ||
def get(self, id): | ||
self.write(id) | ||
self.finish() | ||
|
||
|
||
class UserHandler(cyclone.web.RequestHandler): | ||
@cyclone.web.asynchronous | ||
def post(self): | ||
self.write("") | ||
self.finish() | ||
|
||
|
||
if __name__ == "__main__": | ||
application = cyclone.web.Application([ | ||
(r'/', MainHandler), | ||
(r"/user/(\d+)", UserInfoHandler), | ||
(r"/user", UserHandler), | ||
]) | ||
|
||
log.startLogging(sys.stdout) | ||
reactor.listenTCP(port=3000, interface='0.0.0.0', factory=application) | ||
reactor.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
django==2.1.* | ||
django>=2.1.2,<3.0.0 | ||
gunicorn==19.9.* | ||
meinheld==0.6.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters