GitHub

Benchmarks

Numbers generated by python -m pyweb.bench and pyweb build when this site was built. They measure PyWeb itself; they are not a comparison with other frameworks.

#What ships to the browser

  • 48,010 B shared runtime, minified
  • 15,323 B shared runtime, gzip

The runtime is downloaded once and cached across pages (production builds content-hash it). Each interactive page adds its own module; pages with nothing dynamic ship no JavaScript at all.

Benchmark appLinesPage JS (gzip)Total JS incl. runtime (gzip) HTMLCompileServer render
counter12296 B15619 B377 B35.1 ms0.044 ms
todo22449 B15772 B421 B2.5 ms0.047 ms
blog90 B0 B291 B0.8 ms0.039 ms

#Example apps

ExamplePagesPage JS, all pages (gzip)Interactive pages
saas34782 B3
counter11223 B1
todo12351 B1
ui110331 B1
blog22184 B2
auth33487 B3
chat22166 B2
showcase1931 B1
site50 B0
dashboard13890 B1
ai-chat11570 B1
desktop11478 B1

#Method

  • Sizes are of minified output (the production build's token-aware minifier) compressed with gzip level 9.
  • Server render time is the mean of 50 renders of the page through the same code path pyweb serve uses, in one process, on the machine that built this site.
  • Compile time is a single cold compile of the source.