// https://github.com/oven-sh/bun/issues/1096 import { bench, run } from "./runner.mjs"; const identity = x => x; for (let i = 0; i < 20; i++) { var array = new Array(i); for (let j = 0; j < i; j++) { array[j] = 1; } bench("Array.map x " + i, () => array.map(identity)); } bench("inline Array.map x 0", () => [].map(identity)); bench("inline Array.map x 1", () => [1].map(identity)); bench("inline Array.map x 2", () => [1, 1].map(identity)); bench("inline Array.map x 3", () => [1, 1, 1].map(identity)); bench("inline Array.map x 4", () => [1, 1, 1, 1].map(identity)); bench("inline Array.map x 5", () => [1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 6", () => [1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 7", () => [1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 8", () => [1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 9", () => [1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 10", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 11", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 12", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 13", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 14", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 15", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 16", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 17", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 18", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); bench("inline Array.map x 19", () => [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1].map(identity)); await run(); uthor
path: root/tests/ParticlePusher/GNUmakefile (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2018-07-03turn off dynamic scheduling for regression testsGravatar Weiqun Zhang 1-3/+5
2018-07-02add use amrex_error_moduleGravatar Weiqun Zhang 1-1/+2
2018-07-02Change order of optional argumentsGravatar Remi Lehe 1-9/+8
2018-07-02Activate OpenMP dynamic scheduling by defaultGravatar Remi Lehe 2-3/+3
2018-06-28Added region for load balancingGravatar Remi Lehe 1-0/+1
2018-06-27Prevent sorting in the sfc, and average costsGravatar Remi Lehe 2-4/+10
2018-06-26add missing includesGravatar Andrew Myers 1-0/+2
2018-06-21Start PIC loop with B^n instead of B^{n-1/2}Gravatar Remi Lehe 1-208/+21
2018-06-21minor fix from Andrew for particle lab diagsGravatar Maxence Thevenet 1-0/+1
2018-06-19update after u is updatedGravatar Maxence Thevenet 1-4/+3
2018-06-18Fixed boost of Gaussian beamGravatar Dave Grote 4-103/+48
2018-06-15remove threading segfault in RigidInjectionGravatar Maxence Thevenet 1-9/+9
2018-06-15added STORE_OLD_PARTICLE_ATTRIBS = FALSE to the makefileGravatar Maxence Thevenet 1-0/+2
2018-06-15Added save of old values to rigid injection pushpxGravatar Dave Grote 1-0/+15
2018-06-14Added boost of gaussian beamGravatar Dave Grote 2-0/+72
2018-06-14Fixed rigid injection for plasma injectionGravatar Dave Grote 3-19/+160
2018-06-13update unit testsGravatar Weiqun Zhang 4-4/+4
2018-06-12Print the walltimeGravatar Remi Lehe 1-2/+6
2018-06-12Store plotfile and checkpoints in separate foldersGravatar Remi Lehe 2-7/+7
2018-06-12Add documentation on SFCGravatar Remi Lehe 1-0/+4
2018-06-12remove unused parameter in RigidInjection exampleGravatar Maxence Thevenet 1-1/+0
2018-06-11fix PSATD compilation.Gravatar Andrew Myers 1-2/+5
2018-06-11fix bugs in last couple of commits.Gravatar Andrew Myers 3-8/+11
2018-06-11make field data optional as well.Gravatar Andrew Myers 3-69/+85
2018-06-11make doing the particles in the boosted frame diagnostics a run time parameterGravatar Andrew Myers 4-8/+11
2018-06-11add clarification that the boost is assumed to be in the +z direction.Gravatar Andrew Myers 1-1/+1