Giter VIP home page Giter VIP logo

jeffotoni / benchmark Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 13.54 MB

alguns testes de stress para divertimos um pouco com diversas langs usadas em aplicações web para backend

License: MIT License

C++ 11.10% C 1.37% Dart 0.77% TypeScript 5.71% Go 39.94% Dockerfile 5.29% Makefile 0.76% Java 1.52% JavaScript 11.54% PHP 2.57% Lua 2.00% Elixir 1.60% Python 1.80% Rust 13.19% V 0.85%
go java c cpp csharp dart deno javascipt nodejs php rust lua

benchmark's Introduction

Benchmark

O objetivo deste repo é criar cenários para observar o desempenho de linguagens utilizadas na web para desenvolvimento de backend linguagens como:

  • Go
  • C
  • C++
  • Java
  • Python
  • Ruby
  • PHP
  • C#
  • Rust
  • Javascript Nodejs
  • Javascript Deno
  • Javascript Bun
  • Dart
  • Lua
  • Elixir
  • VLang

Poderemos propor diversos cenários e linguagens de programação e implementar podem ficar a vontade em enviar seu PR. Tudo é para matar a curiosidade mesmo, nada muito complexo quando tratamos de desenvolvimento em backend para web.

A máquina que está sendo usada para fazer os testes é:

Coluna 1 Coluna 2
Vendor Genuine Intel
Model Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
RAM 32G
Cache 12288kb
siblings/núcleos 12
bogomips 5199.98
address sizes 39 bits physical, 48 bits virtual

Usamos o k6 e wrk para fazer nossos testes de stress.

$ cd k6
$ k6 run -d 90s -u 100 script-get.js

          /\      |‾‾| /‾‾/   /‾‾/   
     /\  /  \     |  |/  /   /  /    
    /  \/    \    |     (   /   ‾‾\  
   /          \   |  |\  \ |  (‾)  | 
  / __________ \  |__| \__\ \_____/ .io
$ wrk -t12 -c100 -d15s http://localhost:8080/v1/user
Running 15s test @ http://localhost:8080/v1/user
  12 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.09ms    1.75ms  59.07ms   98.98%
    Req/Sec     8.06k     1.07k   26.57k    86.95%
  1449705 requests in 15.10s, 5.20GB read
Requests/sec:  96009.25
Transfer/sec:    352.69MB

O nosso objetivo é só termos uma noção quando o assunto é memória, cpu, quantidade de requisições suportadas e os tempos médios de respostas, nada muito complexo só para matar a curiosidade mesmo.

benchmark's People

Contributors

jeffotoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

benchmark's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.