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

nwoltman / string-natural-compare / 41
100%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2016 01:26AM UTC
Jobs 2
Files 1
Run time 1s
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

pending completion
41

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%)

332.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41.1 19 Apr 2016 01:26AM UTC 0
100.0
Travis Job 41.1
2 41.2 19 Apr 2016 01:26AM UTC 0
100.0
Travis Job 41.2
Source Files on build 41
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #41
  • d58b22b5 on github
  • Prev Build on master (#40)
  • Next Build on master (#42)
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