Skip to content

Add an Exec Benchmark #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2013
Merged

Add an Exec Benchmark #133

merged 1 commit into from
Oct 23, 2013

Conversation

julienschmidt
Copy link
Member

I still have no plans to include a complete set of Benchmarks (yet), but this particular one was extremley useful for profiling and comparing to Query.

Very useful for profiling and comparing to Query
remain := int64(b.N)
var wg sync.WaitGroup
wg.Add(concurrencyLevel)
defer wg.Wait()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like you to drop the defer and move wg.Wait() below the loop - but that's not a blocker.

... Besides, it reads and feels very weird to use atomic.AddInt64 and sync.WaitGroup (which uses AddInt32 internally) here, but I can't think of a better way right now (and probably ever)...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change this in a later commit maybe

@arnehormann
Copy link
Member

LGTM (with or without my suggested change)

julienschmidt added a commit that referenced this pull request Oct 23, 2013
@julienschmidt julienschmidt merged commit e29272a into master Oct 23, 2013
@julienschmidt julienschmidt deleted the exec-bench branch October 23, 2013 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants