This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== 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 | |
> [@===============================================================================================================================================================================================================================================================] | |
> [@===============================================================================================================================================================================================================================================================] | |
> [@=============================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== 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 ~ |