All the results are shown in second.
num | push_back | resize | reserve | emplace_back | reserve alt | resize alt |
---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 |
2000000 | 1.39 | 0.422 | 0.984 | 1.312 | 0.953 | 0.406 |
4000000 | 2.813 | 0.843 | 1.985 | 2.734 | 1.906 | 0.797 |
require "google/cloud/logging" | |
class StackdriverLogger < Google::Cloud::Logging::Logger | |
module EntryRefinement | |
refine Google::Cloud::Logging::Entry do | |
attr_accessor :http_request | |
end | |
end | |
using EntryRefinement |
function main() { | |
var count_before = loadCount(); | |
var count_today = getCountToday(); | |
var count_sum = count_before + count_today; | |
Logger.log(count_sum); | |
saveCount(count_sum); | |
} | |
function getCountToday() { |
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using System; | |
public class EchoTest : MonoBehaviour { | |
WebSocket w; | |
int myid = -1; | |
public Text output; |