import { bench, run } from "mitata"; import { StringDecoder } from "string_decoder"; var short = Buffer.from("Hello World!"); var shortUTF16 = Buffer.from("Hello World 💕💕💕"); var long = Buffer.from("Hello World!".repeat(1024)); var longUTF16 = Buffer.from("Hello World 💕💕💕".repeat(1024)); bench(`${short.length} ascii`, () => { var decoder = new StringDecoder(); decoder.write(short); }); bench(`${short.length} utf8`, () => { var decoder = new StringDecoder(); decoder.write(shortUTF16); }); bench(`${long.length} ascii`, () => { var decoder = new StringDecoder(); decoder.write(long); }); bench(`${longUTF16.length} utf8`, () => { var decoder = new StringDecoder(); decoder.write(longUTF16); }); await run(); Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.H (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2019-04-30update read_raw_data.py to do the write thing whether or not each fab has a h...Gravatar Andrew Myers 1-2/+4
2019-04-30Allow to plot the fine mesh, even with only one levelGravatar Remi Lehe 1-1/+1
2019-04-29fix typoGravatar Andrew Myers 1-1/+1
2019-04-29fix number of particle containers due to upstream changesGravatar Andrew Myers 1-1/+1
2019-04-29Implemented multiple antennas in picmiGravatar Dave Grote 6-21/+39
2019-04-29Revert to enumeration in structGravatar Remi Lehe 1-3/+4
2019-04-29make sure we initialize the new particle components for all the different pat...Gravatar Andrew Myers 2-0/+29
2019-04-29make sure we pass the right number of flags into the WritePlotFile routineGravatar Andrew Myers 1-2/+16
2019-04-29Update PSATD algorithmGravatar Remi Lehe 1-31/+21
2019-04-29Update structure for storing spectral fieldsGravatar Remi Lehe 2-48/+18
2019-04-29replace the compile time checks used for the old particle attributes with run...Gravatar Andrew Myers 2-47/+52
2019-04-29set up particle comps ids if using boosted frame particlesGravatar Andrew Myers 1-0/+11
2019-04-29add the old positions and momenta to the particle plotvar names if they are usedGravatar Andrew Myers 1-9/+10
2019-04-29add the xold, uxold, etc particle components at runtime if doing boosted fram...Gravatar Andrew Myers 3-13/+53
2019-04-29remove the compilation flag for STORE_OLD_PARTICLE_ATTRIBS - this can be done...Gravatar Andrew Myers 5-24/+11
2019-04-28Fix more 2D bugsGravatar Remi Lehe 1-2/+7
2019-04-28Fix 2D bugsGravatar Remi Lehe 2-3/+10
2019-04-28Fix error in calculation of modified k vectorsGravatar Remi Lehe 1-2/+3