{"id":18778602,"url":"https://github.com/ramsailopal/yottaweb-test","last_synced_at":"2025-04-13T10:33:19.641Z","repository":{"id":41186949,"uuid":"496960870","full_name":"RamSailopal/YottaWeb-Test","owner":"RamSailopal","description":"A test of different web frameworks with different YottaDB connectors","archived":false,"fork":false,"pushed_at":"2023-07-30T11:20:32.000Z","size":15955,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-30T12:24:41.639Z","etag":null,"topics":["c-plus-plus","crow","expressjs","flask","gin-gonic","golang","javascript","locust","mumps","node-js","python","rocket","rust","yottadb"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RamSailopal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-27T10:51:49.000Z","updated_at":"2023-04-14T17:59:06.000Z","dependencies_parsed_at":"2023-01-16T16:15:59.403Z","dependency_job_id":null,"html_url":"https://github.com/RamSailopal/YottaWeb-Test","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2FYottaWeb-Test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2FYottaWeb-Test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2FYottaWeb-Test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2FYottaWeb-Test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RamSailopal","download_url":"https://codeload.github.com/RamSailopal/YottaWeb-Test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223582191,"owners_count":17168660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","crow","expressjs","flask","gin-gonic","golang","javascript","locust","mumps","node-js","python","rocket","rust","yottadb"],"created_at":"2024-11-07T20:16:41.868Z","updated_at":"2024-11-07T20:16:42.370Z","avatar_url":"https://github.com/RamSailopal.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YottaWeb-Test\n\nA test of different web frameworks with different YottaDB connectors.\n\nThis is a fork of [YottaWeb-Test](https://github.com/RamSailopal/YottaWeb-Test) with a few changes:\n\n1. You can still [open it in Gitpod](https://gitpod.io/#https://github.com/berwynhoyt/MLuaWeb-Test) as per the original project, but that is no longer my recommendation because gitpod loading varies producing inconsistent results. Better to run it with docker on your local machine. See Quickstart below.\n2. At the time of writing the results published the the original project were incorrect. They did not compare apples with apples. The tests for some languages started with 1000 users immediately for other languages only increased the number of users gradually to about 100. This has been fixed to have 1000 users consistently for all languages. It make a big difference to the results.\n\n\n\nSingle docker containers are provisioned for each stack with the YottaDB layer, web proxy layer and application/YottaDB connector layer all enclosed.\n\nThe different stacks extract the same data from their embedded YottaDB databases:\n\n    ^PATIENTS(1,\"address\")=\"234,Timbucktwo Road, Fantasy City\"\n    ^PATIENTS(1,\"age\")=52\n    ^PATIENTS(1,\"name\")=\"Bob Taylor\"\n    ^PATIENTS(1,\"sex\")=\"Male\"\n\n\n This data is then exposed as a REST API, JSON based endpoint:\n\n    [{ \"id\": \"1\", \"name\": \"Bob Taylor\", \"age: \"52\", \"sex\": \"Male\", \"address: \"234,Timbucktwo Road, Fantasy City\" }]\n\n# Quickstart\n\nYou need the latest docker (I have 20.10.17) installed so that it runs without sudo. Then:\n\n```shell\ngit clone https://github.com/berwynhoyt/YottaWeb-Test.git\ncd YottaWeb-Test\ndocker rm $(docker ps -a -f status=exited -q)\ndocker compose down  # remove any containers this project previously started\ndocker compose up\n# now wait for it to build and run all the docker images\n```\n\nFinally, run the tests in a new terminal:\n\n```shell\n./runlocal\n```\n\nThis should generate your new test results in the locust_reports folder. You can see [my results here](https://htmlpreview.github.io/?https://github.com/berwynhoyt/YottaWeb-Test/blob/main/locust_reports/overallstats.html). 1000 users were tested against each stack. The automation script ./runlocal.sh runs each stack for 30 seconds (you can alter it there). \n\n# Python Stacks\n\n**Stack 1 - yottapython**\n\nFlask - https://flask.palletsprojects.com/en/2.1.x/\n\nApache - https://httpd.apache.org/\n\nYottaDB-Python - https://docs.yottadb.com/MultiLangProgGuide/pythonprogram.html\n\n**Stack  2 - yottamg_python**\n\nFlask\n\nApache\n\nmg_python - https://github.com/chrisemunt/mg_python\n\n\n# Node Stacks\n\n**Stack 1 - nodem**\n\nExpress - https://expressjs.com/\n\nApache\n\nnodem - https://www.npmjs.com/package/nodem\n\n**Stack 2 - mgdbx**\n\nExpress\n\nApache\n\nmgdbx - https://github.com/chrisemunt/mg-dbx\n\n\n# Native M Stack \n\n**Stack 1 - yottamgweb**\n\nmgweb-server - https://github.com/robtweed/mgweb-server\n\n**Stack 2 - yottaweb**\n\nApache\n\nM-Web-Server - https://github.com/shabiel/M-Web-Server\n\n# Go Stack - yottago\n\nGin - https://github.com/gin-gonic/gin\n\nApache\n\nYottaDB-Go - https://docs.yottadb.com/MultiLangProgGuide/goprogram.html\n\n\n# C++ Stack - yottac\n\nCrow - https://github.com/CrowCpp/Crow\n\nApache\n\nCPP Access for YottaDB - https://github.com/informatik-aalen/CPP-Access-for-YottaDB\n\n# Rust Stack - yottarust\n\nRocket - https://rocket.rs/\n\nApache\n\nYottaDB-Rust - https://yottadb.gitlab.io/Lang/YDBRust/yottadb/\n\n# Lua Stack - yottalua\n\nPegasus - https://github.com/EvandroLG/pegasus.lua\n\nApache\n\nYottaDB-Lua - https://docs.yottadb.com/MultiLangProgGuide/luaprogram.html\n\n# PHP Stack - mgphp\n\nApache/mod_php\n\nmg_php - https://github.com/chrisemunt/mg_php\n\n# Ruby Stack - mgruby\n\nRamaze - http://ramaze.net/\n\nApache\n\nmg_ruby - https://github.com/chrisemunt/mg_ruby\n\n\n# API endpoints\n\nTo view the endpoints:\n\nhttps://8080-gitpod-address/api/patients - **yottamgweb**\n\nhttps://5001-gitpod-address/api/patients - **yottamg_python**\n    \nhttps://3002-gitpod-address/api/patients - **nodem**\n    \nhttps://3003-gitpod-address/api/patients - **mgdbx**\n    \nhttps://5000-gitpod-address/api/patients - **yottapython**\n    \nhttps://8081-gitpod-address/api/patients - **yottago**\n\nhttps://8082-gitpod-address/api/patients - **yottaweb**\n\nhttps://8083-gitpod-address/api/patients - **yottac**\n\nhttps://8084-gitpod-address/api/patients - **yottarust**\n\nhttps://8085-gitpod-address/api/patients - **yottalua**\n\nhttps://8086-gitpod-address/api/patients - **mgphp**\n\nhttps://8087-gitpod-address/api/patients - **mgruby**\n\n\n# Running Tests\n\n![Alt text](locust.JPG?raw=true \"Locust\")\n\nEach stack is tested using Locust - https://docs.locust.io/en/stable/what-is-locust.html\n\nTo run test navigate to:\n\nhttps://8089-gitpod-address - **yottamgweb**\n    \nhttps://8090-gitpod-address - **yottamg_python**\n    \nhttps://8091-gitpod-address - **nodem**\n    \nhttps://8092-gitpod-address - **mgdbx**\n    \nhttps://8093-gitpod-address - **yottapython**\n    \nhttps://8094-gitpod-address - **yottago**\n\nhttps://8095-gitpod-address - **yottaweb**\n\nhttps://8096-gitpod-address - **yottac**\n\nhttps://8097-gitpod-address - **yottarust**\n\nhttps://8098-gitpod-address - **yottalua**\n\nhttps://8099-gitpod-address - **mgphp**\n\nhttps://8100-gitpod-address - **mgruby**\n\n# Results\n\nHere are the [test results for each stack](https://htmlpreview.github.io/?https://github.com/berwynhoyt/YottaWeb-Test/blob/main/locust_reports/overallstats.html).\n\n# Further Details\n\nThe application code relating to each framework is within each framework directory i.e.\n\nhttps://github.com/RamSailopal/YottaWeb-Test/blob/main/yottaweb/patientapi.m\n\nThe provisioning detail can also be attained from the **entrypoint.sh** script within each respective framework directory i.e.\n\nhttps://github.com/RamSailopal/YottaWeb-Test/blob/main/yottaweb/entrypoint.sh\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framsailopal%2Fyottaweb-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framsailopal%2Fyottaweb-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framsailopal%2Fyottaweb-test/lists"}