Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add BSON to CodableRouting benchmark #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

djones6
Copy link
Contributor

@djones6 djones6 commented Jan 25, 2019

This PR uses OpenKitten's BSON encoder/decoder to add BSON content-type support to the CodableRouting benchmark.

Two lua scripts for wrk are provided, specifying a POST content-type and accept type of JSON and BSON, respectively. These can be used to POST the structure "value": "Hello World" to the /postHello route, which then echoes the same data back again with the requested content type.

This exercises Kitura's Content-Type and Accept type determination for Codable routing (Kitura/Kitura#1309) in order to select the appropriate encoder and decoder.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants