Skip to content

Instantly share code, notes, and snippets.

View KrzysFR's full-sized avatar

Christophe Chevalier KrzysFR

  • SnowBank SAS
  • Lille, France
View GitHub Profile
=== FoundationDB.Layers.Directories.DirectoryFacts.Test_Concurrent_Directory_Creation_With_Custom_Prefix() === 16:56:30.6413691
Transaction #113 (read/write, 20 operations, '#' = 0.5 ms, started 14:56:30.6132900Z, ended 14:56:30.6413691Z)
┌ oper. ┬─────────────────────────────────────────────────────────┬──── start ──── end ── duration ──┬─ sent recv ┐
│ 0 rv°│ ######X │ T+ 5.825 ~ 8.473 ( 2,648 µs) │ │ GetReadVersion => 62110623213066
│ 1 G │ ___________________:. │ T+ 13.654 ~ 13.755 ( 101 µs) │ 24 12 │ Get T<02>DL<00><FE><01>T<02>DL<00><FF><FE><00><01>version<00> => <01><00><00><00><00><00><00><00><00><00><00><00>
│ 2 // │ ____________________` │ T+ 13.760 │ - - │ // Looking for child Second under node T<02>DL<00><FE><01>T<02>DL<00><FF><FE><00>...
│:2 G │ ____________________&$ │ T+ 13.763 ~
@KrzysFR
KrzysFR / delta_shuffle_base64.txt
Created February 22, 2016 14:41
Zstandard raw samples
PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@KrzysFR
KrzysFR / zstd_vectors_results.log
Created February 22, 2016 14:21
Zstandard vectors compression tests
=== Sequential Integers ======================
XS: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ..., 28780, 28781, 28782, 28783, 28784, 28785, 28786, 28787, 28788, 28789, 28790, 28791, 28792, 28793, 28794, 28795, 28796, 28797, 28798, 28799 ]
DXS: [ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, ..., 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
# UNSHUFFLED: bytes distrbution
> [@===============================================================================================================================================================================================================================================================]
> [@===============================================================================================================================================================================================================================================================]
> [@===============================================================
namespace Doxense.Benchmarks.Perfs
{
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using BenchmarkDotNet;
using BenchmarkDotNet.Tasks;
using DotNetCross.Memory;
@KrzysFR
KrzysFR / FoundationDbDemo1.cs
Last active August 29, 2015 14:02 — forked from alexwirz/FoundationDbDemo1.cs
Updated to use directories, encoders, retry loops, ...
private static async Task Demo()
{
var cancellationTokenSource = new CancellationTokenSource();
using (var db = await Fdb.OpenAsync())
{
// open the "my_app/my_data" folder (created if missing)
var folder = await db.Directory.CreateOrOpenAsync(new [] { "my_app", "my_data" }, cancellationTokenSource.Token);
var firstId = Guid.NewGuid();
var firstSequence = new[] { "foo", "bar", "baz" };
using System;
using Microsoft.Owin.Hosting;
using Microsoft.AspNet.SignalR.Client;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.SignalR.Client.Transports;
namespace Test.SignalR.Scaleout
{
public class Program