Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Attributes;
namespace Test {
public class PalindromNumber {
//Thanks to @Velial and @Denis
@pgsin
pgsin / polindrom.benchmark.log
Last active April 21, 2017 12:40
Log file (BenchmarkDotNet) of CR question "Project Euler Problem #4 - Palindromic number"
// ***** BenchmarkRunner: Start *****
// Found benchmarks:
// PalindromNumber.LargestPalindromeOriginal: DefaultJob
// PalindromNumber.LargestPalindromeDenis: DefaultJob
// PalindromNumber.LargestPalindromeEric: DefaultJob
// PalindromNumber.LargestPalindromePgs: DefaultJob
// PalindromNumber.LargestPalindromeDavislor: DefaultJob
// PalindromNumber.LargestPalindromeDavislor2: DefaultJob
// Validating benchmarks:
@pgsin
pgsin / gsl_permutation_next.test.c
Created April 11, 2017 15:45
benchmark data set
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<assert.h>
typedef struct
{
size_t size;
size_t *data;
} gsl_permutation;
using System;
using System.IO;
namespace RandSeed {
class Program {
static void Main() {
string seeds, ms, ns;
int seed, m, n;
Console.Write("Seed: ");
seeds = Console.ReadLine();
@pgsin
pgsin / concatT.cs
Created February 28, 2017 14:38
BaseLibS.Utils.StringUtils.Concat
using System;
using System.Collections.Generic;
using System.Text;
namespace Test {
public class Program {
static void Main() {
Console.WriteLine(Concat(",",new List<string> {"a","b","c"}));
}