Code Monkey home page Code Monkey logo

php-jit-enabled-with-docker's Introduction

PHP with JIT enabled with Dockerfile and Docker Compose stack.

  • Neste projeto teremos um ambiente Docker com as configurações necessárias para ativar o JIT, além disso todo ambiente será feito com Docker e estará pronto para ser executado via Docker Compose.
  • O projeto será executado por padrão na porta 8000. Você pode acessar clicando aqui localhost:8000
  • Vídeos com todo o tutorial de utilização do JIT + Benchmarking

Scripts

  • Fazer buikd ambiente Docker
sh dc-build.sh
  • Subir ambiente Docker
sh dc-up.sh
  • Derrubar ambiente Docker
sh dc-down.sh
  • Reiniciar ambiente Docker
sh dc-restart.sh
  • Entrar no container do PHP
sh dc-container.sh
  • Checar se JIT está ativo
sh dc-check-jit.sh
  • Remover todos os logs/results/docs
rm -rf ./public/results/*.html
rm -rf ./public/docs/*.json
rm -rf ./public/logs/*.log

/////////////////////////////////////

Usando o Vegeta para test de stress

  • Confira o vídeo em que faço um tutorial sobre o uso do Vegeta https://youtu.be/FNj0e1ZT4fI

  • Dentro do terminal WSL, já com o Vegeta configurado, execute:

    # TESTE 1 - Script teste5.php
    #### Com JIT max 900 | Sem JIT max 180 ####
    echo "GET http://127.0.0.1:8000/teste5.php" | vegeta attack -rate=900 -duration=30s | vegeta report

    # Teste 2 - Script index.php
    #### Com Jit Max 3700 | Sem JIT max 4100
    echo "GET http://127.0.0.1:8000/index.php" | vegeta attack -rate=3700 -duration=10s | vegeta report

php-jit-enabled-with-docker's People

Contributors

urnauzao avatar

Stargazers

 avatar

Watchers

 avatar

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.