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

quantopian / zipline / 3118
87%
master: 88%

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

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 3118.1 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2) 08 May 2015 10:26AM UTC 0
87.31
Travis Job 3118.1
2 3118.2 (PANDAS_VERSION=0.16.0 NUMPY_VERSION=1.9.2) 08 May 2015 10:21AM UTC 0
87.31
Travis Job 3118.2
Source Files on build 3118
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3118
  • ecc4ee4f on github
  • Next Build on remove-repetitive-type-checking (#3120)
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