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

quantopian / zipline / 3120
87%
master: 88%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 08 May 2015 10:30AM UTC
Jobs 2
Files 67
Run time 8min
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
3120

push

travis-ci

Eddie Hebert
PERF: Use specific methods for processing events.

By having both the trade simulation main loop route events to "process"
methods based on event type and the process methods also checking event
type, there was some duplicated effort in doing that comparison many
times.

A particular case where this was noted in profiling was for the
`process_event` function which was checking if the type was not a trade
and returning early, when in a larger universe of stocks the value
returned False 99% of the time.

Instead provide separate process functions specific to each type,
e.g. e.g. `process_trade` and `process_transaction` and route traffic to
those functions in tradesimulation.

For a universe of 160 stocks on both no-op algo and an algo that rebuys
its universe every day, saw about a 10% increase locally.

Also:

- Add process_benchmark to blotter since internal subclass relies on
logic on benchmark, this allows the internal process_trade to be a
`pass`.

- Add warning on unrecoginzed event types.

5433 of 6219 relevant lines covered (87.36%)

1.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3120.1 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2) 08 May 2015 10:37AM UTC 0
87.31
Travis Job 3120.1
2 3120.2 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2) 08 May 2015 10:30AM UTC 0
87.31
Travis Job 3120.2
Source Files on build 3120
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3120
  • 9fbb2f4d on github
  • Prev Build on remove-repetitive-type-checking (#3118)
  • Next Build on remove-repetitive-type-checking (#3122)
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