Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hashUtf8 (0.05 sec)

  1. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

          }
          String str = builder.toString();
          HashCode hashUtf8 = murmur3_32().hashBytes(str.getBytes(UTF_8));
          assertEquals(hashUtf8, murmur3_32().newHasher().putBytes(str.getBytes(UTF_8)).hash());
          assertEquals(hashUtf8, murmur3_32().hashString(str, UTF_8));
          assertEquals(hashUtf8, murmur3_32().newHasher().putString(str, UTF_8).hash());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:29:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

            } while (Character.isSurrogate((char) codePoint));
            sb.appendCodePoint(codePoint);
          }
          strings[i] = sb.toString();
        }
      }
    
      @Benchmark
      int hashUtf8(int reps) {
        int res = 0;
        for (int i = 0; i < reps; i++) {
          res +=
              System.identityHashCode(
                  hashFunctionEnum.getHashFunction().hashString(strings[i & SAMPLE_MASK], UTF_8));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

            } while (Character.isSurrogate((char) codePoint));
            sb.appendCodePoint(codePoint);
          }
          strings[i] = sb.toString();
        }
      }
    
      @Benchmark
      int hashUtf8(int reps) {
        int res = 0;
        for (int i = 0; i < reps; i++) {
          res +=
              System.identityHashCode(
                  hashFunctionEnum.getHashFunction().hashString(strings[i & SAMPLE_MASK], UTF_8));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top