semantic-ds-toolkit
Version:
Performance-first semantic layer for modern data stacks - Stable Column Anchors & intelligent inference
71 lines ⢠3.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runPerformanceValidation = main;
const performance_benchmark_1 = require("./performance-benchmark");
const os_1 = require("os");
async function main() {
console.log('š Batch Processing Optimization - Performance Validation');
console.log('========================================================\n');
console.log('System Information:');
console.log(`- CPU Cores: ${(0, os_1.cpus)().length}`);
console.log(`- Node.js: ${process.version}`);
console.log(`- Architecture: ${process.arch}`);
console.log(`- Platform: ${process.platform}\n`);
console.log('Quick Performance Check...');
try {
const quickCheck = await (0, performance_benchmark_1.quickPerformanceCheck)();
console.log(`⨠Quick Test Results:`);
console.log(` Throughput: ${quickCheck.throughput.toFixed(0)} rows/sec`);
console.log(` Target Met: ${quickCheck.meetsTarget ? 'ā
' : 'ā'}`);
console.log(` Time for 1M rows: ${quickCheck.timeToProcess1M.toFixed(2)}s\n`);
if (quickCheck.throughput >= 1000000) {
console.log('š ACHIEVEMENT UNLOCKED: 1M+ rows/sec throughput!');
}
else if (quickCheck.throughput >= 500000) {
console.log('š„ Excellent performance: 500K+ rows/sec');
}
else if (quickCheck.throughput >= 250000) {
console.log('ā” Good performance: 250K+ rows/sec');
}
else {
console.log('ā ļø Performance needs improvement');
}
}
catch (error) {
console.error('ā Quick test failed:', error);
}
console.log('\n' + '='.repeat(60));
console.log('Running Comprehensive Validation...\n');
try {
const benchmark = new performance_benchmark_1.PerformanceBenchmark();
const results = await benchmark.runComprehensiveValidation();
console.log('\nš VALIDATION COMPLETE');
console.log('======================');
if (results.meetsEnterpriseTargets) {
console.log('šÆ SUCCESS: All critical targets achieved!');
console.log('š Ready for enterprise deployment');
}
else {
console.log('ā ļø Some targets not met - see recommendations above');
if (results.overallScore >= 0.8) {
console.log('šŖ Strong performance - minor optimizations needed');
}
else if (results.overallScore >= 0.6) {
console.log('š Good progress - moderate improvements needed');
}
else {
console.log('š§ Significant optimization required');
}
}
console.log(`\nFinal Score: ${(results.overallScore * 100).toFixed(1)}% (${results.passedTests}/${results.totalTests} tests passed)`);
benchmark.cleanup();
}
catch (error) {
console.error('ā Comprehensive validation failed:', error);
}
}
if (require.main === module) {
main().catch(console.error);
}
//# sourceMappingURL=run-performance-test.js.map