Skip to content

Fix stream perf test #400

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
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@
<PackageVersion Include="System.IO.Hashing" Version="8.0.0" />
<PackageVersion Include="System.IO.Pipelines" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<!-- RabbitMQ.Stream.Client.PerfTest -->
<PackageVersion Include="FSharp.Core" Version="8.0.403" />
</ItemGroup>
<ItemGroup Label="net9.0 specific" Condition="'$(TargetFramework)' == 'net9.0'">
<!-- RabbitMQ.Stream.Client -->
<PackageVersion Include="System.IO.Hashing" Version="9.0.0" />
<PackageVersion Include="System.IO.Pipelines" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<!-- RabbitMQ.Stream.Client.PerfTest -->
<PackageVersion Include="FSharp.Core" Version="9.0.201" />
</ItemGroup>
</Project>
</Project>
12 changes: 0 additions & 12 deletions RabbitMQ.Stream.Client.PerfTest/Directory.Build.targets

This file was deleted.

6 changes: 2 additions & 4 deletions RabbitMQ.Stream.Client.PerfTest/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ let main argv =
Reference = Guid.NewGuid().ToString(),
MessageHandler =
fun c ctx m ->

consumed <- consumed + 1
Task.CompletedTask )
let t = task {
let config = StreamSystemConfig(UserName = "guest",
Password = "guest")
let config = StreamSystemConfig(UserName = "guest", Password = "guest")
let! system = StreamSystem.Create config
let! stream = system.CreateStream(StreamSpec(streamName))
printfn $"Stream: {streamName}"
Expand Down Expand Up @@ -67,4 +65,4 @@ let main argv =
//t.Wait()
Console.ReadKey() |> ignore
run <- false
0
0
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<Content Include="README.md" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="FSharp.Core" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\RabbitMQ.Stream.Client\RabbitMQ.Stream.Client.csproj" />
</ItemGroup>
Expand Down