<commit_before>package org.eclipse.incquery.examples.cps.performance.tests.integration

import com.google.common.base.Stopwatch
import com.google.common.collect.ImmutableList
import java.util.Random
import java.util.concurrent.TimeUnit
import org.eclipse.incquery.examples.cps.generator.dtos.ModelStats
import org.eclipse.incquery.examples.cps.generator.interfaces.ICPSConstraints
import org.eclipse.incquery.examples.cps.generator.queries.Validation
import org.eclipse.incquery.examples.cps.generator.utils.CPSGeneratorBuilder
import org.eclipse.incquery.examples.cps.generator.utils.StatsUtil
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.ClientServerScenario
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.LowSynchScenario
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.PublishSubscribeScenario
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.SimpleScalingScenario
import org.eclipse.incquery.runtime.api.IncQueryEngine
import org.junit.Test
import org.apache.log4j.Logger
import org.eclipse.incquery.examples.cps.tests.CPSTestBase

class GeneratorPerformance extends CPSTestBase{
	val seed = 11111
	val D = ModelStats.DELIMITER
	
	protected extension Logger logger = Logger.getLogger("cps.performance.generator.Tests")
	
	@Test
	def scenarios(){
		
		val Random rand = new Random(seed);
		
		//(LowSynch, SimpleScaling, ClientServer, PublishSubscribe)
		val scenarios = ImmutableList.builder
	        .add(new LowSynchScenario(rand))
			.add(new SimpleScalingScenario(rand))
        	.add(new ClientServerScenario(rand))
        	.add(new PublishSubscribeScenario(rand))
			.build
			
		val scales = ImmutableList.builder
	        .add(1)
			.add(10)
        	.add(20)
        	.add(50)
        	.add(100)
        	.add(200)
			.build<commit_msg>Added more scales<commit_after>package org.eclipse.incquery.examples.cps.performance.tests.integration

import com.google.common.base.Stopwatch
import com.google.common.collect.ImmutableList
import java.util.Random
import java.util.concurrent.TimeUnit
import org.eclipse.incquery.examples.cps.generator.dtos.ModelStats
import org.eclipse.incquery.examples.cps.generator.interfaces.ICPSConstraints
import org.eclipse.incquery.examples.cps.generator.queries.Validation
import org.eclipse.incquery.examples.cps.generator.utils.CPSGeneratorBuilder
import org.eclipse.incquery.examples.cps.generator.utils.StatsUtil
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.ClientServerScenario
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.LowSynchScenario
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.PublishSubscribeScenario
import org.eclipse.incquery.examples.cps.performance.tests.scenarios.SimpleScalingScenario
import org.eclipse.incquery.runtime.api.IncQueryEngine
import org.junit.Test
import org.apache.log4j.Logger
import org.eclipse.incquery.examples.cps.tests.CPSTestBase

class GeneratorPerformance extends CPSTestBase{
	val seed = 11111
	val D = ModelStats.DELIMITER
	
	protected extension Logger logger = Logger.getLogger("cps.performance.generator.Tests")
	
	@Test
	def scenarios(){
		
		val Random rand = new Random(seed);
		
		//(LowSynch, SimpleScaling, ClientServer, PublishSubscribe)
		val scenarios = ImmutableList.builder
	        .add(new LowSynchScenario(rand))
			.add(new SimpleScalingScenario(rand))
        	.add(new ClientServerScenario(rand))
        	.add(new PublishSubscribeScenario(rand))
			.build
			
		val scales = ImmutableList.builder
	        .add(1)
			.add(8)
			.add(16)
        	.add(32)
        	.add(64)
        	.add(128)
        	.add(256)
        	.add(512)
        	.add(1024)
			.build
{'fraction_non_alphanumeric': 0.09785522788203753, 'fraction_numerical': 0.012332439678284183, 'mean_word_length': 4.454678362573099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3027603', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1139, 'n_words': 174}