-
Notifications
You must be signed in to change notification settings - Fork 47
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
Error in Orleans.TestingHost.TestCluster #145
Comments
hi there @sithwin Could you post a brief code sample of the spec you were trying to run? |
Hi @Aaronontheweb , Sorry for the lack of information. The solution name is HellowWorld.SingleProcess and SiloTests is the test project. You could download the whole solution here. I installed NBench in the test project and tried to run the runner. Here is my code:
Please let me know what wrong with my code. Thanks a lot! |
AFAIK, NBench test runner requires perf test class to have a single parameterless constructor. |
Hi,
Is it possible to do performance test with NBench and Orleans?
I tested base on Olearns sample project HelloWorl but I'm having following exception.
NBench.NBenchException: Error occurred during $SiloTests.HelloWorldSiloTests+Benchmark SETUP. ---> System.MissingMethodException: No parameterless constructor defined for this object. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at NBench.Sdk.ReflectionBenchmarkInvoker.InvokePerfSetup(BenchmarkContext context) at NBench.Sdk.ReflectionBenchmarkInvoker.InvokePerfSetup(Int64 runCount, BenchmarkContext context) at NBench.Sdk.Benchmark.PreRun() --- End of inner exception stack trace --- NBench.NBenchException: Error occurred during $SiloTests.HelloWorldSiloTests+Benchmark RUN. ---> System.NullReferenceException: Object reference not set to an instance of an object. at NBench.Sdk.ReflectionBenchmarkInvoker.InvokeRun(BenchmarkContext context) at NBench.Sdk.Benchmark.WarmUp() --- End of inner exception stack trace --- NBench.NBenchException: Error occurred during $SiloTests.HelloWorldSiloTests+Benchmark CLEANUP. ---> System.NullReferenceException: Object reference not set to an instance of an object. at NBench.Sdk.ReflectionBenchmarkInvoker.InvokePerfCleanup(BenchmarkContext context) at NBench.Sdk.Benchmark.PostRun() --- End of inner exception stack trace ---
Pls give me the idea how to work with Orleans and NBench.
Thanks!
The text was updated successfully, but these errors were encountered: