Add profile test for cpp call perf

This commit is contained in:
Jason Turner 2015-08-28 10:33:26 -06:00
parent 0a143d1cd3
commit e21c8f87b4

View File

@ -0,0 +1,21 @@
var test_str = "bob was a string";
for( var i = 0; i < 200000; ++i)
{
test_str.size();
// test_str.find("a", i);
test_str.c_str();
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str.erase_at(1);
test_str = "bob was a string";
}