GithubHelp home page GithubHelp logo

Comments (2)

karthik2804 avatar karthik2804 commented on September 28, 2024

Based on some experimentation not running the body of every article through the markdown parser seems to make a significant difference in the performance.
With parsing the markdown content

bombardier -c 1 -n 1000 http://localhost:3000/
Bombarding http://localhost:3000/ with 1000 request(s) using 1 connection(s)
 1000 / 1000 [========================================================================================================================================================] 100.00% 41/s 24s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec        41.47       8.38     117.03
  Latency       24.14ms     3.74ms    41.19ms
  HTTP codes:
    1xx - 0, 2xx - 1000, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:     1.47MB/s

Without parsing the markdown content

bombardier -c 1 -n 1000 http://localhost:3000/
Bombarding http://localhost:3000/ with 1000 request(s) using 1 connection(s)
 1000 / 1000 [========================================================================================================================================================] 100.00% 65/s 15s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec        66.26      23.45     105.03
  Latency       15.09ms   621.28us    20.05ms
  HTTP codes:
    1xx - 0, 2xx - 1000, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:     2.29MB/s

Also, an added benefit of not parsing the markdown content is that once the rhai shortcodes #91 gets merged, the performance of pages that don't use shortcodes will not incur a performance penalty due to other pages utilizing shortcodes.

from bartholomew.

karthik2804 avatar karthik2804 commented on September 28, 2024

Closed by #103 and associated PR #104.

from bartholomew.

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.