INNER CODE UNIT · C#

Score

mongodb/mongo-csharp-driver · benchmarks/MongoDB.Driver.Benchmarks/BenchmarkResult.cs:59

            Score = 1_000_000_000D / median;
            Unit = "ops/s";
            MetricName = "operations_per_second";
        }

        if (methodName.EndsWith("Poco") || methodName.EndsWith("PocoBenchmark"))
        {
            Name = Name.Replace("Benchmark", "PocoBenchmark");
        }
    }

    // dataSetSize is in bytes, medianNanoseconds is in nanoseconds — result is MB/s
    private static double MegabytesPerSecond(int dataSetSize, double medianNanoseconds)
        => (dataSetSize / (medianNanoseconds / 1_000_000_000D)) / 1_000_000D;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…