Skip to content

Performance comparison of selected frameworks and microframeworks in PHP programming language for created REST API service

Notifications You must be signed in to change notification settings

lukaszszy/Performance-comparison-of-PHP-frameworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance-comparison-of-PHP-frameworks

Table of contents

Introduction

The aim of the project was to check and compare the performance of platforms and programming microplatforms in terms of created REST API services. It indicates two programming platforms and two microplatforms that were used to create web applications and a tool that allows to perform tests on previously implemented applications. The results of the research have been shown below. The times of sending requests were compared for basic types of HTTP methods found in created REST API web services.

Technologies

  • Laravel v6.9
  • Symfony v4.4
  • Lumen v6.2
  • Slim v4.1
  • Codeception v4.1

Application usage

The four notes aplications allows for sending following requests:

Type URI Description
GET api/text Return 'Hello World' message
GET api/note Return list of all notes
GET api/note/{id} Return single note
POST api/note Create new note
PUT api/note/{id} Update existing note
DELETE api/note/{id} Delete note

Codeception tests running:

> php codecept.phar run tests\api\TextCest.php
> php codecept.phar run tests\api\NoteCest.php

Results

Test case 1: Time of returning 'Hello World' message

Hello World GET test

Test case 2: Time of returning list of all notes

GET test

Test case 3: Time of returning single note

GET one test

Test case 4: Time of creating new note

POST test

Test case 5: Time of updating existing note

PUT test

Test case 6: Time of deleting note

DELETE test

Source

These results come from ''The impact of using programming microframeworks on the performance of created REST API services'' publication.