Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use css-color module #3675

Closed
wants to merge 4 commits into from
Closed

Use css-color module #3675

wants to merge 4 commits into from

Commits on Jan 27, 2024

  1. Add benchmark and run on main

    # dom/get-computed-style/getComputedStyle() on document.body #
    jsdom  x 24,411 ops/sec ±2.90% (88 runs sampled)
    
    # dom/get-computed-style/getComputedStyle() on element with non-rgb color #
    jsdom  x 24,564 ops/sec ±1.24% (89 runs sampled)
    
    # dom/get-computed-style/getComputedStyle() on element with rgb color #
    jsdom  x 14,097 ops/sec ±4.15% (85 runs sampled)
    asamuzaK committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    c7f0bbe View commit details
    Browse the repository at this point in the history
  2. Add css-color

    asamuzaK committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    ab9c439 View commit details
    Browse the repository at this point in the history
  3. Update color.js and run benchmark

    # dom/get-computed-style/getComputedStyle() on document.body #
    jsdom  x 28,467 ops/sec ±1.05% (89 runs sampled)
    
    # dom/get-computed-style/getComputedStyle() on element with non-rgb color #
    jsdom  x 29,178 ops/sec ±0.91% (91 runs sampled)
    
    # dom/get-computed-style/getComputedStyle() on element with rgb color #
    jsdom  x 13,822 ops/sec ±2.08% (84 runs sampled)
    asamuzaK committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    001a58e View commit details
    Browse the repository at this point in the history
  4. Update index.js

    asamuzaK committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    9b6c11a View commit details
    Browse the repository at this point in the history