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
def get_most_profit_from_stock_quotes(quotes): | |
max_profit = 0 | |
for idx, day_quote in enumerate(quotes): | |
max_gain_day = 0 | |
lower_limit = idx+1 | |
for next in quotes[lower_limit::]: |
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 papaparse from 'https://jslib.k6.io/papaparse/5.1.1/index.js'; | |
import { SharedArray } from "k6/data"; | |
import http from 'k6/http'; | |
import { check } from 'k6'; | |
const csvData = new SharedArray("another data name", function() { | |
return papaparse.parse(open('./data.csv'), { header: true }).data; | |
}); | |
const BASE_URL = 'https://www.mywebsiteundertest.com.br' |