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

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

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 12 May 2015 12:24AM UTC
Files 67
Run time 3s
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 04:44PM UTC coverage: 87.468%. First build
PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2

push

travis-ci

ehebert
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.

5437 of 6216 relevant lines covered (87.47%)

0.87 hits per line

Source Files on job 3135.1 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3135
  • Travis Job 3135.1
  • dba0a99a on github
  • Next Job for PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2 on order-target-update (#3139.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