{"id":15092868,"url":"https://github.com/jeffotoni/benchmark","last_synced_at":"2025-04-12T06:32:43.987Z","repository":{"id":154169845,"uuid":"626540177","full_name":"jeffotoni/benchmark","owner":"jeffotoni","description":"alguns testes de stress para divertimos um pouco com diversas langs usadas em aplicações web para backend","archived":false,"fork":false,"pushed_at":"2023-05-26T19:37:32.000Z","size":13862,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T02:11:11.345Z","etag":null,"topics":["c","cpp","csharp","dart","deno","go","java","javascipt","lua","nodejs","php","rust"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffotoni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-11T17:10:21.000Z","updated_at":"2025-03-02T13:14:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"23ecad50-8108-4b97-993f-a4e0e84177f4","html_url":"https://github.com/jeffotoni/benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffotoni%2Fbenchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffotoni%2Fbenchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffotoni%2Fbenchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffotoni%2Fbenchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffotoni","download_url":"https://codeload.github.com/jeffotoni/benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248529926,"owners_count":21119581,"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","cpp","csharp","dart","deno","go","java","javascipt","lua","nodejs","php","rust"],"created_at":"2024-09-25T11:01:49.535Z","updated_at":"2025-04-12T06:32:42.287Z","avatar_url":"https://github.com/jeffotoni.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benchmark\n\nO objetivo deste repo é criar cenários para observar o desempenho de linguagens utilizadas na web \npara desenvolvimento de backend linguagens como:\n - Go\n - C\n - C++\n - Java\n - Python\n - Ruby\n - PHP\n - C#\n - Rust\n - Javascript Nodejs\n - Javascript Deno\n - Javascript Bun\n - Dart\n - Lua\n - Elixir\n - VLang\n\nPoderemos propor diversos cenários e linguagens de programação e implementar podem ficar a vontade em enviar seu PR.\nTudo é para matar a curiosidade mesmo, nada muito complexo quando tratamos de desenvolvimento em backend para web.\n\nA máquina que está sendo usada para fazer os testes é:\n\n| Coluna 1 | Coluna 2 |\n|----------|----------|\n| Vendor | Genuine Intel |\n| Model | Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz |\n| RAM | 32G |\n| Cache | 12288kb |\n| siblings/núcleos | 12 |\n| bogomips | 5199.98 |\n| address sizes | 39 bits physical, 48 bits virtual |\n\n\nUsamos o k6 e wrk para fazer nossos testes de stress.\n\n```bash\n$ cd k6\n$ k6 run -d 90s -u 100 script-get.js\n\n          /\\      |‾‾| /‾‾/   /‾‾/   \n     /\\  /  \\     |  |/  /   /  /    \n    /  \\/    \\    |     (   /   ‾‾\\  \n   /          \\   |  |\\  \\ |  (‾)  | \n  / __________ \\  |__| \\__\\ \\_____/ .io\n```\n\n```bash\n$ wrk -t12 -c100 -d15s http://localhost:8080/v1/user\nRunning 15s test @ http://localhost:8080/v1/user\n  12 threads and 100 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency     1.09ms    1.75ms  59.07ms   98.98%\n    Req/Sec     8.06k     1.07k   26.57k    86.95%\n  1449705 requests in 15.10s, 5.20GB read\nRequests/sec:  96009.25\nTransfer/sec:    352.69MB\n\n```\n\nO nosso objetivo é só termos uma noção quando o assunto é memória, cpu, quantidade de requisições \nsuportadas e os tempos médios de respostas, nada muito complexo só para matar a curiosidade mesmo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffotoni%2Fbenchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffotoni%2Fbenchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffotoni%2Fbenchmark/lists"}