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
| function defaultPageCompleteCheck(waitTime) { | |
| var end = window.performance.timing.loadEventEnd; | |
| var start = window.performance.timing.navigationStart; | |
| return (end > 0) && (performance.now() > end - start + waitTime); | |
| } | |
| function customWaitTime() { | |
| return 2000; | |
| } |
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
| @Slf4j | |
| public class CreateOneUser extends Simulation { | |
| { | |
| final ConcurrentLinkedQueue<Pair<String, String>> tokens = new ConcurrentLinkedQueue<>(); | |
| final int userCount = Integer.parseInt(System.getProperty("users", "1000000")); | |
| final double parallel_threads = Double.parseDouble(System.getProperty("parallel_threads", "10")); | |
| setUp( | |
| (new UserCreator().users(tokens, userCount, parallel_threads)).andThen( | |
| new TokenSaver(tokens).tokensEnd() |
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
| org.apache.http.conn.HttpHostConnectException: Connect to localhost:403 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused | |
| at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) | |
| at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:409) | |
| at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) | |
| at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) | |
| at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) | |
| at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) | |
| at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) | |
| at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) | |
| at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) |
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
| return (function(waitTime) { | |
| try { | |
| console.log(`defaultPageCompleteCheck: waitTime ${waitTime}`); | |
| var end = window.performance.timing.loadEventEnd; | |
| console.log(`defaultPageCompleteCheck: end ${end}`); | |
| var start= window.performance.timing.navigationStart; | |
| console.log(`defaultPageCompleteCheck: start ${start}`); | |
| console.log(`defaultPageCompleteCheck: end > 0 : ${end > 0}`); | |
| console.log(`defaultPageCompleteCheck: end - start + waitTime : ${end - start + waitTime}`); |
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
| # https://nginx.org/en/docs/http/ngx_http_core_module.html | |
| log_format json_combined escape=json '{' | |
| '"arg_customFields":"$arg_customFields",' | |
| '"arg_fields":"$arg_fields",' | |
| '"body_bytes_sent":"$body_bytes_sent",' | |
| '"bytes_sent":"$bytes_sent",' | |
| '"connection":"$connection",' | |
| '"connection_requests":"$connection_requests",' | |
| '"connection_time":"$connection_time",' | |
| '"content_length":"$content_length",' |
This file has been truncated, but you can view the full file.
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
| [1746351747.917][INFO]: Starting ChromeDriver 107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}) on port 37251 | |
| [1746351747.918][INFO]: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. | |
| [1746351747.939][INFO]: [21a863cdcf29a940cea3131a0bae0344] COMMAND InitSession { | |
| "capabilities": { | |
| "alwaysMatch": { | |
| "browserName": "chrome", | |
| "goog:chromeOptions": { | |
| "args": [ "--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu", "--disable-features=AutofillServerCommunication,CalculateNativeWinOcclusion,HeavyAdPrivacyMitigations,InterestFeedContentSuggestions,MediaRouter,OfflinePagesPrefetching,OptimizationHints,SidePanelPinning,Translate,msAutofillEdgeCoupons,msShoppingTrigger,msEdgeShoppingUI,msEntityExtraction,msEntityExtractionProactive,msWebAssist", "--window-position=0,0", "--window-size=1440,900", "--host-resolver-rules=\"MAP cache.pack.google.com 127.0.0.1,MAP clients1.google |
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
| package com.jetbrains.youtrack.perftest.scenario.test; | |
| import io.gatling.javaapi.core.*; | |
| import lombok.extern.slf4j.Slf4j; | |
| import java.util.function.Function; | |
| import static io.gatling.javaapi.core.CoreDsl.*; | |
| @Slf4j |
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
| # https://docs.docker.com/compose/compose-file/ | |
| # https://docs.docker.com/compose/compose-file/05-services/ | |
| services: | |
| grafana: | |
| image: grafana/grafana:10.4.7 # 11.1.4 | |
| hostname: grafana | |
| mem_reservation: 300m | |
| mem_limit: 5000m |
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
| import org.slf4j.Logger; | |
| import org.testcontainers.containers.BindMode; | |
| import org.testcontainers.containers.GenericContainer; | |
| import org.testcontainers.containers.Network; | |
| import org.testcontainers.containers.output.Slf4jLogConsumer; | |
| import org.testcontainers.containers.output.WaitingConsumer; | |
| import org.testcontainers.junit.jupiter.Testcontainers; | |
| import org.testcontainers.utility.DockerImageName; | |
| { |
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
| // "https://raw.githubusercontent.com/benc-uk/k6-reporter/main/dist/bundle.js"; | |
| //import { htmlReport } from "./ext_k6_reporter.js"; | |
| // "../ext/ext_k6-sammary-0.0.2.js" | |
| import { jUnit, textSummary } from "https://jslib.k6.io/k6-summary/0.0.2/index.js"; | |
| import { influxLineSummary } from './k6_summary_2_influx_line.js'; | |
| import http from 'k6/http'; | |
| export function do_handleSummary(data) { | |
| let filteredData = JSON.parse(JSON.stringify(data), function(key, value){ | |
| if(key=='cookies') |
NewerOlder