Giter Club home page Giter Club logo

Comments (4)

starjun avatar starjun commented on August 18, 2024

可以自己测试下,动手实践比猜测好

from openstar.

JoyChou93 avatar JoyChou93 commented on August 18, 2024

测试了,发现用io.open比socket会稍微慢一点。
试想一个场景,如果在高并发的写日志过程中,访问正常页面,速度会不会影响?我测试后,影响并不大,我在思考为什么?

from openstar.

starjun avatar starjun commented on August 18, 2024

记录日志和执行阶段是有关系的,io.open 放到log阶段去写日志 和access阶段 是不一样的,我用思博伦打的并发测试,io.open 性能很高,比socket高太多。你可以在测试一下

from openstar.

linger118927 avatar linger118927 commented on August 18, 2024

不能够吧,io.open比socket高,如果socket是阻塞模式的那肯定高,虽然现在大多数开源的项目用的都是本地log记录的方式,但是经过测试,跟 非阻塞方式的socket方式记录log比还是慢的

from openstar.

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.