Skip to content

Instantly share code, notes, and snippets.

View Flash3001's full-sized avatar

Lucas Teixeira Flash3001

View GitHub Profile
@Flash3001
Flash3001 / Distinct2.cs
Last active March 30, 2017 19:54
Distinct a list of strings ignoring diacritics and cases - v2
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace UnicodeDistinct
{
@Flash3001
Flash3001 / Distinct.cs
Last active March 30, 2017 00:28
Distinct a list of strings ignoring diacritics and cases
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnicodeDistinct
// helpers
function tryCatch(func, catcher) {
try {
func();
} catch (err) {
catcher(err);
}
};
function makePromise(time) {
using System;
using System.Linq;
using System.Threading;
namespace TearDateTime
{
class Program
{
public const int ITERATIONS = 20000;
public const int MAX_THREADS = 30;
using System;
using System.Linq;
using System.Threading;
namespace TearDateTime
{
class Program
{
const int ITERATIONS = 20000;
const int MAX_THREADS = 30;