- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 389 for BenchmarkZ (0.27 sec)
-
guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java
package com.google.common.base; import com.google.caliper.Benchmark; import java.util.concurrent.TimeUnit; /** * Simple benchmark: create, start, read. This does not currently report the most useful result * because it's ambiguous to what extent the stopwatch benchmark is being affected by GC. * * @author Kevin Bourrillion */ public class StopwatchBenchmark { @Benchmark long stopwatch(int reps) { long total = 0;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java
* limitations under the License. */ package com.google.common.collect; import com.google.caliper.Benchmark; /** * Benchmarking interners. * * @author Dimitris Andreou */ public class InternersBenchmark { @Benchmark int weakInterner(int reps) { Interner<String> interner = Interners.newWeakInterner(); for (int i = 0; i < reps; i++) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Mar 04 04:06:35 UTC 2022 - 1.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java
} @Benchmark int hashString_4(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(S0, S1, S2, S3); } return dummy; } @Benchmark int hashString_5(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(S0, S1, S2, S3, S4); } return dummy; } @Benchmark
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java
factorials[i] = RANDOM_SOURCE.nextInt(100); } } @Benchmark long log2(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += Double.doubleToRawLongBits(DoubleMath.log2(positiveDoubles[j])); } return tmp; } @Benchmark long factorial(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
// TODO(kevinb): convert to assert once benchmark tests enable asserts by default Preconditions.checkState(hashMultiset.size() == size); } @Benchmark int hashMultiset(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (Object value : hashMultiset) { sum += value.hashCode(); } } return sum; } @Benchmark int linkedHashMultiset(int reps) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/yaml_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 06 20:18:22 UTC 2020 - 14.3K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/jmh/java/org/gradle/OptionalBenchmark.java
@Measurement(iterations = 10, time = 1, timeUnit = SECONDS) @State(Scope.Benchmark) public class OptionalBenchmark { final Path path = Paths.get("."); final Path pathRoot = Paths.get(".").toAbsolutePath().getRoot(); @Benchmark public void nullCheck(Blackhole bh) { bh.consume(nullCheck(path)); bh.consume(nullCheck(pathRoot)); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:43:12 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/benchshort.test
# This file ends in an early EOF to trigger the Benchmark prefix test, # which only happens when a benchmark prefix is seen ahead of the \n. # Normally that's due to the benchmark running and the \n coming later, # but to avoid questions of timing, we just use a file with no \n at all.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 09 01:53:38 UTC 2018 - 318 bytes - Viewed (0) -
src/cmd/link/internal/benchmark/bench.go
// code like: // // func main() { // enableBenchmarking := flag.Bool("enable", true, "enables benchmarking") // flag.Parse() // var bench *benchmark.Metrics // if *enableBenchmarking { // bench = benchmark.New(benchmark.GC) // } // bench.Start("foo") // // etc. // } func New(gc Flags, filebase string) *Metrics { if gc == GC { runtime.GC() } return &Metrics{gc: gc, filebase: filebase} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 30 18:10:36 UTC 2023 - 4.7K bytes - Viewed (0) -
.bazelrc
# CPU WHEEL test:linux_cpu_wheel_test_filters --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-no_oss_py38,-no_oss_py39,-no_oss_py310 test:linux_cpu_wheel_test_filters --build_tag_filters=-no_oss,-oss_excluded,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-no_oss_py38,-no_oss_py39,-no_oss_py310 test:linux_cpu_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 17:12:54 UTC 2024 - 52.9K bytes - Viewed (0)