• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Livecloud x Dropbox performance
#2
Hi Simon,

I downloaded your sample stack and put together my own using the code in your "LCM" button.


This is my button script (it's almost identical to yours):

on mouseUp
local tData, tPath, tBlobID, tStart, tEnd

export snapshot from image "LCMImage" to tData as JPEG
put tData into url ("binfile:" & specialFolderPath("documents") & "/" & "mypicture.jpg")
put "mypicture.jpg" into tPath

put the millisecs into tStart
put cdb_createBlob(tPath, "cloud") into tBlobID
put the millisecs into tEnd

if not cdb_result() then
answer "failed createBlob"
else
put tEnd - tStart
end if
end mouseUp


The following results were using developer auth:

--sample1: 1.536 seconds
--sample2: 1.578 seconds
--sample3: 1.726 seconds
--sample4: 2.110 seconds
--sample5: 1.563 seconds
--sample6: 1.322 seconds
--avg: 1.639 seconds

After running those tests I noticed you were using user auth. So I ran my tests again and got the following results using user auth:

--sample1: 2.143 seconds
--sample2: 1.644 seconds
--sample3: 1.353 seconds
--sample4: 1.537 seconds
--sample5: 2.214 seconds
--sample6: 1.230 seconds
--avg: 1.686 seconds


One reason for the differences in our results could be location. My account is on the San Francisco region and I'm located in Southern California. Another could be network speed. Other than that your code looks good. There aren't any changes I would make.
  Reply


Messages In This Thread
RE: Livecloud x Dropbox performance - by efrain.c - 07-30-2019, 09:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)