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

quantopian / zipline / 3120 / 1
87%
master: 88%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 08 May 2015 10:37AM UTC
Files 67
Run time 57s
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

08 May 2015 10:30AM UTC coverage: 87.313%. Remained the same
PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2

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.

5430 of 6219 relevant lines covered (87.31%)

0.87 hits per line

Source Files on job 3120.1 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3120
  • Travis Job 3120.1
  • 9fbb2f4d on github
  • Prev Job for PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2 on remove-repetitive-type-checking (#3118.2)
  • Next Job for PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2 on remove-repetitive-type-checking (#3122.1)
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