var util = require('util'),
    test = require('./lib/testFile').bind(module),
    xamel = require('../lib/xamel');

test(
    'performance: xml2object (simple.xml)',
    ['simple.xml'],
    function(files, beforeExit, assert) {
        var xml = files[0],
            errorCount = 0,
            ITERATIONS = 1000,
            PERFORMANCE_FACTOR = Number(process.env["NODE_XAMEL_PERF_FACTOR"]) || .75,
            iterations = ITERATIONS,
            iterationsDone = 0,
            timeStart = Date.now(),
            totalTime;

        while (iterations > 0) {
            xamel.parse(xml, { trim : true }, function(error, result) {
                error && ++errorCount;
                iterationsDone++;
            });
            --iterations;
        }

        while (iterationsDone < ITERATIONS) {
            process.nextTick();
        }

        totalTime = Date.now() - timeStart;
        console.log('   performance: ' + ITERATIONS + ' in ' + (Date.now() - timeStart) + 'ms');
        assert.ok(totalTime < (PERFORMANCE_FACTOR * ITERATIONS));

        assert.strictEqual(errorCount, 0);
    });

@@ -525,16 +525,196 @@
 lTime;%0A%0A
+        if (process.env%5B'TRAVIS'%5D === 'true') %7B%0A            console.log('   Travis-CI environment detected, skip performance test');%0A            return assert.ok(true);%0A        %7D%0A%0A
         

add performance test skip in Travis-CI environment