Coder Social home page Coder Social logo

Comments (3)

cyotek avatar cyotek commented on June 8, 2024

Initial results from the Allocations branch. Better memory usage, slightly worse performance.

BenchmarkDotNet=v0.10.8, OS=Windows 10 Redstone 1 (10.0.14393)
Processor=AMD FX(tm)-6300 Six-Core Processor, ProcessorCount=6
Frequency=3429483 Hz, Resolution=291.5891 ns, Timer=TSC
  [Host]     : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.7.2101.1
  DefaultJob : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.7.2101.1
Method Mean Error StdDev Gen 0 Gen 1 Gen 2 Allocated
LoadAuto 9.292 ms 0.2808 ms 0.7828 ms 187.5000 93.7500 15.6250 1.04 MB
LoadText 20.984 ms 0.4142 ms 1.0316 ms 1250.0000 31.2500 31.2500 2.18 MB
LoadXml 8.477 ms 0.1682 ms 0.4371 ms 203.1250 93.7500 15.6250 1.03 MB
V1LoadText 14.127 ms 0.2820 ms 0.5084 ms 2156.2500 15.6250 15.6250 3.7 MB
V1LoadXml 8.898 ms 0.2048 ms 0.5974 ms 187.5000 93.7500 15.6250 1.03 MB

from cyotek.drawing.bitmapfont.

cyotek avatar cyotek commented on June 8, 2024

Initial results from the binary-format-support branch comparing loading binary fonts vs text/xml.

This branch is using a smaller font than the one in other branches so can't be directly compared with above results. Clearly binary is a winner however, as expected.

BenchmarkDotNet=v0.10.8, OS=Windows 10 Redstone 1 (10.0.14393)
Processor=AMD FX(tm)-6300 Six-Core Processor, ProcessorCount=6
Frequency=3429483 Hz, Resolution=291.5891 ns, Timer=TSC
  [Host]     : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.7.2101.1
  DefaultJob : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.7.2101.1
Method Mean Error StdDev Gen 0 Gen 1 Allocated
LoadAutoBinary 365.0 us 7.215 us 14.410 us 16.1133 - 28.41 KB
LoadAutoText 3,338.5 us 65.871 us 87.936 us 460.9375 - 787.27 KB
LoadAutoXml 2,350.2 us 55.259 us 156.760 us 62.5000 19.5313 240.17 KB
LoadBinary 189.7 us 3.714 us 5.890 us 13.6719 - 23.81 KB
LoadText 3,023.7 us 64.865 us 124.974 us 457.0313 - 782.7 KB
LoadXml 1,998.3 us 48.459 us 139.038 us 70.3125 19.5313 235.58 KB

from cyotek.drawing.bitmapfont.

cyotek avatar cyotek commented on June 8, 2024

Done via #18

from cyotek.drawing.bitmapfont.

Related Issues (16)

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.