johnlpage / POCDriver

Workload Driver for MongoDB in Java
Other
204 stars 87 forks source link

Add the timestamp for each line to the output file using -o #5

Closed sisteming closed 6 years ago

sisteming commented 8 years ago

Hi John,

I modified slightly the code of the POCTestReporter class so that it adds a timestamp for each line in the output file. This is useful to then graph the results from the output file using time series graphing tools like Kibana or similars.

The result is the following:

2016-02-11T15:25:20,10,44544,inserts,4342,0.00,keyqueries,0,100,updates,0,100,rangequeries,0,100 2016-02-11T15:25:30,20,98816,inserts,5464,0.00,keyqueries,0,100,updates,0,100,rangequeries,0,100 2016-02-11T15:26:22,10,19968,inserts,1945,0.00,keyqueries,0,100,updates,0,100,rangequeries,0,100

I attached the modified jar including this change.

Feel free to ping me if you have any questions.

Thanks! Marco

POCDriver.jar.zip

johnlpage commented 7 years ago

Can you send a PR?