ORMBattle.NETThe ORM tool shootout

  • Increase font size
  • Default font size
  • Decrease font size
Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Comments are enabled everywhere
(1 viewing) (1) Guest
Article discussions
Go to bottomPage: 1
TOPIC: Comments are enabled everywhere
#16
Comments are enabled everywhere 2 Years, 5 Months ago Karma: 0
We'll be glad to listed your opinion.
admin
Admin
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#51
Re:Comments are enabled everywhere 2 Years, 5 Months ago Karma: 0
I downloaded the test solution source, as I was wanting to test EntitySpaces for myself and I didn't know if they were going to participate or not.

After running the tests, I noticed there didn't seem to be a good method of getting the test results loaded into a spreadsheet. Thus, I added code to the Scorecard.cs class which will output a tab delimited string of the results. I then called this method from the PerformanceTestRunner and output it to a file. I thought you might be interested in the following code:

public string ToDelimitedString()
{
string delimiter = "\t";
StringBuilder sb = new StringBuilder();
AppendDelimitedField(sb, string.Empty, delimiter);
foreach (var tool in Tools)
AppendDelimitedField(sb, tool, delimiter);
sb.AppendLine();
foreach (var test in Tests)
{
AppendDelimitedField(sb, GetPrintableTestName(Indent(test)), delimiter);
if (!(test.IsNullOrEmpty() || test.EndsWith(":")))
foreach (var tool in Tools)
{
object result = Get(tool, test);
string r = string.Format("{0,10}", result ?? "n/a");
AppendDelimitedField(sb, r, delimiter);
}
sb.AppendLine();
}
return sb.ToString();
}

private void AppendDelimitedField(StringBuilder sb, string field, string delimiter)
{
sb.Append(field);
sb.Append(delimiter);
}
jimhowe
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#53
Re:Comments are enabled everywhere 2 Years, 5 Months ago Karma: 0
Thanks for your help... But I'd prefer to leave the current implementation:
- Excel support "fixed width" import option. And it works very well for TestRunner.exe output.
- Since we publish these files on code.ormbattle.net (results there are updated more frequently), they must be human-readable.
alexyakunin
Admin
Posts: 25
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Polls

Which test must we add next?
 

Subscribe to our blog