Skip to content

imhazige/benchmark-test-java-php-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Target

This project is going to do the following function to provide a test code to see the performance of Java, PHP, Nodejs.

The function will include simple but common thing that a RESTful API will do:

  • Convert request to a language data type and query a database(insert,get). -- IO and database.
  • Use a library to create a token and validate the token. -- CPU-intensive.

Each solution will use the popular library, framework adopted in the specified language, in this way, it will be more closer to the real situation.

API

Test 1 without autentication

POST /t1/users -- create a User

GET /t1/users -- get list of users

GET /t1/users/ -- get a user

Test 2 with token autentication

POST /t2/token -- create token

POST /t2/users -- create a User

GET /t2/users -- get list of users

GET /t2/users/ -- get a user

Database

Database is using Mysql.

Schema

Java

PHP

Node.js

Python

Erlang

About

benchmark test for RESTful API implemented by Java,PHP,Nodejs and more...

Resources

Stars

Watchers

Forks

Packages

No packages published