xlnt/benchmarks/disabled/bufzip.cpp
2016-12-03 16:31:30 +01:00

24 lines
416 B
C++

#include <xlnt/xlnt.hpp>
#include <xlnt/serialization/xml_document.hpp>
#include <xlnt/serialization/xml_node.hpp>
#include <xlnt/serialization/xml_serializer.hpp>
void standard()
{
xlnt::xml_document doc;
for (int i = 0; i < 1000000; i++)
{
doc.add_child("test");
}
xlnt::zip_file archive;
archive.writestr("sheet.xml", doc.to_string());
}
int main()
{
standard();
return 0;
}