GithubHelp home page GithubHelp logo

slow perf? about glamor-jss HOT 6 CLOSED

dan-lee avatar dan-lee commented on May 22, 2024
slow perf?

from glamor-jss.

Comments (6)

dan-lee avatar dan-lee commented on May 22, 2024

Oh that does not look good indeed. I figured that all my previous performance tests were cached quite heavily (by not providing a incrementing counter in the style declarations).
Looks like I need to find the bottle necks and some improvements. I hope JSS isn't the cause.

from glamor-jss.

jeremy-coleman avatar jeremy-coleman commented on May 22, 2024

What counts as an op/s though? Like glamor and jss both use caching so if they do a comparison and use the cached version, will that show as an op? 100 vs 7k seems like maybe the bench isnt comparing apples to apples

from glamor-jss.

kof avatar kof commented on May 22, 2024

I have strong feeling that its the hashing. Also 6k vs 13k is not crazy slow, it is only 2x slower on a micro benchmark, which could be already a result of a single small suboptimal call.

from glamor-jss.

jeremy-coleman avatar jeremy-coleman commented on May 22, 2024

140 vs 7k is though, but i also read an isse about instantiating jss , but im not sure how that accounts for glamor as well

from glamor-jss.

kof avatar kof commented on May 22, 2024

if glamor scores 100 vs 7k emotion on the same benchmark, something is wrong with the benchmark, it does something naively wrong that deoptimizes everything.

from glamor-jss.

dan-lee avatar dan-lee commented on May 22, 2024

I removed the performance benchmarks now, as @kof said I think they were flawed and not well thought through. I might take another stab at them

from glamor-jss.

Related Issues (4)

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.