Skip to content

Conversation

@jorgebucaran
Copy link

@jorgebucaran jorgebucaran commented Jul 15, 2018

Summary

What kind of change does this PR introduce? (check at least one)

  • Refactor
  • Other, please describe: package swap to another

Does this PR introduce a breaking change? (check one)

  • No

Hello @yyx990803 and maintainers! 👋

This PR only swaps chalk for Turbocolor.

Turbocolor loads >20x faster and applies styles >18x faster than chalk for the same API (see benchmarks). So, it should give you a small perf boost.

Let me know if this works for you. Cheers!

# Load Time
chalk: 15.190ms
turbocolor: 0.777ms

# All Colors
chalk × 8,729 ops/sec
turbocolor × 158,383 ops/sec

# Chained Colors
chalk × 1,838 ops/sec
turbocolor × 39,830 ops/sec

# Nested Colors
chalk × 4,049 ops/sec
turbocolor × 59,833 ops/sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant