From 58037c6313c74777910c00ae645ff9b9f81e50fc Mon Sep 17 00:00:00 2001 From: "Cody W. Eilar" Date: Sun, 14 Feb 2016 11:14:39 -0700 Subject: [PATCH] Remove itoa experiment - According to http://stackoverflow.com/questions/3799595/itoa-function-problem, itoa is not part of the C++ standard. This will inevitably break builds (as it did for me). It is recommended not to use it. --- experiments/DemoToString/DemoToString.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/experiments/DemoToString/DemoToString.cpp b/experiments/DemoToString/DemoToString.cpp index af5e174..5f8a067 100644 --- a/experiments/DemoToString/DemoToString.cpp +++ b/experiments/DemoToString/DemoToString.cpp @@ -118,14 +118,6 @@ BENCHMARK(DemoToString, table, 128, 1000000) celero::DoNotOptimizeAway(uint8str[x]); } -BENCHMARK(DemoToString, itoa, 128, 1000000) -{ - const uint8_t x = rand() % 42; - char buffer[64]; - _itoa(x, buffer, 10); - celero::DoNotOptimizeAway(std::string(buffer)); -} - /// http://ideone.com/GkPcy BENCHMARK(DemoToString, hopmanFast, 128, 1000000) {