cyucelen / marker

🖍️ Marker is the easiest way to match and mark strings for colorful terminal outputs!
MIT License
47 stars 13 forks source link

add benchmarks; optimize colorizeStrings in one allocation #2

Closed brenol closed 4 years ago

brenol commented 4 years ago

saw on reddit, really fun project :) this optimizes it a little bit and adds some benchmarks for fun.

unfortunately most of the allocations are in colors, so there isnt much that can be done there...

codecov-io commented 4 years ago

Codecov Report

Merging #2 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #2   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          48     47    -1     
=====================================
- Hits           48     47    -1
Impacted Files Coverage Δ
marker.go 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update df126ab...e34622c. Read the comment docs.