UNPKG

semantic-ds-toolkit

Version:

Performance-first semantic layer for modern data stacks - Stable Column Anchors & intelligent inference

71 lines • 3.14 kB
#!/usr/bin/env node "use strict"; 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