Skip to content

Commit aaae080

Browse files
algolia-botmillotp
andcommitted
fix(go): true speed of benchmark (#3786) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 7cde7be commit aaae080

File tree

9 files changed

+9
-24
lines changed

9 files changed

+9
-24
lines changed

tests/output/csharp/src/generated/benchmark/Search.test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public async Task BenchmarkTest0()
4242
};
4343
var client = new SearchClient(_config);
4444

45-
for (int i = 0; i < 1000; i++)
45+
for (int i = 0; i < 2000; i++)
4646
{
4747
var res = await client.SearchAsync<Hit>(
4848
new SearchMethodParams

tests/output/go/tests/benchmark/search_test.go

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/output/java/src/test/java/com/algolia/benchmark/Search.test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void benchmarkTest0() {
3838
"test-api-key",
3939
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6682)), false)
4040
);
41-
for (int i = 0; i < 1000; i++) {
41+
for (int i = 0; i < 2000; i++) {
4242
SearchResponses res = client.search(
4343
new SearchMethodParams()
4444
.setRequests(

tests/output/javascript/src/benchmark/search.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('benchmark', () => {
99
hosts: [{ url: 'localhost', port: 6682, accept: 'readWrite', protocol: 'http' }],
1010
});
1111

12-
for (let i = 0; i < 1000; i++) {
12+
for (let i = 0; i < 2000; i++) {
1313
const result = await client.search({
1414
requests: [
1515
{ indexName: 'cts_e2e_benchmark_search_javascript', query: 'iphone 15 pro max 512gb', hitsPerPage: 50 },

tests/output/kotlin/src/commonTest/kotlin/com/algolia/benchmark/SearchTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SearchTest {
1717
@Test
1818
fun `benchmark the search method`() = runTest {
1919
val client = SearchClient(appId = "test-app-id", apiKey = "test-api-key", options = ClientOptions(hosts = listOf(Host(url = "localhost", protocol = "http", port = 6682))))
20-
for (i in 1..1000) {
20+
for (i in 1..2000) {
2121
client.runTest(
2222
call = {
2323
search(

tests/output/php/src/benchmark/SearchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function test0benchmark(): void
2323
{
2424
$client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6682']));
2525

26-
for ($i = 1; $i <= 1000; ++$i) {
26+
for ($i = 1; $i <= 2000; ++$i) {
2727
$res = $client->search(
2828
['requests' => [
2929
['indexName' => 'cts_e2e_benchmark_search_php',

tests/output/python/tests/benchmark/search_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async def test_benchmark_0(self):
1616
[Host(url="localhost", scheme="http", port=6682)]
1717
)
1818
_client = SearchClient.create_with_config(config=_config)
19-
for _ in range(0, 1000):
19+
for _ in range(0, 2000):
2020
_req = await _client.search(
2121
search_method_params={
2222
"requests": [

tests/output/ruby/test/benchmark/search_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_benchmark0
2121
"searchClient"
2222
)
2323
)
24-
for i in 1..1000
24+
for i in 1..2000
2525
req = client.search(
2626
SearchMethodParams.new(
2727
requests: [

tests/output/swift/Tests/benchmark/SearchTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class SearchClientClientBenchmark: XCTestCase {
1717
)
1818
let transporter = Transporter(configuration: configuration)
1919
let client = SearchClient(configuration: configuration, transporter: transporter)
20-
for i in 1 ... 1000 {
20+
for i in 1 ... 2000 {
2121
let response: Response<SearchResponses<Hit>> = try await client
2222
.searchWithHTTPInfo(searchMethodParams: SearchMethodParams(requests: [
2323
SearchQuery

0 commit comments

Comments
 (0)