Coder Social home page Coder Social logo

关于性能底下的问题 about phpdish HOT 4 CLOSED

phpdish avatar phpdish commented on May 27, 2024
关于性能底下的问题

from phpdish.

Comments (4)

gouchaoer avatar gouchaoer commented on May 27, 2024

opcache也有hit到,奇怪了

array (size=8)
  'opcache_enabled' => boolean true
  'cache_full' => boolean false
  'restart_pending' => boolean false
  'restart_in_progress' => boolean false
  'memory_usage' => 
    array (size=4)
      'used_memory' => int 35838360
      'free_memory' => int 98366824
      'wasted_memory' => int 12544
      'current_wasted_percentage' => float 0.0093460083007812
  'interned_strings_usage' => 
    array (size=4)
      'buffer_size' => int 8388608
      'used_memory' => int 2466408
      'free_memory' => int 5922200
      'number_of_strings' => int 42100
  'opcache_statistics' => 
    array (size=13)
      'num_cached_scripts' => int 1154
      'num_cached_keys' => int 2275
      'max_cached_keys' => int 7963
      'hits' => int 33298
      'start_time' => int 1513224027
      'last_restart_time' => int 0
      'oom_restarts' => int 0
      'hash_restarts' => int 0
      'manual_restarts' => int 0
      'misses' => int 1163
      'blacklist_misses' => int 0
      'blacklist_miss_ratio' => float 0
      'opcache_hit_rate' => float 96.625170482575
  'scripts' => 
    array (size=1154)
      '/app/vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/IdentificationVariableDeclaration.php' => 
        array (size=6)
          'full_path' => string '/app/vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/IdentificationVariableDeclaration.php' (length=89)
          'hits' => int 37
          'memory_consumption' => int 4240
          'last_used' => string 'Thu Dec 14 04:04:18 2017' (length=24)
          'last_used_timestamp' => int 1513224258
          'timestamp' => int 1512442921

from phpdish.

gouchaoer avatar gouchaoer commented on May 27, 2024

我猜测是因为我在windows上跑docker环境,虚拟机的文件系统有消耗,像file_exsitst应该有cache的,正式环境应该很快吧

from phpdish.

gouchaoer avatar gouchaoer commented on May 27, 2024

按照这个:http://www.symfonychina.com/doc/current/performance.html来优化composer能把请求时间降到100ms以内,我可以接收这个速度,不太熟悉symfony

from phpdish.

slince avatar slince commented on May 27, 2024

symfony应用在开发环境速度是很堪忧的,生产环境是做了很多优化的,速度很快

from phpdish.

Related Issues (20)

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.