BenchmarkDotNet=v0.10.8, OS=Windows 8.1 (6.3.9600)
Processor=Intel Core i7-4770 CPU 3.40GHz (Haswell), ProcessorCount=8
Frequency=3312643 Hz, Resolution=301.8738 ns, Timer=TSC
dotnet cli version=2.0.0-preview2-006497
[Host] : .NET Core 4.6.00001.0, 64bit RyuJIT
DefaultJob : .NET Core 4.6.00001.0, 64bit RyuJIT
This file contains hidden or 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
| fn main() { | |
| let mut x = [0u8;16]; | |
| x[0..3].copy_from_slice(&x[4..8]) | |
| } |
This file contains hidden or 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; | |
| namespace litedbtest | |
| { | |
| using LiteDB; | |
| using BenchmarkDotNet; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| using System.IO; | |
| using System.Threading; |
This file contains hidden or 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
| extern crate tokio_core; | |
| extern crate tokio_io; | |
| extern crate futures; | |
| extern crate futures_cpupool; | |
| #[allow(dead_code)] | |
| pub fn future_test() { | |
| let pool = futures_cpupool::CpuPool::new_num_cpus(); | |
| let mut core = tokio_core::reactor::Core::new().unwrap(); | |
| // all future must be same type |
This file contains hidden or 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
| extern crate url; | |
| extern crate hyper; | |
| use std::str::FromStr; | |
| use hyper::Uri as HyperUri; | |
| #[allow(dead_code)] | |
| fn hyper_test() { | |
| let parsed = HyperUri::from_str("/abc/def?a=b").unwrap(); |
This file contains hidden or 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; | |
| namespace dicomparison | |
| { | |
| using Unity; | |
| using AfContainerBuilder = Autofac.ContainerBuilder; | |
| using Autofac; | |
| using BenchmarkDotNet; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; |
This file contains hidden or 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; | |
| namespace recyclablestreamtest | |
| { | |
| using Microsoft.IO; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| using System.IO; | |
| public class RecyclableStreamBenchmark | |
| { |
This file contains hidden or 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 System.Collections; | |
| using System.Collections.Generic; | |
| struct TestEnumerator<T> : IEnumerator<T> | |
| { | |
| ArraySegment<T> m_Segment; | |
| public TestEnumerator(ref ArraySegment<T> seg) | |
| { | |
| m_Segment = seg; | |
| } |
This file contains hidden or 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
| # Howto(powershell): & .\randomgen.ps1 -FilePath [็ๆใใใใใกใคใซใธใฎใใน] -FileSize [็ๆใใใใใกใคใซใตใคใบ] | |
| # Howto(cmd): powershell .\randomgen.ps1 -FilePath [็ๆใใใใใกใคใซใธใฎใใน] -FileSize [็ๆใใใใใกใคใซใตใคใบ] | |
| param ( | |
| [string]$FilePath, | |
| [int]$FileSize | |
| ) | |
| $rnd = [System.Security.Cryptography.RNGCryptoServiceProvider]::Create() |
This file contains hidden or 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; | |
| namespace vectortest | |
| { | |
| using System.Numerics; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| static class Util |