Permalink
Browse files

Merge branch '105-fix-perf-tests'

Fix #105: use PUSH/PULL for throughput tests (mirrors libzmq)
  • Loading branch information...
2 parents 01afc7f + 3e4cc0a commit 76404a94e0a0bbb0aff23e5500eb5af0a70bda05 @jgoz jgoz committed Nov 15, 2012
@@ -22,7 +22,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\perf\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -37,9 +37,14 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <DefineConstants>TRACE;DEBUG</DefineConstants>
+ <PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <Optimize>true</Optimize>
+ <DefineConstants>TRACE</DefineConstants>
+ <PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -22,7 +22,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\perf\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -37,9 +37,14 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <DefineConstants>TRACE;DEBUG</DefineConstants>
+ <PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <Optimize>true</Optimize>
+ <DefineConstants>TRACE</DefineConstants>
+ <PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -29,9 +29,8 @@ internal static int Main(string[] args)
// Initialize 0MQ infrastructure
using (ZmqContext ctx = ZmqContext.Create())
- using (ZmqSocket skt = ctx.CreateSocket(SocketType.SUB))
+ using (ZmqSocket skt = ctx.CreateSocket(SocketType.PULL))
{
- skt.SubscribeAll();
skt.Bind(address);
// Wait for the first message.
@@ -37,9 +37,14 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <PlatformTarget>x64</PlatformTarget>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -27,7 +27,7 @@ internal static int Main(string[] args)
// Initialize 0MQ infrastructure
using (ZmqContext ctx = ZmqContext.Create())
- using (ZmqSocket skt = ctx.CreateSocket(SocketType.PUB))
+ using (ZmqSocket skt = ctx.CreateSocket(SocketType.PUSH))
{
skt.Connect(address);
@@ -37,9 +37,14 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <PlatformTarget>x64</PlatformTarget>
+ <DefineConstants>TRACE;DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>..\..\perf\</OutputPath>
+ <PlatformTarget>x64</PlatformTarget>
+ <Optimize>true</Optimize>
+ <DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />

0 comments on commit 76404a9

Please sign in to comment.