##// END OF EJS Templates
JSONWriter improvements
JSONWriter improvements

File last commit:

r150:3258399cba83 v2
r150:3258399cba83 v2
Show More
Program.cs
44 lines | 950 B | text/x-csharp | CSharpLexer
using System;
using Implab.Diagnostics;
using Implab.Parallels;
using Implab;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Threading;
using Implab.JSON;
using System.IO;
namespace MonoPlay {
class MainClass {
public static void Main(string[] args) {
if (args == null)
throw new ArgumentNullException("args");
var t1 = Environment.TickCount;
for(int i =0; i < 1000000; i++)
using (var tw = new StringWriter()) {
var jw = new JSONWriter(tw);
jw.WriteValue("\r\nhere\tvalue\u0002\u0003");
//Console.WriteLine(tw);
}
var t2 = Environment.TickCount;
Console.WriteLine("done: {0} ms, {1:.00} Mb, {2} GC", t2 - t1, GC.GetTotalMemory(false) / (1024*1024), GC.CollectionCount(0) );
}
static void DoTest() {
}
}
}