• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nwoltman / string-natural-compare / 41 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2016 01:26AM UTC
Files 1
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Apr 2016 01:25AM UTC coverage: 100.0%. Remained the same
41.2

push

travis-ci

nwoltman
Reduce code and improve performance and memory usage

This change is in the code that compares numbers within strings.
The main performance increase comes from creating less variables
and checking individual characters instead of creating substrings
and comparing those (all of which also reduces memory usage).

This gave a speedup of 1.9 on benchmark #3
This also speeds up benchmark #5 if you modify one of the numbers
such that the difference between the numbers occurs earlier

60 of 60 relevant lines covered (100.0%)

166.05 hits per line

Source Files on job 41.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41
  • Travis Job 41.2
  • d58b22b5 on github
  • Prev Job for on master (#40.2)
  • Next Job for on master (#42.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc